/* guide.css — styles for individual guide pages */
/* Inherits all variables from theme.css */

/* ── Hero ── */
.guide-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--cream-dark);
  padding: 3.5rem 2rem 3rem;
}
.guide-hero-inner {
  max-width: 780px;
  margin: 0 auto;
}
.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s;
}
.guide-back:hover { color: var(--teal); text-decoration: none; }

.guide-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.9rem 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.guide-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--fg);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.guide-hero-lede {
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 1.75rem;
  color: var(--fg-muted);
}

.guide-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.guide-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ── Progress bar ── */
.guide-progress-bar {
  position: sticky;
  top: 57px; /* just below site header */
  z-index: 90;
  background: var(--bg);
  height: 3px;
  border-bottom: 1px solid var(--cream-dark);
}
.guide-progress-bar-inner {
  max-width: 100%;
  height: 100%;
  background: var(--cream-dark);
}
.guide-progress-fill {
  height: 100%;
  background: var(--teal);
  width: 0%;
  transition: width 0.1s linear;
}

/* ── Table of contents ── */
.guide-toc-wrapper {
  background: var(--bg);
  border-bottom: 1px solid var(--cream-dark);
  padding: 1.5rem 2rem;
}
.guide-toc-inner {
  max-width: 780px;
  margin: 0 auto;
}
.guide-toc { }
.toc-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
  display: block;
}
.toc-list {
  display: flex;
  gap: 0.5rem 1.5rem;
  flex-wrap: wrap;
  list-style: none;
  counter-reset: toc-counter;
}
.toc-list li {
  counter-increment: toc-counter;
}
.toc-list li::before {
  content: counter(toc-counter) ". ";
  font-size: 0.82rem;
  color: var(--amber);
  font-weight: 600;
}
.toc-list a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.toc-list a:hover { color: var(--teal); }

/* ── Guide body ── */
.guide-body {
  padding: 3rem 2rem 5rem;
  background: var(--bg);
}
.guide-body-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

/* ── Section ── */
.guide-section {
  scroll-margin-top: 80px;
}
.section-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--cream-dark);
}
.section-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
  width: 48px;
  text-align: center;
}
.section-header-text h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  color: var(--fg);
}
.section-summary {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin: 0;
}

/* ── Steps ── */
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--cream-dark);
  position: relative;
}
.step:last-child { border-bottom: none; }
.step-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.step-content {
  flex: 1;
}
.step-content h3 {
  font-size: 1.05rem;
  color: var(--fg);
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.step-content p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}
.step-content p:last-child { margin-bottom: 0; }

/* Step note (amber tip inside a step) */
.step-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  background: var(--amber-light);
  border-left: 3px solid var(--amber);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--fg);
  line-height: 1.5;
}
.step-note svg { flex-shrink: 0; margin-top: 1px; color: var(--amber); }

/* ── Callouts ── */
.guide-callout {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}
.callout-icon { flex-shrink: 0; margin-top: 1px; }

.guide-callout.info {
  background: var(--teal-light);
  border: 1px solid rgba(27, 107, 107, 0.2);
  color: var(--fg);
}
.guide-callout.info .callout-icon { color: var(--teal); }

.guide-callout.warning {
  background: #FDF3E8;
  border: 1px solid rgba(232, 145, 58, 0.3);
  color: var(--fg);
}
.guide-callout.warning .callout-icon { color: var(--amber); }

.guide-callout.tip {
  background: #EFF6FF;
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: var(--fg);
}
.guide-callout.tip .callout-icon { color: #3B82F6; }

.guide-callout.help {
  background: var(--bg-alt);
  border: 1px solid var(--cream-dark);
  color: var(--fg);
}
.guide-callout.help .callout-icon { color: var(--fg-muted); }

/* ── Guide list ── */
.guide-list {
  margin: 0.75rem 0;
  padding-left: 1.25rem;
}
.guide-list li {
  font-size: 0.95rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ── Apple ID explainer ── */
.apple-id-explainer {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: var(--teal-light);
  border: 1.5px solid rgba(27, 107, 107, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.apple-id-explainer .explainer-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apple-id-explainer h3 {
  font-size: 1rem;
  color: var(--teal);
  margin-bottom: 0.4rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
}
.apple-id-explainer p { font-size: 0.92rem; margin: 0; }

/* ── Phone diagram (Section 2 visual) ── */
.phone-button-diagram {
  margin: 1rem 0;
}
.phone-diagram {
  display: flex;
  justify-content: flex-start;
}
.phone-body {
  position: relative;
  width: 100px;
  height: 180px;
  background: var(--fg);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-screen-area {
  width: 82px;
  height: 162px;
  background: #000;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.apple-logo-mini {
  opacity: 0.8;
}
.phone-side-button {
  position: absolute;
  right: -68px;
  top: 52px;
  display: flex;
  align-items: center;
}
.button-arrow {
  font-size: 0.72rem;
  color: var(--teal);
  font-weight: 600;
  white-space: nowrap;
}
.phone-body::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 56px;
  width: 4px;
  height: 24px;
  background: #555;
  border-radius: 0 3px 3px 0;
}

/* ── Completion card ── */
.guide-complete {
  background: var(--teal);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
  color: white;
}
.complete-check {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.guide-complete h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.75rem;
}
.guide-complete p {
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Next steps ── */
.guide-next-steps {
  margin-top: 0.5rem;
}
.guide-next-steps > h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
}
.next-step-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.next-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 12px;
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}
.next-step:hover { box-shadow: var(--shadow-md); }
.next-step-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.next-step-icon.teal { background: var(--teal-light); color: var(--teal); }
.next-step-icon.amber { background: var(--amber-light); color: var(--amber); }
.next-step strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.3rem;
}
.next-step p {
  font-size: 0.88rem;
  margin: 0;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .guide-hero { padding: 2.5rem 1.25rem 2rem; }
  .guide-body { padding: 2rem 1.25rem 4rem; }
  .guide-toc-wrapper { padding: 1.25rem; }
  .toc-list { gap: 0.4rem 1rem; }
  .section-header { gap: 1rem; }
  .section-number { font-size: 1.75rem; width: 38px; }
  .step { gap: 1rem; }
  .guide-meta { gap: 1rem; }
  .apple-id-explainer { flex-direction: column; }
  .phone-button-diagram { display: none; }
}
