/* ═══════════════════════════════════════════════
   BELLUCCI | DOSSIER VIEW — Cinematic Character Overlay
   Appears on selection with high-impact typography
   ═══════════════════════════════════════════════ */

#dossier-view {
    position: fixed;
    inset: 0;
    z-index: 40;
    /* Above grid/camera, below cursor */
    pointer-events: none;
    /* Let clicks pass unless active */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Align right side */
    padding: 6vw;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#dossier-view.active {
    pointer-events: auto;
    opacity: 1;
}

.dossier-content {
    width: 45vw;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(40px);
    opacity: 0;
    /* GSAP will animate this in */
    max-height: 80vh;
    overflow-y: auto;
    padding-right: 12px;
}

/* ── Custom Scrollbar ── */
.dossier-content::-webkit-scrollbar {
    width: 6px;
}

.dossier-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.dossier-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dossier-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ── Typography ── */
.d-id {
    font-family: var(--font-tech);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.d-id::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-accent);
}

.d-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 6vw, 90px);
    font-weight: 800;
    line-height: 0.9;
    color: #fff;
    text-transform: uppercase;
    margin: 0;
    /* SplitText will animate chars */
    mix-blend-mode: difference;
}

.d-role {
    font-family: var(--font-tech);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.d-desc {
    font-family: 'Helvetica Neue', sans-serif;
    /* Clean reading font */
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    border-left: 2px solid var(--color-accent);
    padding-left: 24px;
    max-width: 480px;
}

/* ── Stats ── */
.d-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 16px;
}

.ds-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ds-label {
    font-family: var(--font-tech);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.1em;
}

.ds-bar-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.ds-bar-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    /* GSAP animates width */
}

/* ── Mobile ── */
@media (max-width: 768px) {
    #dossier-view {
        padding: 24px;
        align-items: flex-end;
        /* Bottom align for mobile */
        justify-content: flex-start;
    }

    .dossier-content {
        width: 100%;
        max-width: none;
        transform: translateY(40px);
    }

    .d-title {
        font-size: 42px;
    }

    .d-desc {
        font-size: 13px;
        max-width: 100%;
    }
}