/* ═══════════════════════════════════════════════════════════════════
   TradeMate VN — Dashboard & Result Components
   ═══════════════════════════════════════════════════════════════════ */

/* ── Result Header ────────────────────────────────────── */
.result-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.result-badge.style-MOMENTUM { background: rgba(239,68,68,0.15); color: var(--tm-momentum); border: 1px solid rgba(239,68,68,0.3); }
.result-badge.style-SWING { background: rgba(245,158,11,0.15); color: var(--tm-swing); border: 1px solid rgba(245,158,11,0.3); }
.result-badge.style-POSITION { background: rgba(59,130,246,0.15); color: var(--tm-position); border: 1px solid rgba(59,130,246,0.3); }
.result-badge.style-VALUE { background: rgba(16,185,129,0.15); color: var(--tm-value); border: 1px solid rgba(16,185,129,0.3); }
.result-badge.style-DCA { background: rgba(139,92,246,0.15); color: var(--tm-dca); border: 1px solid rgba(139,92,246,0.3); }

.result-confidence {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* ── Radar Chart Container ────────────────────────────── */
.radar-container {
    display: flex;
    justify-content: center;
    margin: var(--space-xl) 0;
}

.radar-canvas {
    max-width: 320px;
    width: 100%;
    aspect-ratio: 1;
}

/* ── Score Bars ───────────────────────────────────────── */
.score-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.score-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-size-sm);
}

.score-bar-label {
    font-weight: 600;
}

.score-bar-value {
    color: var(--color-text-muted);
}

.score-bar-track {
    height: 8px;
    background: var(--tm-progress-bg);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s ease-out;
}

.score-bar-fill.style-MOMENTUM { background: var(--tm-momentum); }
.score-bar-fill.style-SWING { background: var(--tm-swing); }
.score-bar-fill.style-POSITION { background: var(--tm-position); }
.score-bar-fill.style-VALUE { background: var(--tm-value); }
.score-bar-fill.style-DCA { background: var(--tm-dca); }

/* ── Style Description ────────────────────────────────── */
.style-section {
    margin-bottom: var(--space-xl);
}

.style-section-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.style-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.style-list li {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    padding-left: var(--space-lg);
    position: relative;
    line-height: 1.6;
}

.style-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* ── Quick Stats ──────────────────────────────────────── */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

.quick-stat {
    padding: var(--space-md);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    text-align: center;
}

.quick-stat-label {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
}

.quick-stat-value {
    font-size: var(--font-size-md);
    font-weight: 600;
}

/* ── Action Buttons (result page) ─────────────────────── */
.result-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-2xl);
}

/* ── Dashboard Home ───────────────────────────────────── */
.dashboard-welcome {
    text-align: center;
    padding: var(--space-3xl) 0;
}

.dashboard-style-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin: var(--space-lg) 0;
}

.dashboard-hint {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-top: var(--space-xl);
    font-style: italic;
}
