/* Modern Header Styles */
.header-modern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.header-modern.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.header-inner-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
    gap: 24px;
}

/* Logo */
.logo-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.logo-modern:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-red);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.logo-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Navigation */
.nav-modern {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

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

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide Home text on desktop, show only icon */
.nav-menu-modern li:first-child .nav-link-modern span {
    display: none;
}

.nav-menu-modern li:first-child .nav-link-modern {
    padding: 8px 12px;
}

.nav-menu-modern li:first-child .nav-link-modern i {
    font-size: 1.1rem;
    opacity: 1;
}

.nav-link-modern i {
    font-size: 0.85rem;
    opacity: 0.7;
}

.nav-link-modern:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link-modern.active {
    color: var(--text-primary);
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.nav-link-modern.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--gradient-red);
}

/* Header Actions */
.header-actions-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.support-badge-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--success);
    font-weight: 600;
    white-space: nowrap;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: var(--gradient-red);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
    white-space: nowrap;
}

.btn-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
}

.btn-header i {
    font-size: 0.9rem;
}

/* Mobile Menu Button */
.mobile-menu-btn-modern {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn-modern span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-btn-modern:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-btn-modern.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn-modern.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn-modern.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.mobile-nav-modern {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    display: none;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 75px);
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.mobile-nav-modern.active {
    display: flex;
}

.mobile-nav-modern .nav-link-modern {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 16px;
    font-size: 0.95rem;
}

.mobile-nav-modern .support-badge-modern {
    justify-content: center;
    margin-top: 8px;
    display: flex !important;
    padding: 8px 14px;
    font-size: 0.8rem;
}

.mobile-nav-modern .btn-header {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    display: flex !important;
    padding: 10px 18px;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 24px;
    }
    
    .header-inner-modern {
        gap: 16px;
    }
    
    .nav-modern {
        display: none;
    }
    
    .support-badge-modern {
        display: none;
    }
    
    .mobile-menu-btn-modern {
        display: flex;
    }
    
    .btn-header {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .btn-header span {
        display: inline;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }
    
    .header-inner-modern {
        height: 65px;
        gap: 12px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }
    
    .logo-title {
        font-size: 0.9rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .btn-header {
        display: none;
    }
}

/* Boxed Layout */
.boxed-layout {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1024px) {
    .boxed-layout {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .boxed-layout {
        padding: 0 16px;
    }
}
