/* ═══════════════════════════════════════════════════════
   LEARNINGLAND — Landing Page v3 · "Amber Solace"
   Style: Educational · Warm · Tactile · DESIGN.md aligned
   ═══════════════════════════════════════════════════════ */

/* ═══ ENTRY ANIMATIONS ════════════════════════════════════════ */

@keyframes ll-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ll-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══ HERO SHELL ══════════════════════════════════════════════ */

.stage-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border-radius: 20px;
  width: 90%;
  margin: 2rem auto 0;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(143, 78, 0, .09);
  animation: ll-fade-in .5s ease both;
}

/* ── Left: headline + CTA ── */
.stage-message {
  flex: 0 0 38%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 2.5rem 3rem 3rem;
  border-right: 1.5px solid var(--primary-light);
  animation: ll-fade-up .55s .08s ease both;

  h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
    text-wrap: balance;
    margin: 0 0 1rem;
  }

  span {
    color: var(--primary);
    font-weight: 900;
    position: relative;
  }

  p {
    font-size: .97rem;
    line-height: 1.65;
    color: var(--ink-secondary);
    max-width: 30ch;
    margin: 0 0 2rem;
  }
}
.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 — right panel inside hero ══════════════════ */
.ll-stage {
  flex: 1;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem 2.5rem;
  gap: 1.25rem;
  background: var(--surface-container-low);
  position: relative;
  overflow: hidden;
  animation: ll-fade-up .55s .18s ease both;
}

/* 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 > * { position: relative; z-index: 1; }

/* Date badge */
.stage-date {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  background: var(--surface);
  border: 1px solid var(--primary-light);
  padding: .28rem .9rem;
  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: 900px) {
  .stage-message {
    flex: 0 0 45%;
    padding: 2.5rem 2rem 2.5rem 2.5rem;
  }
}

@media (max-width: 680px) {
  .stage-content {
    flex-direction: column;
    width: 94%;
    margin: 1.25rem auto 0;
  }

  .stage-message {
    flex: none;
    border-right: none;
    border-bottom: 1.5px solid var(--primary-light);
    padding: 2rem 1.5rem 1.75rem;
  }

  .stage-message h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
  .stage-message p  { max-width: 100%; margin-bottom: 1.5rem; }

  .ll-stage   { min-height: 44vh; padding: 2.25rem 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-content,
  .stage-message,
  .ll-stage { animation: none; opacity: 1; transform: none; }
  .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; }
}
