/* LandingHeader.css */

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 70px;
    /* Slightly taller for landing */
    background-color: rgba(5, 5, 8, 0.85);
    border-bottom: 2px solid rgba(225, 29, 72, 0.3);
    backdrop-filter: blur(12px);
    position: fixed;
    /* Always fixed on landing */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    /* Tech grid background pattern */
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.landing-header-left {
    display: flex;
    align-items: center;
}

.landing-header-title {
    display: flex;
    align-items: baseline;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(225, 29, 72, 0.3);
    /* Angled Cut */
    clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
    border-left: 3px solid #e11d48;
}

.landing-header-title h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px rgba(225, 29, 72, 0.4);
    line-height: 1;
}

.landing-header-version {
    font-size: 0.7rem;
    color: #e11d48;
    margin-left: 0.6rem;
    font-family: monospace;
    opacity: 0.8;
}

.landing-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Auth Buttons */
.landing-nav-btn {
    height: 40px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Saira Condensed', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Login Button - Secondary Style */
.landing-nav-btn.login {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
}

.landing-nav-btn.login:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Register Button - Primary Style */
.landing-nav-btn.register {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.8) 0%, rgba(190, 18, 60, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.4);
}

.landing-nav-btn.register:hover {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.9) 0%, rgba(225, 29, 72, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.6);
}

/* Play Button (Authenticated) - Green/Success Style */
.landing-nav-btn.play {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.8) 0%, rgba(5, 150, 105, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.landing-nav-btn.play:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9) 0%, rgba(16, 185, 129, 1) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* Logout Button */
.landing-nav-btn.logout {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
}

.landing-nav-btn.logout:hover {
    background: rgba(225, 29, 72, 0.1);
    border-color: rgba(225, 29, 72, 0.4);
    color: #fff;
}

/* Language Selector Overrides in Landing Header */
/* We need to ensure specific overrides to match Game Header exactly */
.landing-header .language-selector {
    margin-right: 0.5rem;
}

.landing-header .language-btn {
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* Exact clip-path from GameHeader (var(--game-clip-path-sm)) which is: */
    clip-path: polygon(4px 0, 100% 0, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0 100%, 0 4px);
    border-radius: 0;
}

.landing-header .language-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.landing-header .language-dropdown {
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 15, 0.95);
    /* Tech clip path */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-header {
        padding: 0 1rem;
        height: 60px;
    }

    .landing-header-title h1 {
        font-size: 1.1rem;
    }

    .landing-header-version {
        display: none;
    }

    .landing-nav-btn {
        padding: 0 1rem;
        height: 36px;
        font-size: 0.9rem;
    }
}