/* ==========================================================================
   Playful Educational Landing Page (Claymorphism Design System)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Claymorphism Utility Classes
   -------------------------------------------------------------------------- */
.clay-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--clay-card);
  transition: var(--transition);
  position: relative;
}

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

.clay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.clay-btn:hover {
  transform: translateY(-3px) scale(1.02);
}

.clay-btn:active {
  transform: translateY(1px) scale(0.98);
}

.clay-btn-purple {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #ffffff;
  box-shadow: var(--clay-btn-primary);
}

.clay-btn-coral {
  background: linear-gradient(135deg, #ff6b6b, #ff8787);
  color: #ffffff;
  box-shadow: var(--clay-btn-coral);
}

.clay-btn-white {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: 6px 8px 18px rgba(0, 0, 0, 0.08), inset -2px -2px 6px rgba(0, 0, 0, 0.05), inset 2px 2px 6px #ffffff;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.tag-purple { background: var(--purple-light); color: var(--purple); }
.tag-coral { background: var(--coral-light); color: var(--coral); }
.tag-mint { background: var(--mint-light); color: var(--mint); }
.tag-sun { background: var(--sun-light); color: #d97706; }

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-header-center h2 {
  font-family: var(--font-fun);
  font-size: 2.35rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 0.6rem;
}

.section-header-center p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   1. Hero Section
   -------------------------------------------------------------------------- */
.playful-hero {
  padding: 4rem 1rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-main-title {
  font-family: var(--font-fun);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text-main);
  max-width: 820px;
  margin: 0 auto 1.25rem;
}

.hero-main-title .gradient-text {
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 50%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead-text {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

/* Floating clay highlight pills */
.hero-badges-strip {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}

.clay-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 8px 10px 20px -3px rgba(99, 102, 241, 0.1),
              inset -3px -3px 8px rgba(99, 102, 241, 0.05),
              inset 3px 3px 8px #ffffff;
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  animation: floatBounce 4s ease-in-out infinite alternate;
}

.clay-pill:nth-child(2) { animation-delay: 0.6s; }
.clay-pill:nth-child(3) { animation-delay: 1.2s; }
.clay-pill:nth-child(4) { animation-delay: 1.8s; }

@keyframes floatBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

/* --------------------------------------------------------------------------
   2. Course Catalog Preview
   -------------------------------------------------------------------------- */
.catalog-section {
  padding: 4.5rem 0;
}

.courses-clay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.course-clay-card {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}

.course-icon-bubble {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
  box-shadow: 4px 6px 12px rgba(0, 0, 0, 0.08), inset -2px -2px 6px rgba(0, 0, 0, 0.1), inset 2px 2px 6px rgba(255, 255, 255, 0.8);
}

.course-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.course-title {
  font-family: var(--font-fun);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.course-desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.course-progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 1rem;
}

.course-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

.course-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --------------------------------------------------------------------------
   3. Progress Tracking Demo (Interactive Gamified Widget)
   -------------------------------------------------------------------------- */
.progress-demo-section {
  padding: 4.5rem 0;
}

.progress-dashboard-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 16px 24px 45px -8px rgba(99, 102, 241, 0.16),
              inset -8px -8px 18px rgba(99, 102, 241, 0.05),
              inset 8px 8px 18px #ffffff;
}

.demo-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px dashed var(--border);
  margin-bottom: 1.75rem;
}

.demo-user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.demo-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd43b, #ff6b6b);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 4px 6px 12px rgba(255, 107, 107, 0.25);
}

.demo-user-name {
  font-family: var(--font-fun);
  font-size: 1.25rem;
  font-weight: 700;
}

.demo-streak-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background: var(--coral-light);
  color: var(--coral);
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 0.95rem;
}

.demo-xp-box {
  margin-bottom: 2rem;
}

.demo-xp-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-fun);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.demo-xp-track {
  width: 100%;
  height: 16px;
  background-color: var(--bg-alt);
  border-radius: var(--radius-full);
  padding: 3px;
  box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.08);
}

