/* ============================================================
   Smart Stuff Studios — Review Hub Styles
   Mobile-first responsive · No JS required
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal:       #0D9488;
  --teal-dark:  #0F766E;
  --teal-light: #CCFBF1;
  --coral:      #F97316;
  --coral-dark: #EA580C;
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --border:     #E2E8F0;
  --text:       #1E293B;
  --text-muted: #64748B;
  --shadow:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.12);
  --radius:     12px;
  --radius-sm:  6px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ───────────────────────────────────────────── */
h1 { font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.125rem, 3vw, 1.5rem); font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p  { color: var(--text-muted); }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  padding: 2rem 1.5rem 2.5rem;
  text-align: center;
}

.site-header .logo {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  line-height: 56px;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.site-header h1 {
  color: #fff;
  margin-bottom: 0.5rem;
}

.site-header .tagline {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto 1.25rem;
}

.decision-tree {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}

.decision-tree summary {
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
}

.decision-tree summary::-webkit-details-marker { display: none; }

.decision-tree .tree-content {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.decision-tree .tree-content ol {
  padding-left: 1.25rem;
}

.decision-tree .tree-content li { margin-bottom: 0.25rem; }

/* ── Main ──────────────────────────────────────────────────── */
main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

/* ── Card Grid ─────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 860px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Card ──────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.card-icon {
  font-size: 1.75rem;
  line-height: 1;
  flex-shrink: 0;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.card-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

/* ── Status Badges ─────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-ready   { background: #DCFCE7; color: #166534; }
.badge-progress{ background: #FEF9C3; color: #854D0E; }
.badge-planned { background: #E0F2FE; color: #075985; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover { background: var(--teal-dark); }
.btn-primary:active { transform: scale(0.97); }

.btn-coral {
  background: var(--coral);
  color: #fff;
}

.btn-coral:hover { background: var(--coral-dark); }

/* ── Decision Tree Detail Box ─────────────────────────────── */
.tree-detail {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: #92400E;
  margin-bottom: 2rem;
}

.tree-detail strong { color: #B45309; }

/* ── Stats Bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: center;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
}

.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.7);
  padding: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.8;
}

.site-footer strong { color: #fff; }

.site-footer .footer-cta {
  margin-top: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: inline-block;
  font-size: 0.8rem;
}

/* ── Utility ──────────────────────────────────────────────── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
