/* ══════════════════════════════════════════════════════════════════════
   budget-charts.css — FCC Budget Charts: Premium Apple/iOS Design
   ══════════════════════════════════════════════════════════════════════ */

#fcc-budget-dashboard-root {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fcc-bc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 800px) {
  .fcc-bc-grid {
    grid-template-columns: 1fr;
  }
}

.fcc-bc-hero {
  position: relative;
  border-radius: 22px;
  background: linear-gradient(145deg, #1a1a2e 0%, #16213e 55%, #0f3460 100%);
  overflow: hidden;
}

.fcc-bc-hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 16%, rgba(94, 106, 210, 0.28) 0%, transparent 58%);
  pointer-events: none;
}

.fcc-bc-hero-content {
  position: relative;
  z-index: 1;
  padding: 22px 24px 20px;
}

.fcc-bc-hero-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.fcc-bc-hero-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.46);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fcc-bc-delta {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.fcc-bc-delta--up {
  background: rgba(255, 107, 107, 0.20);
  color: #ff7b7b;
}

.fcc-bc-delta--down {
  background: rgba(76, 217, 100, 0.20);
  color: #4cd964;
}

.fcc-bc-hero-amount {
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.035em;
  line-height: 1;
  margin-bottom: 12px;
}

.fcc-bc-hero-budget {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.fcc-bc-budget-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fcc-bc-budget-pill--on_track {
  background: rgba(52, 199, 89, 0.22);
  color: #4cd964;
}

.fcc-bc-budget-pill--watch {
  background: rgba(255, 204, 0, 0.18);
  color: #ffd84d;
}

.fcc-bc-budget-pill--over {
  background: rgba(255, 59, 48, 0.20);
  color: #ff8d87;
}

.fcc-bc-hero-budget-copy {
  color: rgba(255,255,255,0.76);
  font-size: 15px;
  font-weight: 700;
}

.fcc-bc-hero-meta {
  display: grid;
  gap: 6px;
  color: rgba(255,255,255,0.80);
  font-size: 14px;
}

.fcc-bc-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .fcc-bc-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .fcc-bc-insights {
    grid-template-columns: 1fr;
  }
}

.fcc-bc-insight-card,
.fcc-bc-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(191, 205, 234, 0.70);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(22, 34, 68, 0.06);
}

.fcc-bc-insight-card {
  padding: 14px 16px;
}

.fcc-bc-insight-label {
  font-size: 12px;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.90);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.fcc-bc-insight-value {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.05;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
}

.fcc-bc-insight-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(15, 23, 42, 0.58);
}

.fcc-bc-card {
  padding: 16px 16px 14px;
}

.fcc-bc-card--wide {
  padding-bottom: 18px;
}

.fcc-bc-card-head {
  margin-bottom: 12px;
}

.fcc-bc-card-title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.fcc-bc-card-sub {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.56);
}

.fcc-bc-canvas-wrap {
  position: relative;
  height: 260px;
}

.fcc-bc-canvas-wrap--tall {
  height: 320px;
}

.fcc-bc-progress-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.fcc-bc-progress-row {
  display: grid;
  gap: 8px;
}

.fcc-bc-progress-head,
.fcc-bc-progress-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.fcc-bc-progress-label {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.fcc-bc-progress-values,
.fcc-bc-progress-remaining {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.62);
  font-weight: 700;
}

.fcc-bc-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fcc-bc-progress-fill {
  height: 100%;
  border-radius: 999px;
}

.fcc-bc-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fcc-bc-chip--ok,
.fcc-bc-progress-fill.fcc-bc-chip--ok {
  background: linear-gradient(180deg, #34d399, #059669);
  color: #ffffff;
}

.fcc-bc-chip--watch,
.fcc-bc-progress-fill.fcc-bc-chip--watch {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #ffffff;
}

.fcc-bc-chip--over,
.fcc-bc-progress-fill.fcc-bc-chip--over {
  background: linear-gradient(180deg, #fb7185, #ef4444);
  color: #ffffff;
}

.fcc-bc-empty,
.fcc-bc-error {
  padding: 28px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(191,205,234,0.70);
  text-align: center;
}

.fcc-bc-empty-icon {
  font-size: 40px;
  line-height: 1;
}

.fcc-bc-empty-title,
.fcc-bc-error-title {
  margin: 10px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.fcc-bc-empty-sub {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(15, 23, 42, 0.58);
}

.fcc-bc-retry-btn {
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  min-height: 42px;
  padding: 0 16px;
  background: linear-gradient(180deg, #3777e3, #2d63c8);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.fcc-bc-skeleton {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(15,23,42,0.05) 25%, rgba(15,23,42,0.10) 37%, rgba(15,23,42,0.05) 63%);
  background-size: 400% 100%;
  animation: fccBudgetShimmer 1.2s ease infinite;
  border-radius: 22px;
}

.fcc-bc-skeleton--hero { height: 170px; }
.fcc-bc-skeleton-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fcc-bc-skeleton--card { height: 280px; }
.fcc-bc-skeleton--wide { height: 320px; }

@media (max-width: 800px) {
  .fcc-bc-skeleton-row { grid-template-columns: 1fr; }
}

@keyframes fccBudgetShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
