/* Header Styles - Extracted from main CSS */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1e40af;
    --accent-color: #4f46e5;
    --bg-dark: #0f172a00;
    --bg-darker: #070e1a;
    --bg-light: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
    z-index: 1001;
    flex-shrink: 0;
    position: relative;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
}

.logo-full {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    cursor: pointer;
    z-index: 1002;
    position: relative;
    padding: 0;
    background: none;
    border: none;
    outline: none;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Navigation Content */
.nav-content {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: space-between;
    padding-left: 2rem;
    height: 100%;
}

.nav-links {
    display: flex;
    width: 100%;
    margin: 0;
    flex: 1;
    justify-content: space-evenly;
    position: relative;
    max-width: 800px;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    text-align: center;
    white-space: nowrap;
}

/* Only one active underline at a time */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links a:hover:not(.active) {
    color: var(--primary-color);
    opacity: 0.8;
}

/* Nav Buttons */
.nav-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
    margin-left: auto;
}

.nav-buttons .btn-primary,
.nav-buttons .btn-secondary {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    min-width: auto;
    width: 110px;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 1.1rem 2.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.1);
}

.btn-outline:hover {
    background: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.btn-affiliate {
    background: #0072ff;
    color: var(--text-light);
    padding: 0.7rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 114, 255, 0.2);
    border: none;
}

.btn-affiliate:hover {
    background: #0080ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 114, 255, 0.3);
}

.btn-affiliate:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 114, 255, 0.2);
}

/* Simplified icon styling */
.btn-affiliate i {
    margin-right: 0.5rem;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .navbar .container {
        max-width: 1140px;
    }
    
    .nav-content {
        padding-left: 2rem;
    }
    
    .nav-links {
        justify-content: space-evenly;
    }
    
    .nav-buttons {
        margin-left: auto;
    }
}

@media (max-width: 992px) {
    .navbar .container {
        max-width: 960px;
    }
    
    .nav-content {
        padding-left: 1.5rem;
    }
    
    .nav-links {
        justify-content: space-evenly;
    }
    
    .nav-buttons {
        margin-left: auto;
        gap: 0.8rem;
    }
    
    .navbar .container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1002;
    }
    
    .logo-full {
        height: 30px;
    }
    
    .nav-content {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        /* Use dynamic viewport height to account for browser UI */
        height: 100vh;
        height: 100dvh; /* Dynamic viewport height for browsers that support it */
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        padding: 5rem 2rem 3rem;
        flex-direction: column;
        z-index: 1001;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
        transform: translateX(-100%);
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        opacity: 0;
        visibility: hidden;
        /* Safe area insets for notched devices */
        padding-bottom: max(3rem, env(safe-area-inset-bottom));
    }
    
    .nav-content.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-content.visible {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        margin-bottom: 1.5rem;
        gap: 1.5rem;
        justify-content: flex-start;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        opacity: 0.9;
        transform: translateX(-10px);
        transition: transform 0.3s ease, opacity 0.3s ease, color 0.3s ease;
    }
    
    .nav-content.active .nav-links a {
        transform: translateX(0);
        opacity: 1;
    }
    
    .nav-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        opacity: 0.9;
        transform: translateY(10px);
        transition: transform 0.4s ease, opacity 0.4s ease;
        margin-left: 0;
        /* Add extra padding at the bottom to ensure visibility */
        padding-bottom: 2rem;
    }
    
    .nav-content.active .nav-buttons {
        transform: translateY(0);
        opacity: 1;
    }
    
    .nav-buttons .btn-primary,
    .nav-buttons .btn-secondary,
    .nav-buttons .btn-affiliate {
        width: 100%;
        padding: 1rem 1.2rem;
        text-align: center;
        font-size: 1rem;
        margin-top: 0.5rem;
    }
    
    /* Ensure user menu in mobile nav is also visible */
    .nav-content .user-menu {
        width: 100%;
        padding-bottom: 2rem;
    }
    
    .nav-content .user-menu-toggle {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Container for responsive widths across the site */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

