/* DVP header, identity, platform, rank, standing, and subscription status styles.
   Split from support-detailed-profile.css. Keep DVP-only styles in these owner files. */


/* --------------------------------------------------------------------------
   Hero / selected viewer header
-------------------------------------------------------------------------- */

.dvp-hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
    gap: 18px;
    align-items: center;
    padding: 16px !important;
    min-height: 0;
}

.dvp-hero-card h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4.2vw, 46px) !important;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: none !important;
}

.dvp-identity-row {
    margin-top: 10px;
}

/* --------------------------------------------------------------------------
   !setname helper pill — explains how to change the displayed name + copies it.
   (Overrides the generic .dvp-identity-meta span pill styling via specificity.)
-------------------------------------------------------------------------- */

.dvp-identity-meta .dvp-setname {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    letter-spacing: normal;
}

.dvp-setname-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 6px 3px 9px;
    border: 1px solid rgba(126, 223, 255, 0.30);
    border-radius: 999px;
    background: rgba(126, 223, 255, 0.09);
    color: rgba(199, 218, 236, 0.82);
    font: inherit;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease;
}

.dvp-setname-pill:hover,
.dvp-setname-pill:focus-visible {
    border-color: rgba(126, 223, 255, 0.62);
    background: rgba(126, 223, 255, 0.16);
    color: var(--text);
    transform: translateY(-1px);
    outline: none;
}

.dvp-setname-cmd {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-weight: 950;
    color: var(--text);
}

/* Only rendered once "Copied!" is set on click; empty (hidden) otherwise. */
.dvp-setname-cta {
    display: inline-flex;
    align-items: center;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(126, 223, 255, 0.18);
    color: rgba(214, 231, 247, 0.92);
    font-size: 8.5px;
    font-weight: 950;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dvp-setname-cta:empty {
    display: none;
}

.dvp-setname-pill.copied {
    border-color: rgba(80, 200, 120, 0.6);
    background: rgba(80, 200, 120, 0.15);
    color: #cffbe4;
}

.dvp-setname-pill.copied .dvp-setname-cta {
    background: rgba(80, 200, 120, 0.3);
    color: #e9fff2;
}

/* position:fixed (coordinates set by JS on hover) so the tooltip escapes the DVP
   header's several nested overflow:hidden containers instead of being clipped. */
.dvp-identity-meta .dvp-setname-tip {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: block;
    width: max-content;
    max-width: min(320px, calc(100vw - 28px));
    min-height: 0;
    padding: 10px 12px;
    border: 1px solid rgba(126, 223, 255, 0.26);
    border-radius: 10px;
    background: #0a1a2e;
    color: rgba(214, 231, 247, 0.92);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.42;
    letter-spacing: normal;
    text-transform: none;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 140ms ease, transform 140ms ease, visibility 140ms;
    pointer-events: none;
}

/* Only reveal once JS has set the fixed coordinates (.is-positioned), so a header
   soft-refresh that re-creates the tooltip can't flash it at the default 0,0 while
   the pointer still happens to be over the (new) pill. */
.dvp-setname.is-positioned:hover .dvp-setname-tip,
.dvp-setname.is-positioned:focus-within .dvp-setname-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dvp-setname-tip code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    padding: 1px 5px;
    border-radius: 5px;
    background: rgba(126, 223, 255, 0.16);
    color: #dcf3ff;
    font-weight: 800;
}

.dvp-setname-tip b {
    color: var(--text);
    font-weight: 900;
}

@media (max-width: 560px) {
    .dvp-identity-meta .dvp-setname-tip {
        max-width: 260px;
    }
}

.dvp-hero-status {
    display: grid;
    gap: 8px;
    min-width: 285px;
}

/* --------------------------------------------------------------------------
   Platform pills + hero status pills
-------------------------------------------------------------------------- */

.dvp-platform-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.dvp-platform-pill {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 11px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
}

.dvp-platform-pill img {
    width: 15px;
    height: 15px;
    object-fit: contain;
    display: block;
}

