/* ============================================
   SLOTTOMAT PREMIUM HEADER STYLES
   Version 2.0 - Modern Gaming Header
   Colors: Dark Maroon (#8B0000), Gold (#ffd700)
   ============================================ */

/* CSS Variables */
:root {
    --header-bg: linear-gradient(135deg, #8B0000 0%, #5c0000 50%, #3d0000 100%);
    --header-bg-scrolled: linear-gradient(135deg, #6B0000 0%, #4c0000 50%, #2d0000 100%);
    --gold-primary: #ffd700;
    --gold-light: #ffe44d;
    --gold-dark: #cc9900;
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --dropdown-bg: #1a0505;
    --dropdown-item-hover: rgba(255, 215, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --shadow-dropdown: 0 15px 50px rgba(0, 0, 0, 0.5);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --border-gold: 1px solid rgba(255, 215, 0, 0.3);
}

/* Premium Header Base */
.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: var(--header-bg);
    padding: 0;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    border-bottom: 2px solid var(--gold-primary);
}

.premium-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="%23ffd700" opacity="0.1"/><circle cx="90" cy="30" r="0.8" fill="%23ffd700" opacity="0.08"/><circle cx="50" cy="70" r="1.2" fill="%23ffd700" opacity="0.06"/></svg>');
    background-size: 80px 80px;
    pointer-events: none;
    opacity: 0.5;
}

.premium-header.header-scrolled {
    background: var(--header-bg-scrolled);
    padding: 0;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
    z-index: 1;
}

.premium-header.header-scrolled .header-container {
    height: 60px;
}

/* Logo Styling */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-normal);
}

.header-logo:hover .logo-text {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    transform: scale(1.02);
}

/* Desktop Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    cursor: pointer;
    background: transparent;
    border: none;
    position: relative;
}

.nav-link i:first-child {
    font-size: 14px;
    color: var(--gold-primary);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-dropdown.dropdown-active .nav-link {
    background: rgba(255, 215, 0, 0.15);
    color: var(--text-white);
}

.nav-link:hover i:first-child,
.nav-dropdown.dropdown-active .nav-link i:first-child {
    color: var(--gold-light);
    transform: scale(1.1);
}

/* Direct Links Special Styling */
.nav-link.direct-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gold-primary);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-link.direct-link:hover::after {
    width: 60%;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 10px;
    margin-left: 4px;
    transition: transform var(--transition-fast);
    color: var(--text-muted);
}

.nav-dropdown.dropdown-active .dropdown-arrow {
    transform: rotate(180deg);
    color: var(--gold-primary);
}

/* Desktop Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--dropdown-bg);
    border-radius: 16px;
    min-width: 280px;
    box-shadow: var(--shadow-dropdown);
    border: var(--border-gold);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 1000;
    overflow: hidden;
}

.nav-dropdown.dropdown-active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Providers Dropdown - Grid Layout */
.providers-dropdown {
    min-width: 500px;
    max-width: 600px;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    background: rgba(255, 215, 0, 0.05);
}

.dropdown-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-link {
    font-size: 12px;
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-fast);
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 215, 0, 0.1);
}

.view-all-link:hover {
    background: rgba(255, 215, 0, 0.2);
    color: var(--gold-light);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    padding: 10px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-grid::-webkit-scrollbar {
    width: 6px;
}

.dropdown-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dropdown-grid::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 3px;
}

.dropdown-grid .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.dropdown-grid .dropdown-item:hover {
    background: var(--dropdown-item-hover);
    color: var(--text-white);
}

.provider-logo {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.provider-icon {
    font-size: 14px;
    color: var(--gold-primary);
    width: 24px;
    text-align: center;
}

/* Types/Themes Dropdown - List Layout */
.types-dropdown,
.themes-dropdown {
    min-width: 240px;
}

.dropdown-list {
    padding: 10px;
}

.dropdown-list .dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.dropdown-list .dropdown-item i {
    font-size: 14px;
    color: var(--gold-primary);
    width: 20px;
    text-align: center;
}

.dropdown-list .dropdown-item:hover {
    background: var(--dropdown-item-hover);
    color: var(--text-white);
    padding-left: 20px;
}

.dropdown-list .dropdown-item:hover i {
    color: var(--gold-light);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 215, 0, 0.2);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.menu-open .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(5px);
}

.mobile-overlay.overlay-active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: linear-gradient(180deg, #1a0505 0%, #0d0202 100%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    border-left: 2px solid var(--gold-primary);
}

.mobile-drawer.drawer-open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(139, 0, 0, 0.3);
}

.drawer-logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.drawer-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--gold-primary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.drawer-close:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 15px 0;
}

.drawer-content::-webkit-scrollbar {
    width: 4px;
}

.drawer-content::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 2px;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.drawer-link i {
    font-size: 16px;
    color: var(--gold-primary);
    width: 24px;
    text-align: center;
}

.drawer-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--gold-primary);
    color: var(--text-white);
}

/* Mobile Accordion */
.drawer-accordion {
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.accordion-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 15px 20px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.accordion-trigger i:first-child {
    font-size: 16px;
    color: var(--gold-primary);
    width: 24px;
    text-align: center;
}

.accordion-trigger span {
    flex: 1;
}

.accordion-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.accordion-trigger:hover {
    background: rgba(255, 215, 0, 0.05);
    border-left-color: var(--gold-primary);
}

.drawer-accordion.accordion-open .accordion-trigger {
    background: rgba(255, 215, 0, 0.1);
    border-left-color: var(--gold-primary);
}

.drawer-accordion.accordion-open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--gold-primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    background: rgba(0, 0, 0, 0.2);
}

.drawer-accordion.accordion-open .accordion-content {
    max-height: 500px;
}

.accordion-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px 12px 58px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.accordion-link i {
    font-size: 12px;
    color: var(--gold-dark);
    width: 16px;
    text-align: center;
}

.accordion-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--text-white);
}

.accordion-link.view-all {
    color: var(--gold-primary);
    font-weight: 600;
    padding-left: 48px;
}

.accordion-link.view-all:hover {
    background: rgba(255, 215, 0, 0.15);
}

/* Drawer Footer */
.drawer-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
}

.drawer-footer p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-container {
        height: 60px;
    }

    .logo-text {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .header-container {
        padding: 0 15px;
        height: 56px;
    }

    .logo-text {
        font-size: 20px;
    }

    .mobile-drawer {
        width: 280px;
    }
}

/* Content offset for fixed header */
body {
    padding-top: 70px;
}

@media (max-width: 991px) {
    body {
        padding-top: 60px;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 56px;
    }
}

/* High contrast focus states for accessibility */
.nav-link:focus,
.dropdown-item:focus,
.drawer-link:focus,
.accordion-trigger:focus,
.accordion-link:focus,
.mobile-menu-toggle:focus,
.drawer-close:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* Animation for dropdown items */
.dropdown-menu .dropdown-item {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(1) { animation-delay: 0.02s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(2) { animation-delay: 0.04s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(3) { animation-delay: 0.06s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(4) { animation-delay: 0.08s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(5) { animation-delay: 0.1s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(6) { animation-delay: 0.12s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(7) { animation-delay: 0.14s; }
.nav-dropdown.dropdown-active .dropdown-menu .dropdown-item:nth-child(8) { animation-delay: 0.16s; }

/* Gold shine effect on logo hover */
@keyframes goldShine {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.header-logo:hover .logo-text {
    background-size: 200% auto;
    animation: goldShine 2s ease-in-out infinite;
}
