/**
 * BVESTER MAIN STYLESHEET - OPTIMIZED
 * Performance-optimized CSS for production deployment
 */

/* ==========================================================================
   BASE STYLES - Additional non-critical styles
   ========================================================================== */

.logo-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: brightness(1.1);
}

.logo-text {
    color: #d4af37;
    font-weight: 800;
}

.nav-menu {
    display: none;
}

/* Desktop: 769px+ */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
        align-items: center;
        gap: 32px;
    }
    
    .nav-container {
        padding: 16px 24px;
    }
}

/* ==========================================================================
   DROPDOWN MENUS - Performance optimized
   ========================================================================== */

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1a1a1a;
    border: 1px solid #ffd700;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    min-width: 200px;
    z-index: 1000;
    padding: 8px 0;
    margin-top: 8px;
    will-change: opacity, transform;
}

.dropdown-menu.show {
    display: block;
    animation: fadeIn 0.15s ease-out;
}

.dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: #ffffff !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.15s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700 !important;
}

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

/* ==========================================================================
   BUTTONS - Optimized for performance and accessibility
   ========================================================================== */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-btn {
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.signup-btn {
    background: #ffd700;
    color: #000000;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.signup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* ==========================================================================
   HERO SECTION - Critical path optimized
   ========================================================================== */

@media (min-width: 769px) {
    .hero-container {
        padding: 80px 24px;
    }
    
    .hero-title {
        font-size: 56px;
        line-height: 64px;
        margin-bottom: 24px;
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 16px;
    line-height: 24px;
    color: #cccccc;
    margin-bottom: 32px;
    padding: 0 16px;
}

.hero-tabs {
    background: #1a1a1a;
    border: 1px solid #d4af37;
    border-radius: 12px;
    padding: 6px;
    margin: 0 auto 32px;
    display: flex;
    width: fit-content;
    min-width: 90%;
    max-width: 95%;
}

.hero-tab {
    flex: 1;
    padding: 18px 20px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #cccccc;
    text-align: center;
    transition: all 0.2s ease;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.hero-tab:hover {
    color: #ffffff;
    background: rgba(212, 175, 55, 0.1);
}

.hero-tab.active {
    background: #d4af37;
    color: #000000;
    font-weight: 700;
}

/* ==========================================================================
   PERFORMANCE OPTIMIZATIONS
   ========================================================================== */

/* Use hardware acceleration for animations */
.hero-tab,
.dropdown-menu,
.signup-btn {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimize paint operations */
.nav-container,
.hero-container {
    contain: layout style;
}

/* Reduce layout thrashing */
.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    contain: layout;
}

@media (min-width: 768px) {
    .hero-actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ==========================================================================
   MOBILE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 480px) {
    .hero-container {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 34px;
    }

    .hero-subtitle {
        font-size: 14px;
        padding: 0 8px;
    }
    
    .hero-tabs {
        min-width: 95%;
        padding: 4px;
    }
    
    .hero-tab {
        font-size: 13px;
        padding: 16px 12px;
    }
}

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

/* Focus states for keyboard navigation */
.hero-tab:focus,
.login-btn:focus,
.signup-btn:focus {
    outline: 2px solid #ffd700;
    outline-offset: 2px;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .dropdown-menu,
    .hero-tab,
    .signup-btn {
        transition: none;
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nav-container {
        border-bottom-width: 2px;
    }
    
    .hero-tabs {
        border-width: 2px;
    }
}