/* ============================================================================
   Shared header components — language switcher and dashboard button.

   These rules used to be copy-pasted into an inline <style> on 15 pages, which
   is how they drifted apart between landings. This file is the single source of
   truth for how the components LOOK; each landing keeps its own palette and
   only overrides WHERE the switcher sits, via the modifier classes below.
   ========================================================================== */

.lang-switcher {
    display: flex;
    gap: 6px;
    align-items: center;
}

.lang-switcher a {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, .3);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    text-decoration: none;
    color: #fff;
    opacity: .78;
    transition: opacity .2s, border-color .2s, background-color .2s;
}

.lang-switcher a:hover {
    opacity: 1;
    border-color: rgba(255, 255, 255, .55);
}

.lang-switcher a:focus-visible {
    outline: 2px solid #88FF45;
    outline-offset: 2px;
    opacity: 1;
}

.lang-switcher a.active {
    opacity: 1;
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .6);
}

/* On a light header, flip the switcher to dark ink. */
.lang-switcher--on-light a {
    color: #101014;
    border-color: rgba(0, 0, 0, .25);
}

.lang-switcher--on-light a:hover { border-color: rgba(0, 0, 0, .5); }

.lang-switcher--on-light a.active {
    background: rgba(0, 0, 0, .1);
    border-color: rgba(0, 0, 0, .55);
}

/* Placement modifiers — the one structural thing that differs per landing. */

/* Header is a flex row (home, blog, masspost, legal): sit right of the logo. */
.lang-switcher--inline {
    margin-left: auto;
    margin-right: 16px;
}

/* listen_music_and_earn: the sticky bar positions its children absolutely. */
.lang-switcher--lw-bar {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

/* Header has absolutely positioned children (listen_music_and_earn hero). */
.lang-switcher--hero {
    position: absolute;
    top: 63px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

@media (max-width: 768px) {
    .lang-switcher--inline {
        margin-right: 8px;
    }
}

/* --------------------------------------------------------------------------
   Dashboard / artist hub button
   -------------------------------------------------------------------------- */

.dashboard-btn {
    display: inline-block;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    text-decoration: none;
    white-space: nowrap;
    color: #fff;
    transition: opacity .2s, transform .2s;
}

.dashboard-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.dashboard-btn:focus-visible {
    outline: 2px solid #88FF45;
    outline-offset: 2px;
}