.dvp-platform-pill b {
    font-weight: 950;
}

.dvp-platform-pill.unlinked {
    opacity: 0.38;
    filter: grayscale(1);
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: rgba(199, 218, 236, 0.56) !important;
}

.dvp-platform-pill.unlinked img {
    opacity: 0.46;
}

/* Platform pills are links to The Bunker Show's channel on each platform. */
a.dvp-platform-pill {
    text-decoration: none;
    cursor: pointer;
    transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease, filter 140ms ease;
}

a.dvp-platform-pill:hover,
a.dvp-platform-pill:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
    outline: none;
}

a.dvp-platform-pill:not(.unlinked):hover,
a.dvp-platform-pill:not(.unlinked):focus-visible {
    filter: brightness(1.15);
}

a.dvp-platform-pill.unlinked:hover,
a.dvp-platform-pill.unlinked:focus-visible {
    opacity: 0.74;
}

.dvp-platform-pill.twitch { border-color: color-mix(in srgb, var(--twitch), white 20%); background: color-mix(in srgb, var(--twitch), transparent 86%); }
.dvp-platform-pill.youtube { border-color: color-mix(in srgb, var(--youtube), white 20%); background: color-mix(in srgb, var(--youtube), transparent 88%); }
.dvp-platform-pill.kick { border-color: color-mix(in srgb, var(--kick), white 20%); background: color-mix(in srgb, var(--kick), transparent 88%); }
.dvp-platform-pill.rumble { border-color: color-mix(in srgb, var(--rumble), white 20%); background: color-mix(in srgb, var(--rumble), transparent 86%); }
.dvp-platform-pill.facebook { border-color: color-mix(in srgb, var(--facebook), white 20%); background: color-mix(in srgb, var(--facebook), transparent 86%); }
.dvp-platform-pill.instagram { border-color: color-mix(in srgb, var(--instagram), white 20%); background: color-mix(in srgb, var(--instagram), transparent 86%); }
.dvp-platform-pill.patreon { border-color: color-mix(in srgb, var(--patreon), white 20%); background: color-mix(in srgb, var(--patreon), transparent 86%); }
.dvp-platform-pill.x { border-color: rgba(255, 255, 255, 0.58); background: rgba(255, 255, 255, 0.09); }
.dvp-platform-pill.tiktok { border-color: rgba(37, 244, 238, 0.72); background: rgba(37, 244, 238, 0.1); }
.dvp-platform-pill.discord { border-color: color-mix(in srgb, var(--discord), white 20%); background: color-mix(in srgb, var(--discord), transparent 86%); }

/* Live "present now" (Feature 3): a green dot to the RIGHT of the platform name,
   with a pulse ring tinted to that platform's own colour so it doesn't clash. */
