/* Reset and Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    background-color: #0f172a;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
}

/* Header Styles - Sticky */
.header {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: 1rem 1.5rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    min-height: 60px;
}

/* Utility Classes */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-3 {
    gap: 0.75rem;
}

.group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

/* Text Colors */
.text-white {
    color: #ffffff;
}

.text-amber-400 {
    color: #fbbf24;
}

/* Font Sizes */
.text-2xl {
    font-size: 1.75rem;
    line-height: 2.25rem;
}

/* Font Weights */
.font-black {
    font-weight: 900;
}

/* Spacing */
.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.p-4 {
    padding: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.space-x-8 > * + * {
    margin-left: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

/* Display Utilities */
.hidden {
    display: none;
}

/* Navigation Menu */
nav {
    display: flex;
    align-items: center;
}

/* Desktop menu spacing */
#menuItems {
    gap: 1.5rem;
}

#menuItems .menu-link {
    white-space: nowrap;
}

/* Hamburger Icon */
.hamburger-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    color: #fbbf24;
    transition: all 0.3s ease;
}

.hamburger-icon:hover {
    transform: scale(1.15) rotate(90deg);
    color: #fcd34d;
}

.hamburger-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Focus outline removal */
.focus\\:outline-none:focus {
    outline: none;
}

.header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.header h1 a {
    color: #ffffff;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-primary {
    color: #fbbf24;
    font-weight: 900;
}

.logo-secondary {
    color: #ffffff;
    font-weight: 900;
}

/* Slide-in Menu */
.slide-in-menu {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 16rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    will-change: transform;
    display: flex;
    flex-direction: column;
}

.slide-in-menu.open {
    transform: translateX(0);
}

/* Close button in slide-in menu */
#slideInMenu #menuClose {
    color: #fbbf24;
    transition: all 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

#slideInMenu #menuClose:hover {
    color: #fcd34d;
    transform: rotate(90deg) scale(1.1);
}

#slideInMenu #menuClose svg {
    width: 1.5rem;
    height: 1.5rem;
}

.menu-link {
    transition: all 0.3s ease;
    font-weight: 600;
    position: relative;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.95rem;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #fbbf24;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.menu-link:hover::after {
    width: 100%;
}

.menu-link:hover {
    color: #fbbf24;
    transform: translateY(-1px);
}


#slideInMenu #menuClose {
    color: #fbbf24;
    transition: all 0.3s ease;
}

#slideInMenu #menuClose:hover {
    color: #fcd34d;
    transform: rotate(90deg) scale(1.1);
}

/* Menu overlay for mobile */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile menu items */
#slideInMenu .menu-link {
    font-size: 1.125rem;
    padding: 1rem;
    width: 100%;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
}

#slideInMenu .menu-link:hover {
    background: rgba(251, 191, 36, 0.1);
    transform: translateX(4px);
    color: #fbbf24;
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .hamburger-icon {
        display: block;
    }
    
    #menuItems {
        display: none;
    }
}

@media (min-width: 1024px) {
    .hamburger-icon {
        display: none;
    }
    
    #menuItems {
        display: flex;
    }
    
    .lg\\:hidden {
        display: none;
    }
}

.navbar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Back Navigation Arrow */
.back-nav {
    position: fixed;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    z-index: 1000;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
    text-decoration: none;
}

.back-nav:hover {
    transform: translateY(-50%) translateX(-5px);
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.6);
}

.back-nav i {
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .back-nav {
        left: 0.75rem;
        width: 36px;
        height: 36px;
    }
    
    .back-nav i {
        font-size: 1rem;
    }
    
    .header {
        padding: 0.75rem 0.5rem;
    }
    
    .text-2xl {
        font-size: 1.5rem;
    }
    
    .container {
        min-height: 50px;
    }
}

/* Body padding for fixed header */
body {
    padding-top: 75px;
}

/* ── Desktop Jackpots Dropdown ── */
.nav-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 170px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 9990;
    padding: 0.5rem 0;
    overflow: hidden;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.65rem 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    padding-left: 1.5rem;
}
