/* ==========================================================================
   ENGLISH ADVENTURE - STYLES & ANIMATIONS
   Dunia Petualangan Bahasa Inggris untuk Anak Usia 5-7 Tahun
   ========================================================================== */

/* ==========================================================================
   ENGLISH HUB & WORLD MAP
   ========================================================================== */

.english-hub-header {
  text-align: center;
  margin-bottom: 16px;
}

.english-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #ffffff;
  padding: 8px 24px;
  border-radius: var(--radius-full);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 900;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(255, 71, 87, 0.35);
  animation: logoBounce 2.5s infinite ease-in-out;
}

.english-rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #2f80ed;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 3px solid #74b9ff;
  margin-top: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.english-hub-quick-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-quick-feature {
  background: #ffffff;
  border: 3px solid #ffd214;
  color: var(--dark-text);
  font-family: var(--font-fun);
  font-size: 1.1rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.15s ease;
}

.btn-quick-feature:hover {
  transform: translateY(-3px) scale(1.04);
}

.btn-quick-feature:active {
  transform: scale(0.95);
}

/* 8 Worlds Map Grid */
.worlds-map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 950px;
  margin-bottom: 25px;
}

.world-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  border: 4px solid #ffffff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.world-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

.world-card:active {
  transform: scale(0.95);
}

.world-icon-wrap {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

.world-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--dark-text);
}

.world-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: #7f8c8d;
  background: #f1f2f6;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 8 Levels Modes Grid */
.english-modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 950px;
}

.english-mode-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  border: 4px solid #74b9ff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}

.english-mode-card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: #0984e3;
  box-shadow: 0 14px 28px rgba(9, 132, 227, 0.2);
}

.english-mode-card:active {
  transform: scale(0.95);
}

.mode-badge-number {
  background: #0984e3;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 2px 10px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   LEVEL 1: VOCABULARY EXPLORER & ANIMATED CARDS
   ========================================================================== */

.vocab-hero-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 5px solid #ffd214;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  margin-bottom: 15px;
  text-align: center;
}

.vocab-animation-stage {
  width: 180px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vocab-word-large {
  font-size: 2.8rem;
  font-weight: 900;
  color: #ff4757;
  letter-spacing: 2px;
  text-shadow: 1px 1px 0 #ffd214;
}

.vocab-sentence-example {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2f80ed;
  background: #f0f7ff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
}

.vocab-actions-row {
  display: flex;
  gap: 14px;
  width: 100%;
  justify-content: center;
}

/* Mini Animation Keyframes untuk Kosakata */
.anim-falling-apple {
  animation: appleDrop 1.2s ease-in-out infinite alternate;
}
@keyframes appleDrop {
  0% { transform: translateY(-40px) rotate(0deg); }
  70% { transform: translateY(15px) rotate(15deg); }
  100% { transform: translateY(10px) rotate(10deg); }
}

.anim-running-dog {
  animation: dogRun 1s ease-in-out infinite alternate;
}
@keyframes dogRun {
  0% { transform: translateX(-25px) scaleX(1); }
  100% { transform: translateX(25px) scaleX(1); }
}

.anim-flying-bird {
  animation: birdHover 1.5s ease-in-out infinite alternate;
}
@keyframes birdHover {
  0% { transform: translateY(-15px) rotate(-5deg); }
  100% { transform: translateY(15px) rotate(5deg); }
}

/* ==========================================================================
   LEVEL 3: LISTEN & REPEAT / PRONUNCIATION
   ========================================================================== */

.mic-practice-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 5px solid #a55eea;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  box-shadow: 0 12px 30px rgba(165, 94, 234, 0.2);
  text-align: center;
}

