/* ============================================
   COUNTING GAME - HEADER STYLES (Lab Theme)
   ============================================ */

@font-face {
    font-family: 'Good Timing';
    src: url('assets/font/good_timing_bd.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Header Bar */
.lab-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(22, 33, 62, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.lab-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ff88, #00d4ff, #00ff88, transparent);
    opacity: 0.5;
}

/* Logo Section */
.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.header-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.4));
}

.header-logo-text {
    font-family: 'Good Timing', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, #00ff88);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-logo-text span {
    color: #00ff88;
    -webkit-text-fill-color: #00ff88;
}

/* Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.header-langs {
    display: flex;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header-lang-btn {
    font-size: 1.4rem;
    text-decoration: none;
    opacity: 0.4;
    transition: all 0.2s ease;
    filter: grayscale(50%);
}

.header-lang-btn:hover {
    opacity: 0.8;
    filter: grayscale(0%);
}

.header-lang-btn.active {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Nav Links */
.header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.header-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.header-link.active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.3);
}

.header-link .material-icons {
    font-size: 1.2rem;
}

/* User Section */
.header-user {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #00ff88;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.header-username {
    font-weight: 500;
    color: #fff;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Login Button */
.header-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #5865F2, #7289da);
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.header-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.header-login-btn svg {
    width: 18px;
    height: 18px;
}

/* Logout Button */
.header-logout {
    padding: 8px 14px;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.header-logout:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

/* Mobile Menu Button */
.header-mobile-btn {
    display: none;
    background: transparent;
    border: none;
    color: #fff;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
}

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

/* Main Content Spacing */
.main-content {
    padding-top: 100px !important;
    min-height: calc(100vh - 70px);
}

/* Mobile Styles */
@media (max-width: 900px) {
    .lab-header {
        padding: 0 15px;
    }
    
    .header-username {
        display: none;
    }
    
    .header-link span {
        display: none;
    }
    
    .header-link {
        padding: 10px;
    }
    
    .header-user {
        padding-left: 15px;
    }
}

@media (max-width: 600px) {
    .lab-header {
        height: 60px;
    }
    
    .header-logo-text {
        display: none;
    }
    
    .header-logo-img {
        width: 35px;
        height: 35px;
    }
    
    .header-nav {
        gap: 10px;
    }
    
    .header-langs {
        padding: 4px 8px;
    }
    
    .header-lang-btn {
        font-size: 1.2rem;
    }
    
    .header-login-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .header-login-btn span {
        display: none;
    }
    
    .main-content {
        padding-top: 90px !important;
    }
}
