/* ═══════════════════════════════════════════════════════════
   DUNBAR CALIBRATION™ — Analysis UI Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Drop Zone States ── */
.upload-section.dragover {
    border-color: rgba(0, 212, 255, 0.8) !important;
    background: rgba(0, 212, 255, 0.08) !important;
    transform: scale(1.01);
}

/* ── Progress Bar ── */
.dunbar-progress {
    display: none;
    max-width: 600px;
    margin: 30px auto 0;
}
.dunbar-progress-track {
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.dunbar-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00d4ff, #22d3ee, #a855f7);
    border-radius: 10px;
    transition: width 0.4s ease;
}
.dunbar-progress-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    color: #94a3b8;
    text-align: center;
}

/* ── Error Message ── */
.dunbar-error {
    background: rgba(239,68,68,0.1);
    border: 1px solid rgba(239,68,68,0.3);
    border-radius: 10px;
    padding: 14px 20px;
    color: #ef4444;
    font-weight: 600;
    text-align: center;
    margin-top: 16px;
}

/* ── Status Area ── */
.dunbar-status { display: none; margin-top: 16px; }

/* ═══════════════════════════════════════
   RESULTS PANEL
   ═══════════════════════════════════════ */
.dunbar-results {
    display: none;
    background: linear-gradient(145deg, rgba(15,30,55,0.85), rgba(10,22,40,0.95));
    border: 1px solid rgba(26,45,71,0.6);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    animation: fadeSlideIn 0.5s ease forwards;
}
.dunbar-results.show { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Status border glow */
.dunbar-results.status-verified  { border-color: rgba(34,197,94,0.4); box-shadow: 0 0 40px rgba(34,197,94,0.08); }
.dunbar-results.status-trace     { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 40px rgba(245,158,11,0.08); }
.dunbar-results.status-assisted  { border-color: rgba(245,158,11,0.4); box-shadow: 0 0 40px rgba(245,158,11,0.08); }
.dunbar-results.status-heavy     { border-color: rgba(239,68,68,0.4); box-shadow: 0 0 40px rgba(239,68,68,0.08); }
.dunbar-results.status-rejected  { border-color: rgba(239,68,68,0.6); box-shadow: 0 0 40px rgba(239,68,68,0.15); }

/* ── Header: Badge + Score Ring ── */
.report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.report-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.2em;
    letter-spacing: 1px;
}
.badge-emoji { font-size: 1.4em; }
.badge-verified  { background: rgba(34,197,94,0.15); color: #22c55e; border: 2px solid rgba(34,197,94,0.4); }
.badge-trace     { background: rgba(245,158,11,0.12); color: #f59e0b; border: 2px solid rgba(245,158,11,0.35); }
.badge-assisted  { background: rgba(245,158,11,0.12); color: #f59e0b; border: 2px solid rgba(245,158,11,0.35); }
.badge-heavy     { background: rgba(239,68,68,0.12); color: #ef4444; border: 2px solid rgba(239,68,68,0.35); }
.badge-rejected  { background: rgba(239,68,68,0.18); color: #ef4444; border: 2px solid rgba(239,68,68,0.5); }

/* Score Ring */
.report-score { flex-shrink: 0; }
.score-ring { position: relative; width: 120px; height: 120px; }
.score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.score-bg { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 8; }
.score-fg { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 1.2s ease; }
.score-fg.verified  { stroke: #22c55e; }
.score-fg.trace     { stroke: #f59e0b; }
.score-fg.assisted  { stroke: #f59e0b; }
.score-fg.heavy     { stroke: #ef4444; }
.score-fg.rejected  { stroke: #ef4444; }
.score-number {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.8em; font-weight: 800; color: #fafafa;
}
.score-sub {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, 50%);
    font-size: 0.72em; color: #94a3b8; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
}

/* ── File Meta ── */
.report-meta {
    display: flex; flex-wrap: wrap; gap: 16px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.88em; color: #94a3b8;
}

/* ── Tax Line ── */
.report-tax {
    text-align: center;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.05em;
}
.tax-zero     { color: #22c55e; }
.tax-amount   { color: #f59e0b; }
.tax-rejected { color: #ef4444; }
.status-verified .report-tax  { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.2); }
.status-trace .report-tax     { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.status-assisted .report-tax  { background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.status-heavy .report-tax     { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2); }
.status-rejected .report-tax  { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.3); }

/* ── Analysis Bars ── */
.analysis-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #00d4ff; font-size: 1.15em; margin-bottom: 20px;
}
.analysis-bars { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.analysis-row { margin-bottom: 2px; }
.analysis-label { display: flex; justify-content: space-between; margin-bottom: 6px; }
.a-label { font-weight: 600; color: #e2e8f0; font-size: 0.92em; }
.a-score { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 0.88em; }
.a-score.bar-high { color: #22c55e; }
.a-score.bar-mid  { color: #f59e0b; }
.a-score.bar-low  { color: #ef4444; }
.analysis-track {
    background: rgba(255,255,255,0.06);
    border-radius: 6px; height: 8px; overflow: hidden;
}
.analysis-fill {
    height: 100%; border-radius: 6px;
    transition: width 1s ease;
}
.analysis-fill.bar-high { background: linear-gradient(90deg, #22c55e, #4ade80); }
.analysis-fill.bar-mid  { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.analysis-fill.bar-low  { background: linear-gradient(90deg, #ef4444, #f87171); }
.analysis-desc { font-size: 0.78em; color: #64748b; margin-top: 4px; }

/* ── Note ── */
.analysis-note {
    background: rgba(0,212,255,0.05);
    border: 1px solid rgba(0,212,255,0.15);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 0.85em;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
}
.analysis-note strong { color: #00d4ff; }

/* ── Try Again Button ── */
.try-again-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00d4ff, #22d3ee);
    color: #0a1628;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05em;
    cursor: pointer;
    transition: all 0.3s;
}
.try-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,212,255,0.35);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .dunbar-results { padding: 24px 16px; }
    .report-header { flex-direction: column; align-items: center; text-align: center; }
    .report-badge { font-size: 1em; padding: 10px 20px; }
    .report-meta { font-size: 0.8em; gap: 10px; justify-content: center; }
    .score-ring { width: 100px; height: 100px; }
    .score-number { font-size: 1.5em; }
}
