/* =========================================================
   CONINCSTUDIO · DASHBOARD HERO
   Namespace: .csh-  (ConincStudio Hero)
   Isolated from .csd-dashboard v5
========================================================= */

.csh-hero,
.csh-hero * {
    box-sizing: border-box;
}

.csh-hero {
    /* ---------- Brand Tokens (local scope) ---------- */
    --csh-bg:            #120A1F;
    --csh-bg-2:          #1B1333;
    --csh-bg-3:          #0F0A1A;

    --csh-gold:          #F5B301;
    --csh-gold-soft:     #FEC503;
    --csh-gold-royal:    #D4AF37;

    --csh-orange:        #FF8C42;
    --csh-purple:        #9D4DFF;
    --csh-teal:          #00E6D7;

    --csh-text:          #FFFFFF;
    --csh-text-muted:    #EEEEEE;
    --csh-text-dim:      #BBBBBB;

    --csh-cta:           linear-gradient(90deg, #F5B301, #FF8C42);
    --csh-surface:       linear-gradient(135deg, #120A1F, #1B1333);

    --csh-radius-pill:   999px;
    --csh-radius-card:   28px;

    --csh-glow-gold:     0 0 24px rgba(245, 179, 1, 0.35);
    --csh-glow-purple:   0 12px 30px rgba(157, 77, 255, 0.35);
    --csh-glow-orange:   0 0 30px rgba(255, 140, 66, 0.35);

    --csh-font-head:     'Inter', system-ui, -apple-system, sans-serif;
    --csh-font-body:     'Roboto', system-ui, -apple-system, sans-serif;

    /* ---------- Layout ---------- */
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 340px;
    margin-bottom: 40px;
    border-radius: var(--csh-radius-card);
    background: var(--csh-bg-2);
    color: var(--csh-text);
    font-family: var(--csh-font-body);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(245, 179, 1, 0.12);
}

/* =========================================================
   COVER / BACKGROUND
========================================================= */
.csh-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.csh-hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) saturate(1.25);
    will-change: transform, object-position;
    transition: transform .35s ease, object-position .35s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* =========================================================
   OVERLAY (cinematic vignette)
========================================================= */
.csh-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at 20% 0%,
            rgba(255, 140, 66, 0.18),
            transparent 55%
        ),
        radial-gradient(
            circle at 85% 100%,
            rgba(157, 77, 255, 0.18),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            rgba(18, 10, 31, 0.15) 0%,
            rgba(18, 10, 31, 0.85) 65%,
            #120A1F 100%
        );
    pointer-events: none;
    z-index: 1;
}

/* =========================================================
   INNER LAYOUT
========================================================= */
.csh-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 48px;
    min-height: 340px;
    justify-content: flex-end;
}

/* ---------- Identity row (avatar + name) ---------- */
.csh-hero__identity {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.csh-hero__avatar-group {
    position: relative;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csh-hero__avatar {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--csh-gold);
    box-shadow:
        0 0 0 4px rgba(18, 10, 31, 0.9),
        var(--csh-glow-gold),
        0 0 60px rgba(255, 140, 66, 0.25);
    transition: transform .3s ease, box-shadow .3s ease;
}
.csh-hero__avatar:hover {
    transform: scale(1.03);
    box-shadow:
        0 0 0 4px rgba(18, 10, 31, 0.9),
        0 0 48px rgba(245, 179, 1, 0.6);
}

/* ---------- User name block ---------- */
.csh-hero__user h2 {
    font-family: var(--csh-font-head);
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 4px;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5B301 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(245, 179, 1, 0.25);
}
.csh-hero__user span {
    color: var(--csh-text-muted);
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    opacity: 0.85;
}

/* =========================================================
   NOW PLAYING / PRESENCE (engine-driven)
========================================================= */
.csh-hero__now-playing,
.csh-hero__presence {
    min-height: 0;
}
.csh-hero__online {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--csh-teal);
    box-shadow: 0 0 12px var(--csh-teal);
    align-self: flex-start;
}

/* =========================================================
   HEADLINE + SUBTITLE
========================================================= */
.csh-hero__headline {
    font-family: var(--csh-font-head);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    margin: 0;
    color: var(--csh-text);
    text-shadow: 0 0 30px rgba(245, 179, 1, 0.15);
}

.csh-hero__sub {
    margin: 0;
    color: var(--csh-text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    opacity: 0.85;
}

/* =========================================================
   ACTION BUTTONS
========================================================= */
.csh-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.csh-btn {
    font-family: var(--csh-font-head);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 13px 28px;
    border-radius: var(--csh-radius-pill);
    border: none;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background .25s ease,
        color .25s ease,
        border-color .25s ease;
    white-space: nowrap;
    background: transparent;
    color: inherit;
}

.csh-btn--primary {
    background: var(--csh-cta);
    color: #120A1F;
    box-shadow:
        0 4px 14px rgba(245, 179, 1, 0.3),
        0 0 20px rgba(255, 140, 66, 0.2);
}
.csh-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 12px 28px rgba(245, 179, 1, 0.5),
        0 0 32px rgba(255, 140, 66, 0.4);
}

.csh-btn--outline {
    border: 2px solid var(--csh-gold);
    color: var(--csh-gold);
}
.csh-btn--outline:hover {
    background: rgba(245, 179, 1, 0.1);
    border-color: var(--csh-gold-soft);
    color: var(--csh-gold-soft);
    transform: translateY(-3px);
    box-shadow: 0 0 24px rgba(245, 179, 1, 0.3);
}

/* =========================================================
   SOCIAL ANCHOR
========================================================= */
.csh-social-anchor {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 900px) {
    .csh-hero__inner {
        padding: 32px 24px;
        text-align: center;
        align-items: center;
    }
    .csh-hero__identity {
        justify-content: center;
        text-align: center;
    }
    .csh-hero__actions {
        justify-content: center;
        width: 100%;
    }
    .csh-hero__online {
        align-self: center;
    }
}

@media (max-width: 540px) {
    .csh-hero__avatar {
        width: 100px;
        height: 100px;
    }
    .csh-hero__actions .csh-btn {
        flex: 1 1 100%;
        text-align: center;
    }
    .csh-hero {
        border-radius: 20px;
    }
    .csh-hero__inner {
        padding: 28px 18px;
    }
}

/* =========================================================
   REDUCED MOTION
========================================================= */
@media (prefers-reduced-motion: reduce) {
    .csh-hero *,
    .csh-hero *::before,
    .csh-hero *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}