/* ============================================================
   Guide Detail Page — Playful Kids Design
   STEM Computer · Ages 7–14
   ============================================================ */

/* --- Color palette ---
   purple  #6c5ce7
   green   #00b894
   orange  #fd9644
   pink    #fd79a8
   yellow  #fdcb6e
   blue    #74b9ff
   ---------------------------------------------------------- */

/* ---- Page & Background ----------------------------------- */
.gd-page {
  min-height: 100vh;
  background: linear-gradient(150deg, #f0eeff 0%, #e8f4ff 60%, #eafff6 100%);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Decorative blobs */
.gd-page::before,
.gd-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.gd-page::before {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(108,92,231,.08) 0%, transparent 70%);
  top: -60px;
  right: -80px;
}
.gd-page::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0,184,148,.07) 0%, transparent 70%);
  bottom: 60px;
  left: -60px;
}

/* Floating sparkles */
.gd-sparkle {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: gd-float 4s ease-in-out infinite;
  font-style: normal;
  user-select: none;
}
.gd-sparkle--1 { top:  80px; left:  5%;  font-size: 1.4rem; animation-delay: 0s; }
.gd-sparkle--2 { top: 160px; right: 6%;  font-size: 1.1rem; animation-delay: 1s; }
.gd-sparkle--3 { top: 380px; left:  3%;  font-size: 1.0rem; animation-delay: 2s; }
.gd-sparkle--4 { top: 560px; right: 4%;  font-size: 1.2rem; animation-delay: 0.5s; }
.gd-sparkle--5 { bottom: 220px; left: 8%; font-size: 1.0rem; animation-delay: 1.5s; }
.gd-sparkle--6 { bottom: 100px; right: 7%;font-size: 1.3rem; animation-delay: 2.5s; }

@keyframes gd-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(10deg); }
}

/* ---- Container ------------------------------------------ */
.gd-container {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ---- Breadcrumb ----------------------------------------- */
.gd-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.gd-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gd-breadcrumb__item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.1); }

