/* ═══════════════════════════════════════════════════════
   LEARNINGLAND — Landing Page v3 · "Amber Solace"
   Style: Educational · Warm · Tactile · DESIGN.md aligned
   ═══════════════════════════════════════════════════════ */

/* ═══ HOME SHELL ══════════════════════════════════════════════ */
.ll-home {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ═══ PHRASE STAGE — white card on soft bg ════════════════════ */
.ll-stage {
  width: 90%;
   margin:0px auto;
   margin-top: 50px;
  min-height: 68vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem 2.5rem;
  gap: 1.1rem;
  background: var(--surface);
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

/* Decorative blobs — solid amber circles */
.ll-stage::before,
.ll-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ll-stage::before {
  width: 320px; height: 320px;
  background: rgba(143,78,0,.06);
  top: -80px; right: -60px;
}
.ll-stage::after {
  width: 260px; height: 260px;
  background: rgba(253,153,55,.08);
  bottom: -60px; left: -40px;
}

.ll-stage > * { position: relative; z-index: 1; }

/* Date badge */
.stage-date {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--primary-light);
  padding: .25rem .85rem;
  border-radius: var(--radius-pill);
}

/* Giant emoji */
.stage-emoji {
  font-size: clamp(3.5rem, 11vw, 6rem);
  line-height: 1;
  filter: drop-shadow(0 6px 18px rgba(143,78,0,.10));
}

.stage-emoji.potd-emoji--pop {
  animation: potd-emoji-pop .38s cubic-bezier(.34,1.56,.64,1);
}

@keyframes potd-emoji-pop {
  0%   { transform: scale(.5) rotate(-12deg); opacity: 0; }
  60%  { transform: scale(1.18) rotate(2deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Phrase words */
.stage-words {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.55;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  max-width: 680px;
}

.potd-word {
  display: inline-block;
  border-radius: 10px;
  padding: .12rem .4rem;
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s cubic-bezier(.34,1.56,.64,1);
}

.potd-word:hover {
  background: var(--primary-light);
  color: var(--primary);
  transform: translateY(-2px);
}

.potd-word--active {
  color: var(--primary) !important;
  background: var(--primary-light);
  border: 1.5px solid rgba(143,78,0,.3);
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 4px 14px rgba(143,78,0,.15);
}

.potd-word--done {
  color: rgba(36,26,8,.35);
}

/* Controls row */
.stage-actions {
  display: flex;
  gap: .65rem;
  align-items: center;
  margin-top: .25rem;
}

.stage-btn {
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s;
}
.stage-btn:hover { transform: translateY(-3px); }
.stage-btn:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.stage-play {
  background: var(--primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  padding: .7rem 1.8rem;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(143,78,0,.30);
  min-width: 54px;
}

.potd-btn--playing {
  background: var(--coral) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.stage-shuffle {
  background: var(--primary-container);
  border: none;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  padding: .7rem 1rem;
  font-size: 1rem;
}
.stage-shuffle:hover {
  background: var(--deep-amber);
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* ─── Side menu badge for resume to lesson ─── */
.ll-resume-badge{
    display: flex;
    background: var(--primary);
    color: #ffff;
    border-radius: 15px;
    padding: 10px;
    font-weight: 600;
    font-family: var(--font-body);
    overflow: hidden;
}
.ll-resume-badge:hover{
   transform: translateY(-3px) scale(1);
  box-shadow: 0 5px 15px rgba(143,78,0,.40);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
/* ─── CTA button ─── */

.ll-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: .9rem 2.25rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(143,78,0,.30);
  transition: opacity .7s ease, transform .7s ease, box-shadow .18s;
  opacity: 1;
  transform: translateY(0);
}

.ll-cta--hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.ll-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(143,78,0,.40);
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.ll-cta:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

/* ═══ MODULE STRIP ════════════════════════════════════════════ */
.ll-modules {
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
  padding: 2.5rem 2rem 3.5rem;
}

.ll-section-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 1.25rem;
  letter-spacing: -.01em;
}

.ll-module-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}

.ll-mod-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  min-width: 110px;
  flex: 1;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1),
              box-shadow .2s ease,
              border-color .2s ease;
  box-shadow: var(--shadow-sm);
}

/* Per-card Amber Solace warm backgrounds */
.ll-mod-card:nth-child(1) { background: var(--surface-container-low); }
.ll-mod-card:nth-child(2) { background: var(--surface-container); }
.ll-mod-card:nth-child(3) { background: var(--surface-container-high); }
.ll-mod-card:nth-child(4) { background: var(--surface-container-highest); }
.ll-mod-card:nth-child(5) { background: var(--primary); }

.ll-mod-card:hover {
  transform: translateY(-6px) scale(1.06);
  box-shadow: var(--shadow-lg);
}

.ll-mod-card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.ll-mod-icon {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.ll-mod-card:hover .ll-mod-icon { transform: scale(1.2) rotate(-6deg); }

.ll-mod-name {
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
  letter-spacing: .01em;
}

/* "All Modules" card */
.ll-mod-all .ll-mod-icon,
.ll-mod-all .ll-mod-name {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.ll-mod-all:hover { box-shadow: 0 12px 32px rgba(143,78,0,.25); }

/* ═══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 680px) {
  .ll-stage { border-radius: 0 0 20px 20px; padding: 2.5rem 1.25rem 2rem; }
  .ll-modules { padding: 2rem 1.25rem 3rem; }
  .ll-module-strip { justify-content: center; }
  .ll-mod-card { min-width: 90px; padding: 1rem 1.1rem; }
  .ll-cta { display: block; text-align: center; }
}

/* ═══ REDUCED MOTION ══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .stage-emoji.potd-emoji--pop { animation: none; }
  .potd-word,
  .stage-btn,
  .ll-cta,
  .ll-mod-card,
  .ll-mod-card:hover .ll-mod-icon,
  .ll-cta--hidden {
    transition: none;
  }
  .ll-mod-card:hover { transform: none; }
  .stage-btn:hover { transform: none; }
  .potd-word:hover { transform: none; }
  .ll-cta:hover { transform: none; }
}