.dvp-platform-pill { --present-accent: #34d058; }
.dvp-platform-pill.twitch { --present-accent: var(--twitch); }
.dvp-platform-pill.youtube { --present-accent: var(--youtube); }
.dvp-platform-pill.kick { --present-accent: var(--kick); }
.dvp-platform-pill.rumble { --present-accent: var(--rumble); }
.dvp-platform-pill.facebook { --present-accent: var(--facebook); }
.dvp-platform-pill.instagram { --present-accent: var(--instagram); }
.dvp-platform-pill.tiktok { --present-accent: #25f4ee; }

.dvp-present-dot {
    position: relative;
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d058;
    box-shadow: 0 0 4px rgba(52, 208, 88, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.35);
    flex: none;
}

.dvp-present-dot::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--present-accent, #34d058);
    opacity: 0.75;
    animation: dvp-present-pulse 1.8s ease-out infinite;
}

@keyframes dvp-present-pulse {
    0% { transform: scale(0.55); opacity: 0.75; }
    100% { transform: scale(2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .dvp-present-dot::after { animation: none; opacity: 0.55; transform: scale(1.2); }
}

.dvp-status-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 2px 10px;
    border: 1px solid rgba(126, 223, 255, 0.22);
    border-radius: 999px;
    background: rgba(126, 223, 255, 0.07);
    color: var(--text);
    font-weight: 950;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    text-decoration: none !important;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease, color 160ms ease;
}

.dvp-status-pill > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.dvp-rank-icon-placeholder::before {
    content: "";
    width: 13px;
    height: 13px;
    border-radius: 999px;
    border: 1px solid rgba(126, 223, 255, 0.52);
    box-shadow: 0 0 10px rgba(126, 223, 255, 0.22);
}

.dvp-status-rank-badge,
.dvp-standing-medal,
.dvp-sub-badge {
    display: inline-grid;
    place-items: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    overflow: visible;
    line-height: 1;
}

.dvp-status-rank-badge img,
.dvp-standing-medal img,
.dvp-sub-badge img {
    width: 24px;
    height: 24px;
    max-width: 24px;
    max-height: 24px;
    object-fit: contain;
    display: block;
}

.dvp-status-rank-badge.fallback {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 999px;
    border: 1px solid rgba(182, 126, 255, 0.42);
    box-shadow: 0 0 8px rgba(137, 82, 255, 0.18);
}

.dvp-subscription-status {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.dvp-subscription-status .dvp-sub-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dvp-subscription-status .dvp-sub-extra-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 20px;
    padding: 2px 7px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--text);
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
}

.dvp-subscription-status.inactive {
    border-color: rgba(199, 218, 236, 0.16);
    background: rgba(199, 218, 236, 0.045);
    color: rgba(199, 218, 236, 0.58);
    box-shadow: none;
}

.dvp-subscription-status.inactive:hover,
.dvp-subscription-status.inactive:focus-visible {
    border-color: rgba(199, 218, 236, 0.24);
    background: rgba(199, 218, 236, 0.065);
    color: rgba(199, 218, 236, 0.72);
    outline: none;
}

.dvp-subscription-status.active {
    border-color: rgba(126, 223, 255, 0.34);
    background: linear-gradient(135deg, rgba(126, 223, 255, 0.12), rgba(8, 24, 45, 0.72));
    box-shadow: inset 0 0 16px rgba(126, 223, 255, 0.045);
}

.dvp-subscription-status.active:hover,
.dvp-subscription-status.active:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

.dvp-subscription-status.active.twitch {
    border-color: color-mix(in srgb, var(--twitch), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--twitch), transparent 78%), rgba(8, 24, 45, 0.72));
    color: #e1d2ff;
}

.dvp-subscription-status.active.twitch:hover,
.dvp-subscription-status.active.twitch:focus-visible {
    border-color: color-mix(in srgb, var(--twitch), white 38%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--twitch), transparent 68%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--twitch), transparent 72%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-subscription-status.active.youtube {
    border-color: color-mix(in srgb, var(--youtube), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--youtube), transparent 82%), rgba(8, 24, 45, 0.72));
    color: #ffc2cc;
}

.dvp-subscription-status.active.youtube:hover,
.dvp-subscription-status.active.youtube:focus-visible {
    border-color: color-mix(in srgb, var(--youtube), white 38%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--youtube), transparent 72%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--youtube), transparent 74%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-subscription-status.active.kick {
    border-color: color-mix(in srgb, var(--kick), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--kick), transparent 84%), rgba(8, 24, 45, 0.72));
    color: #c8ffba;
}

.dvp-subscription-status.active.kick:hover,
.dvp-subscription-status.active.kick:focus-visible {
    border-color: color-mix(in srgb, var(--kick), white 34%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--kick), transparent 76%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--kick), transparent 76%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-subscription-status.active.rumble {
    border-color: color-mix(in srgb, var(--rumble), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--rumble), transparent 82%), rgba(8, 24, 45, 0.72));
    color: #e0ffb7;
}

