/* ============================================================
   Guide Page — Playful Kids-Friendly Design
   STEM Computer · Ages 7-14
   ============================================================ */

/* --- Page wrapper & gradient background --- */
.gp-page {
  min-height: 100vh;
  background: linear-gradient(160deg, #ede9fe 0%, #e0e7ff 35%, #dbeafe 65%, #f0fdfa 100%);
  padding: 100px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Floating decorative sparkles */
.gp-page::before,
.gp-page::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.gp-page::before {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.12) 0%, transparent 70%);
  top: 60px;
  right: -60px;
}
.gp-page::after {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
  bottom: 80px;
  left: -40px;
}

.gp-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Floating deco elements --- */
.gp-deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  font-size: 1.6rem;
  opacity: 0.55;
  animation: gp-float 4s ease-in-out infinite;
}
.gp-deco--1 { top: 30px;  left: -50px;  animation-delay: 0s; }
.gp-deco--2 { top: 80px;  right: -40px; animation-delay: 1.2s; font-size: 1.3rem; }
.gp-deco--3 { top: 260px; left: -30px;  animation-delay: 0.6s; font-size: 1.1rem; }
.gp-deco--4 { bottom: 200px; right: -35px; animation-delay: 1.8s; }
.gp-deco--5 { bottom: 60px;  left: -20px;  animation-delay: 2.4s; font-size: 1.2rem; }

@keyframes gp-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(8deg); }
}

/* --- Hero / Title area --- */
.gp-hero {
  text-align: center;
  margin-bottom: 36px;
  position: relative;
}

.gp-hero__mascot {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 8px;
  animation: gp-bounce 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(124, 58, 237, 0.18));
}

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

.gp-hero__title {
  font-size: 2.25rem;
  font-weight: 900;
  color: #4c1d95;
  margin: 0 0 8px;
  line-height: 1.2;
  text-shadow: 0 2px 0 rgba(124, 58, 237, 0.08);
}

.gp-hero__subtitle {
  font-size: 1.05rem;
  color: #6b7280;
  font-weight: 600;
  margin: 0;
}

/* --- XP Progress Bar --- */
.gp-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto 44px;
  padding: 0 8px;
}

.gp-progress__star {
  font-size: 1.4rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(251, 191, 36, 0.3));
}

.gp-progress__track {
  flex: 1;
  height: 18px;
  background: #e2e8f0;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.gp-progress__fill {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, #8b5cf6, #a78bfa, #c084fc);
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.gp-progress__fill::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 8px;
  right: 8px;
  height: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.35);
}

.gp-progress__label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* --- Step cards --- */
.gp-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 44px;
}

.gp-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 20px;
  background: #ffffff;
  border: 2.5px solid transparent;
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.04),
    0 1px 3px rgba(0, 0, 0, 0.03);
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  border-radius: 20px 0 0 20px;
  background: var(--gp-accent);
}

.gp-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08),
    0 4px 8px rgba(0, 0, 0, 0.04);
  border-color: var(--gp-accent);
}

.gp-card:active {
  transform: translateY(-1px) scale(0.995);
}

/* Card accent colors */
.gp-card--1 { --gp-accent: #8b5cf6; }
.gp-card--2 { --gp-accent: #3b82f6; }
.gp-card--3 { --gp-accent: #f59e0b; }
.gp-card--4 { --gp-accent: #10b981; }
.gp-card--5 { --gp-accent: #ec4899; }
.gp-card--6 { --gp-accent: #f97316; }
.gp-card--7 { --gp-accent: #06b6d4; }

/* Icon bubble */
.gp-card__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--gp-accent-bg, #f3f0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.gp-card:hover .gp-card__icon {
  transform: scale(1.12) rotate(-4deg);
}

.gp-card--1 .gp-card__icon { background: #ede9fe; }
.gp-card--2 .gp-card__icon { background: #dbeafe; }
.gp-card--3 .gp-card__icon { background: #fef3c7; }
.gp-card--4 .gp-card__icon { background: #d1fae5; }
.gp-card--5 .gp-card__icon { background: #fce7f3; }
.gp-card--6 .gp-card__icon { background: #ffedd5; }
.gp-card--7 .gp-card__icon { background: #cffafe; }

/* Text */
.gp-card__body {
  flex: 1;
  min-width: 0;
}

.gp-card__title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 4px;
  line-height: 1.3;
}

.gp-card__desc {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

/* Step badge */
.gp-card__step {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gp-accent);
  background: var(--gp-accent-bg, #f3f0ff);
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.gp-card--1 .gp-card__step { color: #7c3aed; background: #ede9fe; }
.gp-card--2 .gp-card__step { color: #2563eb; background: #dbeafe; }
.gp-card--3 .gp-card__step { color: #d97706; background: #fef3c7; }
.gp-card--4 .gp-card__step { color: #059669; background: #d1fae5; }
.gp-card--5 .gp-card__step { color: #db2777; background: #fce7f3; }
.gp-card--6 .gp-card__step { color: #ea580c; background: #ffedd5; }
.gp-card--7 .gp-card__step { color: #0891b2; background: #cffafe; }

/* Arrow chevron */
.gp-card__arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.3s ease;
}

.gp-card:hover .gp-card__arrow {
  background: var(--gp-accent);
  color: #fff;
  transform: translateX(3px);
}

/* --- CTA Button --- */
.gp-cta {
  text-align: center;
}

.gp-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow:
    0 6px 20px rgba(124, 58, 237, 0.35),
    0 2px 6px rgba(124, 58, 237, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: gp-cta-pulse 3s ease-in-out infinite;
}

.gp-cta__btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow:
    0 10px 28px rgba(124, 58, 237, 0.4),
    0 4px 10px rgba(124, 58, 237, 0.25);
  background: linear-gradient(135deg, #6d28d9, #9333ea);
}

.gp-cta__btn:active {
  transform: translateY(0) scale(0.98);
}

@keyframes gp-cta-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(124, 58, 237, 0.35), 0 2px 6px rgba(124, 58, 237, 0.2); }
  50%      { box-shadow: 0 8px 28px rgba(124, 58, 237, 0.5), 0 3px 8px rgba(124, 58, 237, 0.3); }
}

/* --- Empty state --- */
.gp-empty {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.gp-empty__icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.gp-empty__text {
  font-size: 1.05rem;
  color: #6b7280;
  font-weight: 600;
}

/* --- Fun footer message --- */
.gp-footer-msg {
  text-align: center;
  margin-top: 32px;
  font-size: 0.9rem;
  color: #9ca3af;
  font-weight: 600;
}

.gp-footer-msg span {
  display: inline-block;
  animation: gp-wiggle 1.5s ease-in-out infinite;
}

@keyframes gp-wiggle {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(12deg); }
  75%      { transform: rotate(-12deg); }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .gp-page { padding: 90px 16px 60px; }
  .gp-hero__mascot { font-size: 3.5rem; }
  .gp-hero__title { font-size: 1.75rem; }
  .gp-card { padding: 18px 16px; gap: 14px; }
  .gp-card__icon { width: 52px; height: 52px; font-size: 1.5rem; border-radius: 14px; }
  .gp-card__title { font-size: 1.05rem; }
  .gp-card__arrow { width: 30px; height: 30px; font-size: 0.95rem; }
  .gp-cta__btn { padding: 16px 32px; font-size: 1.05rem; }
  .gp-deco { display: none; }
}