.demo-xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #06b6d4);
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.4);
}

.demo-quests-title {
  font-family: var(--font-fun);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.demo-quest-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.demo-quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-main);
  border: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
}

.demo-quest-item:hover {
  background-color: #ffffff;
  border-color: var(--primary);
  transform: translateX(4px);
}

.demo-quest-item.completed {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  text-decoration: line-through;
  color: var(--text-muted);
}

.demo-quest-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.quest-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: #ffffff;
  transition: var(--transition);
}

.demo-quest-item.completed .quest-checkbox {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}

.quest-xp-badge {
  font-family: var(--font-fun);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.badges-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.achievement-badge-pill {
  flex: 1;
  min-width: 140px;
  padding: 0.85rem 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.achievement-badge-pill:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 4px 8px 16px rgba(0, 0, 0, 0.06);
}

.badge-emoji {
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
}

.badge-name {
  font-family: var(--font-fun);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* --------------------------------------------------------------------------
   4. Student Testimonials
   -------------------------------------------------------------------------- */
.testimonials-section {
  padding: 4.5rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
}

.testimonial-clay-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
  font-style: italic;
}

.testimonial-student {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.student-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.1);
}

.student-name {
  font-family: var(--font-fun);
  font-size: 1.05rem;
  font-weight: 700;
}

.student-role {
  font-size: 0.825rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Enrollment Call To Action Banner
   -------------------------------------------------------------------------- */
.enrollment-cta-section {
  padding: 3rem 0 2rem;
}

.enrollment-clay-banner {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 16px 24px 50px -8px rgba(79, 70, 229, 0.4),
              inset -6px -6px 16px rgba(0, 0, 0, 0.2),
              inset 6px 6px 16px rgba(255, 255, 255, 0.4);
}

.enrollment-title {
  font-family: var(--font-fun);
  font-size: 2.85rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.enrollment-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.92;
  line-height: 1.6;
}

.enrollment-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Team Members Section (Admins)
   -------------------------------------------------------------------------- */
.team-section {
  padding: 4.5rem 0 3rem;
}

.team-clay-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 0 auto;
  max-width: 1100px;
}

.team-member-card {
  width: 320px;
  max-width: 100%;
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--clay-card);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.team-member-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--clay-card-hover);
}

.team-card-top-decoration {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
}

.team-avatar-wrapper {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.25rem;
}

.team-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.team-avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-family: var(--font-fun);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  letter-spacing: 0.05em;
}

.team-admin-badge {
  position: absolute;
  bottom: -4px;
  right: -6px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.team-member-name {
  font-family: var(--font-fun);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.team-member-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.team-member-email {
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: center;
  word-break: break-all;
}

.team-member-email a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.team-member-email a:hover {
  color: var(--purple);
  text-decoration: underline;
}

.team-member-contribution-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.15rem;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1.5px solid #e0e7ff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
  transition: all 0.25s ease;
}

.team-member-contribution-pill:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.16);
}

.contrib-pill-icon {
  font-size: 1rem;
  line-height: 1;
}

.contrib-pill-label {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.825rem;
}

.contrib-pill-count {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.825rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.contrib-pill-unit {
  font-weight: 700;
  color: var(--primary-hover);
  font-size: 0.825rem;
}

.team-member-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.clay-mini-tag {
  background: var(--bg-alt);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-empty-state, .team-error-state {
  grid-column: 1 / -1;
  padding: 3rem 2rem;
  text-align: center;
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 600px;
  margin: 0 auto;
}

.team-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.team-empty-state h3 {
  font-family: var(--font-fun);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.team-empty-state p, .team-error-state p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.team-loading-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-main-title { font-size: 2.5rem; }
  .section-header-center h2 { font-size: 1.85rem; }
  .enrollment-title { font-size: 2rem; }
  .progress-dashboard-card { padding: 1.5rem; }
  .hero-badges-strip { gap: 0.75rem; }
  .team-clay-grid { grid-template-columns: 1fr; }
}

