/* ==========================================================================
   HEADER CONTAINER
   ========================================================================== */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: var(--bg-charcoal); 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

header a {
    text-decoration: none;
    width: fit-content;
}

/* Logo Wrapper */
.logo-link svg {
    height: 50px;       /* Fixed height for desktop */
    width: auto;        /* Let the width scale proportionally */
    max-width: 100%;    /* Never allow it to exceed the screen width */
    display: block;
    transition: var(--transition-smooth);
}

.header-logo {
    height: 64px;
    width: auto;
    max-width: 100%;
    
    /* SHADOW */
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    transition: all 0.3s ease;
}

.header-logo path {
    fill: #ffffff !important;
    stroke: none !important;
}



/* ==========================================================================
   CTA BUTTONS
   ========================================================================== */
.header-cta {
    display: flex;
    gap: 15px;
}

header .btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth); /* Use global transition variable */
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-primary { 
    background-color: var(--text-main); /* Linked to #1e293b in main.css */
    color: var(--text-white);
}

.btn-secondary {
    background-color: var(--discord-color); /* Linked to #5865F2 in main.css */
    color: var(--text-white); 
}

.btn-demo {
    background-color: var(--void-black); /* Linked to in main.css */
    color: var(--text-white); 
}

/* Hover & Active States */
header .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    filter: brightness(1.1);
}

header .btn-cta:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   SOCIAL BAR
   ========================================================================== */
.header-socials {
    display: flex;
    gap: 12px;
}

.header-socials a {
    width: 40px; 
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light); /* Linked to #f8fafc in main.css */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    box-shadow: 0 2px #cbd5e1;
}

.header-socials a svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.header-socials a:hover { 
    transform: translateY(-2px); 
    color: var(--text-white); 
}

.discord:hover   { background: var(--discord-color); }
.youtube:hover   { background: #FF0000; }
.x-twitter:hover { background: #000000; }
.instagram:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%,#d6249f 60%,#285AEB 90%); }

/* ==========================================================================
   LANGUAGE PICKER
   ========================================================================== */
.language-picker {
    position: relative;
    display: inline-block;
    margin: 0px 10px;
}

.lang-button {
    padding: 8px 16px;
    background: var(--text-white);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    inset-inline-end: 0;
    background: var(--text-white);
    border: 1px solid #ddd;
    border-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 4px 0 0;
    display: none;
    min-width: 120px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.language-picker.active .lang-dropdown { 
    display: block; 
}

.lang-dropdown li { 
    padding: 10px 16px; 
    cursor: pointer; 
}

.lang-dropdown li:hover { 
    background-color: var(--bg-light); 
}

.lang-dropdown a {
    color: var(--text-main);
    display: block;
    width: 100%;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    
    .logo-link svg {
        margin-inline-end: 15px;
        height: 35px;
        max-width: 100%;
    }

    header .btn-cta {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .header-socials { display: none; }
    
    .header-inner {
        justify-content: space-between;
        padding-inline-end: 10px;
        padding-inline-start: 10px;
        gap: 10px;
    }

    .header-logo, .logo-link {
        display: none !important;
    }
}