/* =====================================================================
   The Magic & Villains bar (inc/mv-parent-bar.php): the Magic & Villains
   logo top-left and a "Back to Magic & Villains" link on Magic & Villains'
   own brand and specialty mini-sites (Magic & Motors at /racing first).
   Self-contained, so it looks the same inside any mini-site's design.
   The host page puts it first inside its sticky header and adds
   var(--mvbar-h) to offsets under that header.
   ===================================================================== */

:root {
    --mvbar-h: 40px;
}

.mvbar {
    display: block;
    height: var(--mvbar-h);
    background: linear-gradient(90deg, #120c1a 0%, #08080a 55%, #120c1a 100%);
    border-bottom: 1px solid rgba(157, 0, 255, 0.55);
    font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1;
}
.mvbar-inner {
    max-width: var(--mvbar-wrap, 1360px);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.mvbar a {
    text-decoration: none;
    white-space: nowrap;
}
.mvbar a:focus-visible {
    outline: 2px solid #d899ff;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Logo: Lola's cat-and-potion logo (round, as on magicandvillains.com), plus the name. */
.mvbar-logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    color: #d899ff !important;
}
.mvbar-logo img {
    display: block;
    width: 28px;
    height: 28px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(214, 178, 107, 0.75);
}
.mvbar-name {
    font: italic 700 1.14rem/1 'Newsreader', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em;
    text-shadow: 0 0 12px rgba(157, 0, 255, 0.6);
}
.mvbar-logo:hover .mvbar-name {
    color: #fff;
}

/* "Back to Magic & Villains" */
.mvbar-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 13px 0 10px;
    border: 1px solid rgba(216, 153, 255, 0.55);
    border-radius: 999px;
    background: rgba(157, 0, 255, 0.18);
    color: #fff !important;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.mvbar-back:hover {
    background: rgba(157, 0, 255, 0.4);
    border-color: #d899ff;
}
.mvbar-arrow {
    width: 15px;
    height: 15px;
    flex: none;
    color: #d899ff;
    transition: transform 0.15s ease;
}
.mvbar-back:hover .mvbar-arrow {
    transform: translateX(-2px);
}

@media (max-width: 1100px) {
    .mvbar-inner {
        padding: 0 16px;
    }
}
@media (max-width: 600px) {
    :root {
        --mvbar-h: 38px;
    }
    .mvbar-back {
        font-size: 0.76rem;
        padding: 0 11px 0 9px;
    }
}
/* Phones: the mark alone is the logo, so the whole "Back to" link fits. */
@media (max-width: 419px) {
    .mvbar-name {
        display: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    .mvbar-back,
    .mvbar-arrow {
        transition: none;
    }
}
