/**
 * Gilba Shade UI Styles v1.0.0
 * Progressive disclosure styling for shade analysis
 */

/* ============================================================
   SHADE RESULT CONTAINER
============================================================ */

.gaip-shade-result {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gaip-shade-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-muted, #6b7280);
}

.gaip-empty-message {
    font-size: 0.85rem;
    font-style: italic;
}

/* ============================================================
   VERDICT HEADER (State 1)
============================================================ */

.gaip-shade-verdict {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid;
}

.gaip-shade-verdict.gaip-severity-good {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}

.gaip-shade-verdict.gaip-severity-watch {
    background: rgba(234, 179, 8, 0.1);
    border-color: rgba(234, 179, 8, 0.4);
    color: #eab308;
}

.gaip-shade-verdict.gaip-severity-concern {
    background: rgba(249, 115, 22, 0.1);
    border-color: rgba(249, 115, 22, 0.4);
    color: #f97316;
}

.gaip-shade-verdict.gaip-severity-critical {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.gaip-verdict-icon {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.gaip-verdict-text {
    flex: 1;
}

.gaip-verdict-metrics {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* ============================================================
   METRIC CHIPS
============================================================ */

.gaip-metric-chip {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: var(--text-soft, #9ca3af);
    white-space: nowrap;
}

.gaip-metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

/* ============================================================
   EXPANDABLE PANELS
============================================================ */

.gaip-shade-panel {
    border: 1px solid var(--border, #1e293b);
    border-radius: 8px;
    background: var(--bg-card, #0b1220);
    overflow: hidden;
}

.gaip-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}

.gaip-panel-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

.gaip-chevron {
    font-size: 0.7rem;
    color: var(--text-muted, #6b7280);
    transition: transform 0.2s ease;
}

.gaip-panel-title {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-main, #e5e7eb);
}

.gaip-panel-badge {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.gaip-panel-badge.gaip-severity-good {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.gaip-panel-badge.gaip-severity-watch {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.4);
}

.gaip-panel-badge.gaip-severity-concern {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.gaip-panel-badge.gaip-severity-critical {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.gaip-panel-content {
    padding: 10px 12px;
    border-top: 1px solid var(--border, #1e293b);
    font-size: 0.82rem;
    color: var(--text-soft, #9ca3af);
}

/* ============================================================
   WHY SECTION (State 2)
============================================================ */

.gaip-shade-why {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.gaip-why-row {
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.gaip-why-label {
    min-width: 120px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}

.gaip-why-value {
    font-size: 0.82rem;
    color: var(--text-main, #e5e7eb);
}

.gaip-why-reason {
    padding-left: 128px;
    font-style: italic;
    color: var(--text-soft, #9ca3af);
}

/* ============================================================
   HINTS
============================================================ */

.gaip-hint {
    font-size: 0.75rem;
    color: var(--text-muted, #6b7280);
    margin-top: 6px;
    line-height: 1.4;
}

.gaip-hint-warn {
    color: #fbbf24;
}

/* ============================================================
   SENSITIVITY ANALYSIS (State 3)
============================================================ */

.gaip-sensitivity-scenario {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.gaip-sensitivity-scenario:last-child {
    border-bottom: none;
}

.gaip-scenario-label {
    min-width: 180px;
    font-size: 0.78rem;
    color: var(--text-muted, #6b7280);
}

.gaip-scenario-value {
    font-size: 0.82rem;
    color: var(--accent, #22c55e);
    font-family: ui-monospace, monospace;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 600px) {
    .gaip-shade-verdict {
        flex-wrap: wrap;
    }
    
    .gaip-verdict-metrics {
        width: 100%;
        margin-top: 6px;
    }
    
    .gaip-why-row {
        flex-direction: column;
        gap: 2px;
    }
    
    .gaip-why-label {
        min-width: unset;
    }
    
    .gaip-why-reason {
        padding-left: 0;
    }
    
    .gaip-sensitivity-scenario {
        flex-direction: column;
        gap: 2px;
    }
    
    .gaip-scenario-label {
        min-width: unset;
    }
}
