/**
 * Desi bold streaming brand layer — ui-nova / public shell.
 * Load after tokens.css. Admin primary_color still overrides --accent-color in inline <style>;
 * --shell-accent follows that; brand reds/golds add header-specific depth.
 */
:root,
.ui-nova {
    --brand-red: #991b1b;
    --brand-red-deep: #450a0a;
    --brand-red-bright: #ef4444;
    --brand-gold: #f59e0b;
    --brand-gold-soft: rgba(245, 158, 11, 0.35);
    --brand-gold-muted: #d97706;
    --header-surface: linear-gradient(
        105deg,
        rgba(69, 10, 10, 0.97) 0%,
        rgba(15, 10, 12, 0.96) 38%,
        rgba(12, 8, 14, 0.98) 100%
    );
    --header-border-glow: rgba(245, 158, 11, 0.22);
    --header-sub-bg: rgba(0, 0, 0, 0.35);
    --nav-pill-active-bg: rgba(245, 158, 11, 0.14);
    --nav-pill-active-border: rgba(245, 158, 11, 0.45);
    --nav-pill-active-text: #fde68a;
    --nav-pill-active-shadow: 0 0 20px rgba(245, 158, 11, 0.2);
    --hot-badge-bg: linear-gradient(135deg, #b91c1c, #7f1d1d);
    --hot-badge-text: #fff7ed;
    --platform-chip-bg: rgba(255, 255, 255, 0.06);
    --platform-chip-border: rgba(245, 158, 11, 0.18);
}

.ui-nova {
    --shell-accent: var(--accent-color, var(--brand-red-bright));
    --shell-accent-soft: color-mix(in srgb, var(--shell-accent) 38%, transparent);
}

@media (prefers-reduced-motion: reduce) {
    .shell-header,
    .shell-header__sub,
    .shell-nav a,
    .shell-platform-strip a,
    .shell-header__pills .pill {
        transition: none !important;
    }
}

/* Platform strip + discovery pills (public layout) */
.shell-platform-strip {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 36px;
}

.shell-platform-strip__label {
    flex-shrink: 0;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand-gold-muted, #d97706);
    font-family: var(--font-sans);
}

.shell-platform-strip__scroll {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    flex: 1;
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.shell-platform-strip__scroll::-webkit-scrollbar {
    display: none;
}

.shell-platform-chip {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    color: #e7e5e4;
    background: var(--platform-chip-bg, rgba(255, 255, 255, 0.06));
    border: 1px solid var(--platform-chip-border, rgba(245, 158, 11, 0.18));
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.shell-platform-chip:hover {
    color: #fffbeb;
    background: rgba(185, 28, 28, 0.25);
    border-color: rgba(245, 158, 11, 0.35);
}

.shell-platform-chip--brand {
    border-color: color-mix(in srgb, var(--p, #f59e0b) 55%, transparent);
}

.shell-hot-badge--inline {
    margin-left: 0.35rem;
    font-size: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 4px;
    background: var(--hot-badge-bg, linear-gradient(135deg, #b91c1c, #7f1d1d));
    color: var(--hot-badge-text, #fff7ed);
}

/* ——— AagMaal.Buzz CSS text logo (v2 redesign) ——— */
.shell-brand--aagmaal {
    --aag-logo-primary: #fff1f2;
    --aag-logo-accent: var(--brand-red-bright, #fb7185);
    --aag-logo-accent-hot: var(--shell-accent, #f43f5e);
    --aag-logo-tld: rgba(253, 164, 175, 0.58);
    gap: 0.28rem;
    font-family: var(--shell-font, var(--font-sans));
    font-weight: 800;
    font-size: 1.18rem;
    letter-spacing: -0.02em;
    line-height: 1;
    overflow: visible;
}

.shell-brand--aagmaal .shell-brand__icon {
    width: 1.65em;
    height: 1.1em;
    flex-shrink: 0;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(76, 5, 30, 0.6));
    transition: filter 0.25s ease, transform 0.2s ease;
}

.shell-brand--aagmaal .shell-brand__text {
    display: inline-flex;
    align-items: baseline;
    white-space: nowrap;
    font-style: italic;
    transform: skewX(-5deg);
    transform-origin: center center;
    overflow: visible;
    padding-right: 0.14em;
}

/* Aag — warm rose-white (ruby header matched) */
.shell-brand--aagmaal .shell-brand__primary {
    color: var(--aag-logo-primary);
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(76, 5, 30, 0.45);
}

/* Maal — ruby accent glow (header-matched) */
.shell-brand--aagmaal .shell-brand__accent {
    color: var(--aag-logo-accent);
    font-weight: 800;
    padding-right: 0.04em;
    text-shadow:
        0 0 6px rgba(244, 63, 94, 0.55),
        0 0 14px rgba(225, 29, 72, 0.35),
        0 1px 2px rgba(76, 5, 30, 0.5);
}

/* .Buzz — muted rose (header chrome tone) */
.shell-brand--aagmaal .shell-brand__tld {
    font-size: 0.56em;
    font-weight: 700;
    font-style: italic;
    color: var(--aag-logo-tld);
    letter-spacing: 0.02em;
    margin-left: -0.04em;
    align-self: baseline;
    text-shadow: none;
    transform: skewX(0deg);
}

.shell-brand--aagmaal:hover .shell-brand__accent {
    color: var(--aag-logo-accent-hot);
    text-shadow:
        0 0 8px rgba(244, 63, 94, 0.7),
        0 0 18px rgba(225, 29, 72, 0.45),
        0 1px 2px rgba(76, 5, 30, 0.5);
}

.shell-brand--aagmaal:hover .shell-brand__icon {
    filter: drop-shadow(0 2px 6px rgba(225, 29, 72, 0.45));
    transform: scale(1.04);
}

.shell-brand--aagmaal.shell-brand--footer {
    font-size: 1.2rem;
}

.shell-brand--aagmaal.shell-brand--footer .shell-brand__icon {
    width: 1.58em;
    height: 1.05em;
}

/* Light mode — darker readable text, solid rose accent */
body[data-theme="light"] .shell-brand--aagmaal .shell-brand__primary {
    color: #334155;
    text-shadow: none;
}

body[data-theme="light"] .shell-brand--aagmaal .shell-brand__accent {
    color: #e11d48;
    text-shadow: none;
    padding-right: 0.06em;
}

body[data-theme="light"] .shell-brand--aagmaal .shell-brand__tld {
    color: rgba(148, 163, 184, 0.85);
}

body[data-theme="light"] .shell-brand--aagmaal:hover .shell-brand__accent {
    color: #be123c;
    text-shadow: 0 0 8px rgba(225, 29, 72, 0.25);
}

body[data-theme="light"] .shell-brand--aagmaal .shell-brand__icon {
    filter: drop-shadow(0 1px 4px rgba(225, 29, 72, 0.3));
}

body[data-theme="light"] .shell-brand--aagmaal:hover .shell-brand__icon {
    filter: drop-shadow(0 2px 8px rgba(225, 29, 72, 0.45));
}

/* Mobile header: centered logo, full AagMaal.Buzz visible */
@media (max-width: 992px) {
    .shell-header__inner {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.35rem;
    }

    .shell-nav-toggle {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .shell-brand.shell-brand--aagmaal {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        flex: none;
        min-width: 0;
        max-width: 100%;
        font-size: clamp(0.78rem, 3.5vw, 1.12rem);
    }

    .shell-brand--aagmaal .shell-brand__text {
        max-width: 100%;
    }

    .shell-brand--aagmaal .shell-brand__tld {
        font-size: 0.54em;
    }

    .shell-actions {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        flex-shrink: 0;
        gap: 0.35rem;
    }
}

@media (max-width: 380px) {
    .shell-brand--aagmaal {
        font-size: clamp(0.72rem, 3.2vw, 0.88rem);
        gap: 0.24rem;
    }

    .shell-brand--aagmaal .shell-brand__icon {
        width: 1.52em;
        height: 1.02em;
    }

    .shell-brand--aagmaal .shell-brand__tld {
        font-size: 0.52em;
    }
}