.dvp-subscription-status.active.rumble:hover,
.dvp-subscription-status.active.rumble:focus-visible {
    border-color: color-mix(in srgb, var(--rumble), white 34%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--rumble), transparent 72%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--rumble), transparent 74%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-subscription-status.active.facebook {
    border-color: color-mix(in srgb, var(--facebook), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--facebook), transparent 82%), rgba(8, 24, 45, 0.72));
    color: #c8ddff;
}

.dvp-subscription-status.active.facebook:hover,
.dvp-subscription-status.active.facebook:focus-visible {
    border-color: color-mix(in srgb, var(--facebook), white 34%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--facebook), transparent 72%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--facebook), transparent 74%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-subscription-status.active.patreon {
    border-color: color-mix(in srgb, var(--patreon), white 22%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--patreon), transparent 82%), rgba(8, 24, 45, 0.72));
    color: #ffd0d5;
}

.dvp-subscription-status.active.patreon:hover,
.dvp-subscription-status.active.patreon:focus-visible {
    border-color: color-mix(in srgb, var(--patreon), white 34%);
    background: linear-gradient(135deg, color-mix(in srgb, var(--patreon), transparent 72%), rgba(8, 24, 45, 0.78));
    box-shadow: 0 0 22px color-mix(in srgb, var(--patreon), transparent 74%), inset 0 0 16px rgba(255, 255, 255, 0.045);
}

.dvp-standing-status.standing-gold {
    color: var(--warning);
    border-color: rgba(255, 211, 126, 0.72);
    background: rgba(255, 211, 126, 0.11);
    box-shadow: 0 0 14px rgba(255, 211, 126, 0.12);
}

.dvp-standing-status.standing-gold:hover,
.dvp-standing-status.standing-gold:focus-visible {
    border-color: rgba(255, 211, 126, 0.86);
    background: linear-gradient(135deg, rgba(255, 211, 126, 0.18), rgba(18, 51, 84, 0.82));
    box-shadow: 0 0 22px rgba(255, 211, 126, 0.20), inset 0 0 16px rgba(255, 211, 126, 0.06);
    transform: translateY(-1px);
    outline: none;
}

.dvp-standing-status.standing-silver {
    color: #d8efff;
    border-color: rgba(190, 225, 255, 0.58);
    background: rgba(190, 225, 255, 0.09);
}

.dvp-standing-status.standing-silver:hover,
.dvp-standing-status.standing-silver:focus-visible {
    border-color: rgba(190, 225, 255, 0.76);
    background: linear-gradient(135deg, rgba(190, 225, 255, 0.14), rgba(8, 24, 45, 0.76));
    box-shadow: 0 0 18px rgba(190, 225, 255, 0.16), inset 0 0 14px rgba(190, 225, 255, 0.05);
    transform: translateY(-1px);
    outline: none;
}

.dvp-standing-status.standing-bronze {
    color: #ffbd86;
    border-color: rgba(255, 170, 105, 0.48);
    background: rgba(255, 170, 105, 0.08);
}

.dvp-standing-status.standing-bronze:hover,
.dvp-standing-status.standing-bronze:focus-visible {
    border-color: rgba(255, 170, 105, 0.66);
    background: linear-gradient(135deg, rgba(255, 170, 105, 0.13), rgba(8, 24, 45, 0.74));
    box-shadow: 0 0 18px rgba(255, 170, 105, 0.14), inset 0 0 14px rgba(255, 170, 105, 0.045);
    transform: translateY(-1px);
    outline: none;
}

.dvp-standing-status:not(.standing-gold):not(.standing-silver):not(.standing-bronze):hover,
.dvp-standing-status:not(.standing-gold):not(.standing-silver):not(.standing-bronze):focus-visible {
    border-color: rgba(126, 223, 255, 0.62);
    background: linear-gradient(135deg, rgba(126, 223, 255, 0.12), rgba(8, 24, 45, 0.72));
    box-shadow: 0 0 16px rgba(35, 180, 255, 0.14), inset 0 0 14px rgba(126, 223, 255, 0.045);
    transform: translateY(-1px);
    outline: none;
}
