/*
Theme Name: Casino-utan-spelpaus.net
Theme URI: https://casino-utan-spelpaus.net
Author: Cusp God
Author URI: https://casino-utan-spelpaus.net
Description: GeneratePress theme for Casino-utan-spelpaus.net.
Template: generatepress
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: casino-utan-spelpaus
*/

/* Place your custom CSS below */

/* ============================================
   CUSTOM PREMIUM HEADER STYLES
   ============================================ */

:root {
    --accent-color: #44C456;
    --accent-hover: #3AB349;
    --accent-dark: #2F9A3C;
    --base-color: #011224;
    --base-light: #0A1F38;
    --base-lighter: #14304C;
    --text-primary: #FFFFFF;
    --text-secondary: #B8C5D6;
    --border-color: rgba(68, 196, 86, 0.15);
    --header-height: 80px;
    --mobile-header-height: 70px;
}

/* Hide GeneratePress default header */
.site-header {
    display: none !important;
}

/* ============================================
   HEADER CONTAINER
   ============================================ */

.custom-premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--base-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(1, 18, 36, 0.6);
    transition: all 0.3s ease;
}

.custom-premium-header.scrolled {
    box-shadow: 0 4px 30px rgba(1, 18, 36, 0.8);
    border-bottom-color: rgba(68, 196, 86, 0.25);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* ============================================
   LOGO
   ============================================ */

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.85;
}

.site-logo {
    height: 42px;
    width: auto;
    display: block;
}

/* ============================================
   NAVIGATION
   ============================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 18px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}

.nav-menu > li > a:hover {
    color: var(--accent-color);
    background: rgba(68, 196, 86, 0.08);
}

.nav-menu > li > a:hover::after {
    transform: scaleX(1);
}

.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-parent > a {
    color: var(--accent-color);
    background: rgba(68, 196, 86, 0.1);
}

.nav-menu > li.current-menu-item > a::after {
    transform: scaleX(1);
}

/* ============================================
   DROPDOWN STYLES
   ============================================ */

.dropdown-icon {
    transition: transform 0.25s ease;
    opacity: 0.7;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: var(--base-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    margin-top: 8px;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-menu li a:hover {
    color: var(--text-primary);
    background: rgba(68, 196, 86, 0.12);
    padding-left: 20px;
}

.dropdown-menu li.current-menu-item a {
    color: var(--accent-color);
    background: rgba(68, 196, 86, 0.08);
}

/* Nested dropdowns */
.dropdown-menu .has-dropdown {
    position: relative;
}

.dropdown-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-top: 0;
    margin-left: 8px;
}

/* ============================================
   MOBILE TOGGLE
   ============================================ */

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .nav-menu > li > a {
        padding: 10px 14px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .header-container {
        height: var(--mobile-header-height);
    }
    
    .site-logo {
        height: 36px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .main-navigation {
        position: fixed;
        top: var(--mobile-header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--base-color);
        padding: 24px;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .main-navigation.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .nav-menu > li > a {
        padding: 16px 20px;
        font-size: 16px;
        justify-content: space-between;
    }
    
    .nav-menu > li > a::after {
        display: none;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        border: none;
        box-shadow: none;
        background: var(--base-lighter);
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    
    .has-dropdown.active > .dropdown-menu {
        max-height: 500px;
        padding: 8px;
    }
    
    .dropdown-menu .dropdown-menu {
        left: 0;
        margin-left: 16px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 16px;
    }
    
    .site-logo {
        height: 32px;
    }
}

/* ============================================
   SMOOTH SCROLL OFFSET
   ============================================ */

html {
    scroll-padding-top: calc(var(--header-height) + 20px);
}

@media (max-width: 900px) {
    html {
        scroll-padding-top: calc(var(--mobile-header-height) + 20px);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.nav-menu a:focus-visible,
.mobile-toggle:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ============================================
   ANIMATION ON LOAD
   ============================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-premium-header {
    animation: slideDown 0.6s ease-out;
}