/* ==========================================================================
   ELITE WHAT-IF SIMULATOR CSS
   Glassmorphism, Alternate Reality Vibes, Fill-Area SVGs
   ========================================================================== */

/* Layout & Globals */
.wif-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; display: flex; flex-direction: column; gap: 24px; font-family: 'Inter', sans-serif; }
.wif-layout { display: flex; gap: 24px; align-items: flex-start; }
.wif-builder { width: 380px; flex-shrink: 0; position: sticky; top: 32px; }
.wif-results { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.wif-layout-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Utilities */
.hidden { display: none !important; }
.m-0 { margin: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mb-16 { margin-bottom: 16px; }
.text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; }
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; }
.bg-white { background: #fff; } .bg-purple { background: #c084fc; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseBtn { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.6); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
@keyframes bounceIn { 0% { transform: scale(0.8); opacity: 0; } 50% { transform: scale(1.05); opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
.fade-in { animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseBtn 2s infinite; }

/* Cards (Glassmorphism) */
.wif-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

/* Header Elements */
.wif-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; }
.wif-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; }
.wif-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.wif-header__stats { display: flex; gap: 24px; }
.wif-stat-card { text-align: center; }
.wif-stat-val { display: block; font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.wif-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }

/* Buttons & Inputs */
.wif-btn { padding: 10px 20px; border-radius: 12px; font-weight: 600; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); border: none; text-transform: uppercase; font-family: inherit; }
.wif-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; }
.wif-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.wif-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.wif-btn--secondary:hover { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.wif-btn--massive { width: 100%; padding: 16px; font-size: 1.1rem; border-radius: 16px; }
.wif-btn-icon { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.wif-btn-icon:hover { background: rgba(192,132,252,0.2); color: #c084fc; border-color: #c084fc; }

.wif-input, .wif-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.wif-input:focus, .wif-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }
.wif-form-group { margin-bottom: 16px; }
.wif-form-group label { display: block; margin-bottom: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Builder Elements */
.wif-section-title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1px; margin: 0 0 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.wif-presets-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.wif-preset-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); padding: 6px 12px; border-radius: 16px; font-size: 0.75rem; cursor: pointer; transition: 0.3s; }
.wif-preset-btn:hover { background: rgba(251,191,36,0.1); border-color: #fbbf24; color: #fbbf24; }

.wif-range { -webkit-appearance: none; width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; outline: none; }
.wif-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #c084fc; cursor: pointer; box-shadow: 0 0 10px rgba(192,132,252,0.5); transition: 0.2s; }
.wif-range::-webkit-slider-thumb:hover { transform: scale(1.2); }
.wif-quick-btns { display: flex; gap: 6px; }
.wif-chip-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; transition: 0.2s; }
.wif-chip-btn:hover { background: rgba(192,132,252,0.2); border-color: #c084fc; }

.wif-radio-group { display: flex; flex-direction: column; gap: 10px; }
.wif-radio { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: rgba(255,255,255,0.8); cursor: pointer; }
.wif-radio input[type="radio"] { accent-color: #c084fc; width: 16px; height: 16px; cursor: pointer; }

.wif-filter-row { display: grid; grid-template-columns: 2fr 2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; background: rgba(0,0,0,0.2); padding: 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.05); }

/* Hero Results */
.wif-hero-card { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: radial-gradient(circle at center, rgba(168,85,247,0.1), rgba(0,0,0,0)); }
.wif-hero-val { font-size: 6rem; font-weight: 800; margin: 8px 0; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
.wif-hero-sub { font-size: 1.1rem; color: rgba(255,255,255,0.6); }
.wif-verdict-chip { display: inline-block; padding: 8px 16px; border-radius: 12px; font-weight: 800; letter-spacing: 1px; font-size: 0.9rem; }

.wif-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; max-width: 800px; background: rgba(0,0,0,0.3); padding: 24px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.05); }
.wif-kpi { display: flex; flex-direction: column; align-items: center; }
.wif-kpi .lbl { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; }
.wif-kpi .val { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }

/* SVG Chart */
.wif-svg-container { width: 100%; height: 350px; background: rgba(0,0,0,0.2); border-radius: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.wif-chart-legend { display: flex; gap: 16px; justify-content: center; font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.legend-item { display: flex; align-items: center; gap: 8px; }
.legend-box { width: 12px; height: 12px; border-radius: 2px; }
.chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.chart-path-base { fill: none; stroke: rgba(255,255,255,0.4); stroke-width: 2; stroke-linejoin: round; }
.chart-path-wif { fill: none; stroke: #c084fc; stroke-width: 3; stroke-linejoin: round; filter: drop-shadow(0 0 5px rgba(192,132,252,0.5)); }
.chart-fill-pos { fill: rgba(34,197,94,0.15); }
.chart-fill-neg { fill: rgba(239,83,80,0.15); }

/* Impact Lists */
.wif-impact-split { display: flex; gap: 24px; }
.wif-impact-col { flex: 1; background: rgba(0,0,0,0.2); border-radius: 12px; padding: 16px; border: 1px solid rgba(255,255,255,0.05); }
.impact-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.85rem; }
.impact-item:last-child { border-bottom: none; }
.impact-item .t-id { color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.impact-item .t-val { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Metrics Table */
.wif-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.wif-table th { text-align: left; padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; }
.wif-table td { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-variant-numeric: tabular-nums; }
.wif-table tr:hover td { background: rgba(255,255,255,0.02); }
.delta-pos { color: #22c55e; font-weight: 700; }
.delta-neg { color: #ef5350; font-weight: 700; }
.delta-neu { color: rgba(255,255,255,0.6); }

/* Insights */
.wif-insights-list { display: flex; flex-direction: column; gap: 12px; }
.wif-insight-card { background: rgba(0,0,0,0.3); padding: 16px; border-radius: 12px; border-left: 3px solid #c084fc; font-size: 0.85rem; line-height: 1.4; display: flex; gap: 12px; align-items: flex-start; }
.wif-insight-card i { font-size: 1.2rem; margin-top: 2px; }