/* =============================================
   LuxTool — /calculators/age-calculator/age-calculator.css
   Tool-specific styles unique to this tool. Site chrome and
   every shared building block used on this page come from
   /style.css, which this page also loads.
   ============================================= */

/* ── AGE CALCULATOR: SIMPLE / DETAILED VIEW ── */
.ac-view-toggle-wrap {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.ac-view-toggle-label {
  display: block;
  margin-bottom: 0.45rem;
}

.ac-view-toggle {
  margin-bottom: 0;
}

#ac-result {
  transition: opacity 0.25s ease;
}

#ac-result.ac-view-switching {
  opacity: 0.88;
}

#ac-result .ac-results-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#ac-result .ac-panel {
  margin-bottom: 0 !important;
}

#ac-result[data-view="simple"] .ac-panel--detailed,
#ac-result[data-view="simple"] .ac-panel--detailed-inline {
  display: none !important;
}

#ac-result[data-view="detailed"] .ac-panel--simple-only {
  display: none !important;
}

#ac-result[data-view="simple"] .ac-panel--detailed,
#ac-result[data-view="detailed"] .ac-panel--simple-only {
  animation: acPanelFadeIn 0.28s ease;
}

@keyframes acPanelFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ac-live-age-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.8rem;
  text-align: center;
}

.calc-card-small {
  background: rgba(30, 41, 59, 0.45);
  border: 1px solid var(--gold-dim);
  border-radius: 0.65rem;
  padding: 0.75rem 0.5rem;
}

.calc-card-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.calc-card-label {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.ac-countdown-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  font-weight: 700;
  color: var(--gold);
  text-align: center;
}

.ac-countdown-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.ac-dob-display {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.ac-simple-stat {
  text-align: center;
  padding: 0.5rem 0;
}

.ac-simple-stat-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1.1;
}

.ac-simple-stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.ac-life-progress-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.ac-life-progress-track {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
}

.ac-life-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 5px;
  transition: width 0.4s ease;
}

.ac-life-progress-pct {
  font-weight: 700;
  color: var(--gold);
  min-width: 3.5rem;
  text-align: right;
}

.ac-lifespan-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.ac-day-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.ac-milestones-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ac-zodiac-detail {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.ac-zodiac-detail:last-child {
  margin-bottom: 0;
}
