/* =========================================
   KROK TRAINER — GUIDE
   ========================================= */

.guide-page {
  max-width: 1050px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

.guide-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  margin-bottom: 30px;

  color: #6b7280;
  text-decoration: none;

  font-size: 0.9rem;
  font-weight: 600;

  transition: color 0.2s ease;
}

.guide-back:hover {
  color: #16a34a;
}


/* ---------- HERO ---------- */

.guide-hero {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 70px;
}

.guide-eyebrow,
.guide-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #16a34a;
}

.guide-hero h1 {
  margin: 12px 0 16px;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.guide-intro {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #6b7280;
}

.guide-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.guide-nav a {
  padding: 9px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;

  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;

  transition: 0.2s ease;
}

.guide-nav a:hover {
  border-color: #16a34a;
  color: #16a34a;
  background: #f0fdf4;
}


/* ---------- GUIDE SECTIONS ---------- */

.guide-section {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;

  margin-bottom: 70px;
}

.guide-step-number {
  width: 52px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: #ecfdf5;
  color: #16a34a;

  font-size: 0.9rem;
  font-weight: 800;
}

.guide-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;

  padding: 32px;

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.guide-content h2,
.study-loop h2,
.guide-cta h2 {
  margin: 8px 0 12px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.guide-content > p,
.study-loop > p {
  max-width: 720px;
  color: #6b7280;
  line-height: 1.7;
}


/* ---------- MODE CARDS ---------- */

.mode-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;

  margin-top: 28px;
}

.mode-guide-card {
  padding: 24px;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.mode-icon {
  display: block;
  margin-bottom: 14px;
  font-size: 1.6rem;
}

.mode-guide-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.mode-guide-card p {
  margin: 0 0 16px;
  color: #6b7280;
  line-height: 1.6;
}

.mode-hint {
  font-size: 0.82rem;
  font-weight: 700;
  color: #16a34a;
}


/* ---------- PRACTICE DEMO ---------- */

.tutorial-demo {
  margin-top: 28px;
  padding: 22px;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;

  font-size: 0.85rem;
  font-weight: 700;
}

.demo-topic {
  padding: 5px 9px;
  border-radius: 999px;

  background: #ecfdf5;
  color: #15803d;

  font-size: 0.75rem;
}

.demo-question {
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.demo-answer {
  margin-top: 8px;
  padding: 10px 12px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;

  font-size: 0.9rem;
}

.demo-correct {
  background: #f0fdf4;
  border-color: #22c55e;
  color: #15803d;
  font-weight: 700;
}


/* ---------- EXAM DEMO ---------- */

.exam-demo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;

  margin-top: 28px;
}

.exam-demo-option {
  padding: 13px 14px;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;

  font-size: 0.9rem;
  font-weight: 600;
}

.exam-demo-option.selected {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}


/* ---------- GUIDE POINTS ---------- */

.guide-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  margin-top: 22px;
}

.guide-points div {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px;

  background: #f9fafb;
  border-radius: 10px;

  font-size: 0.85rem;
}

.guide-points strong {
  color: #16a34a;
}


/* ---------- RESULTS DEMO ---------- */

.result-demo {
  margin-top: 28px;
  padding: 28px;

  text-align: center;

  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
}

.result-demo-title,
.result-demo-label {
  display: block;
  color: #6b7280;
  font-size: 0.85rem;
}

.result-demo-score {
  display: block;
  margin: 8px 0 2px;

  font-size: 2.8rem;
  line-height: 1;
}

.result-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;

  margin-top: 22px;
}

.result-demo-grid div {
  padding: 14px 10px;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.result-demo-grid strong,
.result-demo-grid span {
  display: block;
}

.result-demo-grid span {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #6b7280;
}

.result-correct strong,
.result-correct span {
  color: #16a34a;
}

.result-wrong strong,
.result-wrong span {
  color: #dc2626;
}


/* ---------- STUDY LOOP ---------- */

.study-loop {
  margin: 20px 0 70px;
  padding: 40px;

  text-align: center;

  background: #111827;
  color: #ffffff;

  border-radius: 20px;
}

.study-loop > p {
  margin: 0 auto;
  color: #9ca3af;
}

.study-loop-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  margin-top: 30px;
}

.study-loop-flow div {
  flex: 1;

  padding: 16px 10px;

  background: #1f2937;
  border: 1px solid #374151;
  border-radius: 12px;
}

.study-loop-flow strong,
.study-loop-flow span {
  display: block;
}

.study-loop-flow span {
  margin-top: 5px;
  color: #9ca3af;
  font-size: 0.78rem;
}

.flow-arrow {
  color: #22c55e;
  font-weight: 800;
}


/* ---------- FINAL CTA ---------- */

.guide-cta {
  text-align: center;
  padding: 20px 20px 40px;
}

.guide-cta p {
  color: #6b7280;
}

.guide-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;

  margin-top: 22px;
}

.guide-primary-btn,
.guide-secondary-btn {
  display: inline-block;

  padding: 12px 20px;
  border-radius: 10px;

  text-decoration: none;
  font-weight: 700;

  transition: 0.2s ease;
}

.guide-primary-btn {
  background: #16a34a;
  color: #ffffff;
}

.guide-primary-btn:hover {
  background: #15803d;
  transform: translateY(-1px);
}

.guide-secondary-btn {
  background: #ffffff;
  color: #374151;

  border: 1px solid #d1d5db;
}

.guide-secondary-btn:hover {
  border-color: #16a34a;
  color: #16a34a;
}

.guide-home-link {
  display: block;
  width: fit-content;
  margin: 18px auto 0;

  color: #6b7280;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.guide-home-link:hover {
  color: #16a34a;
}

/* =========================
   ACCOUNT BUTTON
========================= */

.account-link {
  position: fixed;
  top: 22px;
  right: 26px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;

  text-decoration: none;
  font-size: 1.1rem;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);

  z-index: 999;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.account-link:hover {
  transform: translateY(-1px);
  border-color: #16a34a;
}


/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  .guide-page {
    padding: 32px 16px 60px;
  }

  .guide-hero {
    margin-bottom: 50px;
  }

  .guide-section {
    display: block;
    margin-bottom: 45px;
  }

  .guide-step-number {
    margin-bottom: 12px;
  }

  .guide-content {
    padding: 22px;
  }

  .mode-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-points {
    grid-template-columns: 1fr;
  }

  .study-loop {
    padding: 28px 18px;
  }

  .study-loop-flow {
    flex-direction: column;
  }

  .study-loop-flow div {
    width: 100%;
    box-sizing: border-box;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .guide-cta-buttons {
    flex-direction: column;
  }

  .guide-primary-btn,
  .guide-secondary-btn {
    width: 100%;
    box-sizing: border-box;
  }

}