/* TaskForceKraken Header Styling */
/* Matches the availability-override.css aesthetic */

/* Header Base Styling */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(180deg, 
        rgba(12, 33, 56, 0.95) 0%, 
        rgba(6, 21, 40, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(255, 153, 0, 0.3);
    height: 70px;
    transition: all 0.3s ease;
}

/* Scrolled State */
header.scrolled {
    height: 50px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.7);
}

/* Naval Grid Pattern Overlay */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(79, 195, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 195, 247, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.3;
    pointer-events: none;
}

/* Container */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Section */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo span {
    color: #C0C0C0 !important;
    color: silver !important;
    text-shadow: 0 0 10px rgba(192, 192, 192, 0.5);
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.logo:hover span {
    text-shadow: 0 0 15px rgba(192, 192, 192, 0.8);
}

.logo img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(192, 192, 192, 0.5));
    transition: all 0.3s ease;
}

header.scrolled .logo {
    font-size: 0.7rem !important;
}

header.scrolled .logo img {
    height: 30px;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 100%;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.nav-link:hover {
    color: #4fc3f7;
    background: rgba(79, 195, 247, 0.1);
    border-color: rgba(79, 195, 247, 0.3);
    transform: translateY(-1px);
}

.nav-link.active {
    color: #ff9900;
    background: rgba(255, 153, 0, 0.1);
    border-color: rgba(255, 153, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 153, 0, 0.2);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        #ff9900 20%, 
        #ff9900 80%, 
        transparent);
    border-radius: 2px;
}

/* Icon Styling */
.nav-link i {
    font-size: 1.1rem;
}

/* Buttons Styling */
button.theme-toggle,
button.wows-crate,
button.install-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* WoWS Crate Button - Special Orange Styling */
.wows-crate {
    background: linear-gradient(135deg, 
        rgba(255, 153, 0, 0.15) 0%, 
        rgba(255, 123, 0, 0.1) 100%) !important;
    border: 1px solid rgba(255, 153, 0, 0.4) !important;
    color: #ff9900 !important;
    padding: 8px !important;
    width: 40px;
    height: 40px;
    position: relative;
    overflow: hidden;
    animation: crateGlow 2s ease-in-out infinite;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes crateGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 153, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 153, 0, 0.5); }
}

.wows-crate:hover {
    background: linear-gradient(135deg, 
        rgba(255, 153, 0, 0.25) 0%, 
        rgba(255, 123, 0, 0.2) 100%) !important;
    border-color: rgba(255, 153, 0, 0.6) !important;
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 153, 0, 0.6) !important;
}

.wows-crate i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px rgba(255, 153, 0, 0.8));
}

/* Crate Sparkle Effect */
.wows-crate::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 200, 100, 0.3) 50%, 
        transparent 70%);
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s;
}

.wows-crate:hover::before {
    transform: rotate(45deg) translateX(100%);
}

/* Install Button */
.install-button {
    display: none !important;
}

/* Theme Toggle (Hidden but styled) */
.theme-toggle.hidden {
    display: none;
}

/* Notification Indicator */
.notification-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #ff5252;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.8);
    animation: notificationPulse 2s ease-in-out infinite;
}

@keyframes notificationPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: rgba(255, 153, 0, 0.1);
    border: 1px solid rgba(255, 153, 0, 0.3);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    display: block;
    height: 3px;
    width: 100%;
    background: #ff9900;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn:hover {
    background: rgba(255, 153, 0, 0.2);
    border-color: rgba(255, 153, 0, 0.5);
}

/* Mobile Menu Active State */
.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: linear-gradient(180deg, 
            rgba(12, 33, 56, 0.98) 0%, 
            rgba(6, 21, 40, 0.98) 100%);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transition: right 0.3s ease;
        border-left: 2px solid rgba(255, 153, 0, 0.3);
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    header.scrolled {
        height: 60px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .logo img {
        height: 35px;
    }
}

/* Force TaskForceKraken styling */
header .logo span,
.header-content .logo span,
.logo > span {
    color: silver !important;
    color: #C0C0C0 !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px;
}

/* Small Screen Adjustments */
@media (max-width: 480px) {
    .header-content {
        padding: 0 15px;
    }
    
    .logo span {
        font-size: 0.9rem !important;
        display: inline-block !important;
    }
    
    .nav-links {
        width: 100%;
        right: -100%;
    }
}