/* ==========================================================================
   Paycheck Calculator — Page Styles
   Imports the shared component library, then adds only what's specific
   to the paycheck calculator layout. Identical pattern to Mortgage/css.
   ========================================================================== */
@import url("../../css/style.css");

.calc-intro{ padding: 32px 0 24px; }
.calc-intro h1{ font-size: 26px; font-weight: 700; letter-spacing: -0.4px; margin-bottom: 6px; }
.calc-intro p{ font-size: 14px; color: var(--text-secondary); max-width: 620px; }
.state-pill{
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  background: var(--primary-soft); padding: 3px 10px; border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.calc-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: start;
  padding-bottom: var(--space-6);
}

/* Pay type segmented control */
.segmented{
  display: flex; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 3px; margin-bottom: var(--space-4);
}
.segmented label{ flex: 1; text-align: center; position: relative; }
.segmented input{ position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span{
  display: block; padding: 8px; border-radius: 6px; font-size: 13px; font-weight: 600;
  color: var(--text-secondary); transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.segmented input:checked + span{ background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }

/* Results */
.results-card{ position: sticky; top: 76px; }
.hero-result{ padding-bottom: var(--space-4); border-bottom: 1px solid var(--border); margin-bottom: var(--space-4); }
.hero-result .label{ font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-tertiary); margin-bottom: var(--space-1); }
.hero-result .amount{ font-size: 40px; font-weight: 700; letter-spacing: -0.6px; font-family: var(--font-mono); color: var(--success); }
.hero-result .caption{ font-size: 13px; color: var(--text-tertiary); margin-top: 4px; }

/* Stacked breakdown bar (pure CSS, no chart library) */
.stat-bar{
  display: flex; width: 100%; height: 14px; border-radius: var(--radius-full);
  overflow: hidden; background: var(--bg-secondary); margin: var(--space-3) 0 var(--space-4);
}
.stat-bar > div{ height: 100%; transition: flex-basis var(--duration) var(--ease); }
.bar-federal{ background: var(--primary); }
.bar-state{ background: #f59e0b; }
.bar-fica{ background: var(--text-tertiary); }
.bar-net{ background: var(--success); }

.result-list .result-row{ font-size: 13.5px; }

/* Validation warnings (input issues — distinct from informational state-note) */
.validation-warning{
  display: none;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid #f59e0b;
  color: var(--text-primary);
  font-size: 12.5px;
  line-height: 1.6;
  margin-top: var(--space-3);
}

/* State fact / disclaimer box */
.state-note{
  display: flex; gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid var(--border);
  font-size: 13px; color: var(--text-secondary);
  margin: var(--space-4) 0;
}
.state-note strong{ color: var(--text-primary); }

.disclaimer{
  font-size: 12px; color: var(--text-tertiary);
  border-top: 1px solid var(--border); padding-top: var(--space-3); margin-top: var(--space-4);
}

/* Local rate controls (Pennsylvania) */
.local-rate-row{ display: flex; gap: var(--space-2); align-items: center; }
.local-rate-row select{ flex: 2; }
.local-rate-row .input-group{ flex: 1; }

/* Sections below the calculator */
.section-block{ padding: var(--space-5) 0; border-top: 1px solid var(--border); }
.section-block:first-child{ border-top: none; }

.fact-grid{ display: grid; grid-template-columns: repeat(auto-fit,minmax(160px,1fr)); gap: var(--space-4); }
.fact-grid .fact-label{ font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-tertiary); margin-bottom: 4px; }
.fact-grid .fact-value{ font-family: var(--font-mono); font-weight: 700; font-size: 15px; }

.faq-answer{ font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; }

/* Hub page: state picker grid */
.state-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.state-card{
  display: block; padding: var(--space-5);
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.state-card:hover{ border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.state-card .abbr{
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: var(--space-3);
}
.state-card h3{ font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.state-card p{ font-size: 13px; color: var(--text-tertiary); }