.btn-mic-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #ffffff;
  font-size: 2.8rem;
  border: 5px solid #ffffff;
  box-shadow: 0 10px 25px rgba(255, 71, 87, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.btn-mic-large.is-recording {
  animation: micPulse 1.2s infinite ease-in-out;
  background: linear-gradient(135deg, #2ed573, #7bed9f);
  box-shadow: 0 0 30px #2ed573;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.mic-feedback-text {
  font-size: 1.4rem;
  font-weight: 800;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   LEVEL 4 & 5: WORD MATCHING & SENTENCE BUILDER
   ========================================================================== */

.matching-board {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 650px;
  gap: 20px;
}

.matching-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-item-card {
  background: #ffffff;
  border: 4px solid #54a0ff;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
  min-height: 65px;
}

.match-item-card.selected {
  border-color: #ff9f1a;
  background: #fff9e6;
  transform: scale(1.05);
}

.match-item-card.matched {
  border-color: #2ed573;
  background: #f0fff4;
  opacity: 0.6;
  pointer-events: none;
}

/* Sentence Builder */
.sentence-builder-tray {
  width: 100%;
  max-width: 700px;
  background: rgba(255, 255, 255, 0.95);
  border: 4px dashed #74b9ff;
  border-radius: var(--radius-lg);
  padding: 16px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.sentence-word-chip {
  background: linear-gradient(135deg, #ffd214, #ffa502);
  color: var(--dark-text);
  font-size: 1.4rem;
  font-weight: 900;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 3px solid #ffffff;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
  cursor: grab;
  user-select: none;
  transition: transform 0.15s ease;
}

.sentence-word-chip:hover {
  transform: translateY(-4px) scale(1.05);
}

.sentence-word-chip:active {
  cursor: grabbing;
  transform: scale(0.95);
}

.sentence-target-slot {
  min-width: 90px;
  height: 55px;
  border: 3px dashed #a4b0be;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(241, 242, 246, 0.7);
  padding: 4px 10px;
}

/* ==========================================================================
   LEVEL 6: ENGLISH CONVERSATION WITH MOMO
   ========================================================================== */

.conversation-stage {
  width: 100%;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  justify-content: space-around;
}

.dialogue-bubble-momo {
  background: #ffffff;
  border: 4px solid #ffd214;
  border-radius: var(--radius-lg);
  padding: 16px 24px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-text);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  animation: floatSmall 2.5s infinite ease-in-out;
  display: flex;
  align-items: center;
  gap: 15px;
}

.convo-options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.btn-convo-choice {
  background: #ffffff;
  border: 4px solid #54a0ff;
  color: #2c3e50;
  font-family: var(--font-fun);
  font-size: 1.3rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,0.08);
  transition: transform 0.15s ease, border-color 0.15s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-convo-choice:hover {
  transform: translateX(8px) scale(1.02);
  border-color: #0984e3;
}

/* ==========================================================================
   LEVEL 7 & 8: QUESTS & STORY TIME
   ========================================================================== */

.quest-interactive-scene {
  width: 100%;
  max-width: 680px;
  height: 280px;
  background: radial-gradient(circle, #e0f7fa 0%, #b2ebf2 100%);
  border-radius: var(--radius-lg);
  border: 5px solid #00bcd4;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  overflow: hidden;
  margin-bottom: 15px;
}

.quest-clickable-object {
  position: absolute;
  font-size: 3.2rem;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.quest-clickable-object:hover {
  transform: scale(1.25) rotate(10deg);
}

/* Story Time */
.story-book-frame {
  width: 100%;
  max-width: 600px;
  background: #fffdf5;
  border-radius: var(--radius-lg);
  border: 6px solid #e17055;
  padding: 24px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.story-scene-art {
  font-size: 4.5rem;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounceSmall 2s infinite ease-in-out;
}

.story-text-line {
  font-size: 1.6rem;
  font-weight: 900;
  color: #2d3436;
}

/* ==========================================================================
   PARENT DASHBOARD
   ========================================================================== */

.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 900px;
  height: 100%;
  overflow-y: auto;
  padding: 10px 15px 30px;
  gap: 20px;
}

.metric-progress-row {
  margin-bottom: 12px;
}

.metric-label-row {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.progress-track {
  width: 100%;
  height: 18px;
  background: #dfe6e9;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}