.gd-breadcrumb__item--home    { background: #ede9fe; color: #6c5ce7; }
.gd-breadcrumb__item--list    { background: #d1fae5; color: #00b894; }
.gd-breadcrumb__item--current { background: #fff3cd; color: #d97706; cursor: default; }
.gd-breadcrumb__item--current:hover { transform: none; box-shadow: none; }

.gd-breadcrumb__sep {
  font-size: 1rem;
  color: #cbd5e1;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---- Hero ----------------------------------------------- */
.gd-hero {
  background: #fff;
  border-radius: 24px;
  padding: 32px 32px 28px;
  margin-bottom: 28px;
  box-shadow: 0 4px 24px rgba(108,92,231,.06), 0 1px 4px rgba(0,0,0,.04);
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: relative;
  overflow: hidden;
}

.gd-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, #6c5ce7, #fd79a8, #fdcb6e, #00b894, #74b9ff);
  border-radius: 24px 24px 0 0;
}

.gd-hero__body { flex: 1; min-width: 0; }

.gd-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.gd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.gd-hero__badge--easy   { background: #d1fae5; color: #059669; }
.gd-hero__badge--time   { background: #dbeafe; color: #2563eb; }
.gd-hero__badge--xp     { background: #fef3c7; color: #d97706; }

.gd-hero__title {
  font-size: 1.9rem;
  font-weight: 900;
  color: #1e1b4b;
  margin: 0 0 10px;
  line-height: 1.2;
}

.gd-hero__subtitle {
  font-size: 1.0rem;
  color: #64748b;
  font-weight: 600;
  margin: 0;
  line-height: 1.5;
}

.gd-hero__mascot {
  font-size: 5rem;
  flex-shrink: 0;
  animation: gd-mascot-bob 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(108,92,231,.15));
  line-height: 1;
}

@keyframes gd-mascot-bob {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-10px) rotate(3deg); }
}

/* ---- Progress tracker ------------------------------------ */
.gd-progress {
  background: #fff;
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}

.gd-progress__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.gd-progress__label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4b5563;
}

.gd-progress__count {
  font-size: 0.85rem;
  font-weight: 800;
  color: #6c5ce7;
  background: #ede9fe;
  padding: 3px 12px;
  border-radius: 100px;
}

.gd-progress__dots {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.gd-progress__dot {
  width: 32px;
  height: 10px;
  border-radius: 100px;
  background: #e2e8f0;
  transition: background 0.4s ease, width 0.4s ease;
}
.gd-progress__dot--done    { background: #6c5ce7; }
.gd-progress__dot--active  { background: linear-gradient(90deg,#6c5ce7,#a78bfa); width: 48px; }

/* ---- Article body (rich content) ----------------------- */
.gd-article-body {
  background: #fff;
  border-radius: 24px;
  padding: 36px 36px 32px;
  box-shadow: 0 4px 24px rgba(108,92,231,.05), 0 1px 4px rgba(0,0,0,.03);
  margin-bottom: 28px;
  line-height: 1.8;
  color: #1e293b;
  font-size: 1.0rem;
}

/* Headings inside article */
.gd-article-body h1,
.gd-article-body h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: #6c5ce7;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px dashed #ede9fe;
}
.gd-article-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #4b5563;
  margin: 20px 0 8px;
}

/* Step cards inside article content */
.gd-article-body ol,
.gd-article-body ul {
  padding: 0;
  margin: 16px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gd-article-body li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #f8f8ff;
  border-radius: 16px;
  padding: 18px 20px;
  border-left: 5px solid #6c5ce7;
  font-weight: 600;
  line-height: 1.6;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gd-article-body li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108,92,231,.1);
}

/* Alternate left-border colors for variety */
.gd-article-body li:nth-child(2)  { border-color: #00b894; background: #f0fdf8; }
.gd-article-body li:nth-child(3)  { border-color: #fd9644; background: #fffaf5; }
.gd-article-body li:nth-child(4)  { border-color: #fd79a8; background: #fff5f9; }
.gd-article-body li:nth-child(5)  { border-color: #fdcb6e; background: #fffdf0; }
.gd-article-body li:nth-child(6)  { border-color: #74b9ff; background: #f0f8ff; }
.gd-article-body li:nth-child(7n) { border-color: #6c5ce7; background: #f8f8ff; }

/* Paragraphs & inline */
.gd-article-body p     { margin: 0 0 14px; }
.gd-article-body p:last-child { margin-bottom: 0; }
.gd-article-body strong { color: #6c5ce7; font-weight: 800; }
.gd-article-body em     { color: #fd79a8; font-style: normal; font-weight: 700; }
.gd-article-body code  {
  background: #ede9fe;
  color: #6c5ce7;
  font-family: 'Courier New', monospace;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 0.9em;
}

/* Images */
.gd-article-body img {
  max-width: 100%;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  margin: 14px 0;
}

/* Blockquote / tip box */
.gd-article-body blockquote {
  background: #ede9fe;
  border-left: 5px solid #6c5ce7;
  border-radius: 0 16px 16px 0;
  margin: 20px 0;
  padding: 16px 20px;
  font-weight: 700;
  color: #4c1d95;
}

/* ---- Success Banner ------------------------------------- */
.gd-success {
  background: linear-gradient(135deg, #00b894, #00cec9);
  border-radius: 24px;
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(0,184,148,.2);
  position: relative;
  overflow: hidden;
}

.gd-success::before {
  content: '🎊 🎉 🎊 🎉 🎊 🎉 🎊';
  position: absolute;
  top: -4px; left: 0; right: 0;
  font-size: 1.2rem;
  opacity: 0.25;
  letter-spacing: 14px;
  white-space: nowrap;
}

.gd-success__icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 8px;
  animation: gd-bounce 1.8s ease-in-out infinite;
}

@keyframes gd-bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.gd-success__title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 6px;
}

.gd-success__sub {
  font-size: 0.95rem;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  margin: 0;
}

/* ---- CTA Buttons ---------------------------------------- */
.gd-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.gd-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 100px;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
}

.gd-cta__btn--outline {
  border: 2.5px solid #6c5ce7;
  color: #6c5ce7;
  background: #fff;
  box-shadow: 0 2px 8px rgba(108,92,231,.08);
}
.gd-cta__btn--outline:hover {
  background: #ede9fe;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(108,92,231,.15);
}

.gd-cta__btn--solid {
  background: linear-gradient(135deg, #6c5ce7, #a78bfa);
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(108,92,231,.30);
  animation: gd-cta-pulse 3s ease-in-out infinite;
}
.gd-cta__btn--solid:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(108,92,231,.4);
  background: linear-gradient(135deg, #5b4bd4, #8b5cf6);
}

@keyframes gd-cta-pulse {
  0%,100% { box-shadow: 0 6px 20px rgba(108,92,231,.30); }
  50%      { box-shadow: 0 8px 28px rgba(108,92,231,.48); }
}

/* ---- Responsive ----------------------------------------- */
@media (max-width: 640px) {
  .gd-page { padding: 88px 16px 60px; }
  .gd-hero { flex-direction: column; padding: 28px 20px 24px; gap: 14px; }
  .gd-hero__mascot { font-size: 3.5rem; }
  .gd-hero__title { font-size: 1.5rem; }
  .gd-article-body { padding: 24px 20px; }
  .gd-success { padding: 24px 20px; }
  .gd-cta { flex-direction: column; }
  .gd-cta__btn { width: 100%; justify-content: center; }
  .gd-sparkle { display: none; }
  .gd-progress { padding: 16px 18px; }
}

