/* =============================================
   CHATBOT LEHRPLAN – GLOBAL STYLES
   ============================================= */

:root {
  --pink:    #ff6eb4;
  --pink-l:  #ffe0f0;
  --purple:  #a259ff;
  --purple-l:#ede0ff;
  --teal:    #00c9b1;
  --teal-l:  #d0fff9;
  --orange:  #ff8c42;
  --orange-l:#ffe8d6;
  --green:   #3ecf8e;
  --green-l: #d6f8eb;
  --red:     #ff5252;
  --red-l:   #ffe0e0;
  --dark:    #1a1333;
  --card-radius: 18px;
  --shadow: 0 8px 32px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #1a1333 0%, #0d1f3c 50%, #1a1333 100%);
  color: #eee;
  min-height: 100vh;
  overflow-x: hidden;
}

/* =============================================
   FLOATING BUBBLES BACKGROUND
   ============================================= */
.bubbles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bubbles span {
  position: absolute;
  bottom: -120px;
  border-radius: 50%;
  animation: floatUp linear infinite;
  opacity: 0.18;
}

.bubbles span:nth-child(1)  { width:60px;  height:60px;  left:10%;  background:var(--pink);   animation-duration:12s; animation-delay:0s; }
.bubbles span:nth-child(2)  { width:90px;  height:90px;  left:25%;  background:var(--purple); animation-duration:16s; animation-delay:2s; }
.bubbles span:nth-child(3)  { width:40px;  height:40px;  left:40%;  background:var(--teal);   animation-duration:10s; animation-delay:4s; }
.bubbles span:nth-child(4)  { width:75px;  height:75px;  left:55%;  background:var(--orange); animation-duration:14s; animation-delay:1s; }
.bubbles span:nth-child(5)  { width:50px;  height:50px;  left:70%;  background:var(--green);  animation-duration:11s; animation-delay:6s; }
.bubbles span:nth-child(6)  { width:100px; height:100px; left:80%;  background:var(--pink);   animation-duration:18s; animation-delay:3s; }
.bubbles span:nth-child(7)  { width:35px;  height:35px;  left:5%;   background:var(--red);    animation-duration:9s;  animation-delay:5s; }
.bubbles span:nth-child(8)  { width:65px;  height:65px;  left:60%;  background:var(--purple); animation-duration:15s; animation-delay:8s; }
.bubbles span:nth-child(9)  { width:45px;  height:45px;  left:35%;  background:var(--teal);   animation-duration:13s; animation-delay:7s; }
.bubbles span:nth-child(10) { width:80px;  height:80px;  left:90%;  background:var(--orange); animation-duration:17s; animation-delay:9s; }

@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 0.18; }
  100% { transform: translateY(-110vh) rotate(720deg); opacity: 0; }
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-emoji {
  font-size: 6rem;
  animation: bounce 2s ease-in-out infinite;
  display: block;
  margin-bottom: 16px;
}

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

.hero h1 {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(2.4rem, 6vw, 4rem);
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero-tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 28px;
}

.hero-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.pill {
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.pill-pink   { background: var(--pink-l);   color: #c0156c; }
.pill-purple { background: var(--purple-l); color: #6a00e0; }
.pill-teal   { background: var(--teal-l);   color: #007a6a; }

.hero-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 14px 36px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(162,89,255,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 30px rgba(162,89,255,0.55);
}

/* =============================================
   PROGRESS / ROADMAP
   ============================================= */
.progress-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.progress-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.9rem;
  margin-bottom: 32px;
  color: #fff;
}

.roadmap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
}

.roadmap-step {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 3px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: #aaa;
  flex-shrink: 0;
  transition: all 0.3s;
}

.roadmap-step.active {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 20px rgba(255,110,180,0.5);
}

.roadmap-line {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.12);
  min-width: 20px;
  max-width: 80px;
}

.roadmap-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: #999;
  font-weight: 700;
}

/* =============================================
   MODULE SECTIONS
   ============================================= */
.module {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
}

.module-header {
  border-radius: var(--card-radius) var(--card-radius) 0 0;
  padding: 32px 36px;
  margin-bottom: 0;
}

.mod-pink   { background: linear-gradient(135deg, #ff6eb4, #ff3ea8); }
.mod-purple { background: linear-gradient(135deg, #a259ff, #6a00e0); }
.mod-teal   { background: linear-gradient(135deg, #00c9b1, #00897b); }
.mod-orange { background: linear-gradient(135deg, #ff8c42, #e65100); }
.mod-green  { background: linear-gradient(135deg, #3ecf8e, #00897b); }
.mod-red    { background: linear-gradient(135deg, #ff5252, #c62828); }

.module-num {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.module-header h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2rem;
  margin-bottom: 8px;
}

.module-header p {
  font-size: 1.05rem;
  opacity: 0.9;
}

/* CARDS */
.module-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  background: rgba(255,255,255,0.04);
  padding: 24px;
  border-radius: 0 0 var(--card-radius) var(--card-radius);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: none;
}

.card {
  border-radius: 14px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.card-pink   { background: var(--pink-l);   color: #5a002a; }
.card-purple { background: var(--purple-l); color: #2d0070; }
.card-teal   { background: var(--teal-l);   color: #003d36; }
.card-orange { background: var(--orange-l); color: #5a1e00; }
.card-green  { background: var(--green-l);  color: #003825; }
.card-red    { background: var(--red-l);    color: #5a0000; }

.card-icon {
  font-size: 2.2rem;
  line-height: 1;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.card p {
  font-size: 0.93rem;
  line-height: 1.55;
  opacity: 0.85;
}

.card-tag {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* RESOURCES */
.module-resources {
  margin-top: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.08);
}

.module-resources h4 {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #eee;
}

.module-resources ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.module-resources li::before {
  content: "→ ";
  opacity: 0.5;
}

.module-resources a {
  color: #b3e5fc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.93rem;
  transition: color 0.2s;
}

.module-resources a:hover {
  color: var(--pink);
  text-decoration: underline;
}

/* =============================================
   TOOLS SECTION
   ============================================= */
.tools-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.tools-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.tools-subtitle {
  color: #aaa;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
}

.tool-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  transition: transform 0.2s, background 0.2s;
}

.tool-card:hover {
  transform: scale(1.07);
  background: rgba(255,255,255,0.13);
}

.tool-icon {
  font-size: 2.4rem;
}

.tool-card strong {
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}

.tool-card span {
  font-size: 0.78rem;
  color: #aaa;
  text-align: center;
}

/* =============================================
   TIMELINE SECTION
   ============================================= */
.timeline-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.timeline-subtitle {
  color: #aaa;
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform 0.2s;
}

.timeline-item:hover {
  transform: translateX(6px);
}

.timeline-week {
  font-family: 'Fredoka One', cursive;
  font-size: 0.95rem;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  color: #fff;
}

.week-pink   { background: var(--pink); }
.week-purple { background: var(--purple); }
.week-teal   { background: var(--teal); }
.week-orange { background: var(--orange); }
.week-green  { background: var(--green); }
.week-red    { background: var(--red); }

.timeline-content {
  font-size: 0.97rem;
  color: #ddd;
  font-weight: 600;
}

/* =============================================
   QUIZ SECTION
   ============================================= */
.quiz-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px;
  max-width: 700px;
  margin: 0 auto;
}

.quiz-section h2 {
  font-family: 'Fredoka One', cursive;
  font-size: 2.2rem;
  margin-bottom: 10px;
  color: #fff;
}

.quiz-section > p {
  color: #aaa;
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.quiz-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px 28px;
  text-align: left;
}

.quiz-question {
  font-family: 'Fredoka One', cursive;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 24px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-btn {
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 14px 18px;
  color: #eee;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
}

.quiz-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.14);
  border-color: var(--purple);
}

.quiz-btn.correct {
  background: var(--green-l);
  border-color: var(--green);
  color: #003825;
}

.quiz-btn.wrong {
  background: var(--red-l);
  border-color: var(--red);
  color: #5a0000;
}

.quiz-result {
  margin-top: 18px;
  font-size: 1.1rem;
  font-weight: 800;
  min-height: 30px;
  color: var(--teal);
}

.quiz-next-btn {
  margin-top: 18px;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: transform 0.2s;
}

.quiz-next-btn:hover {
  transform: scale(1.05);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 40px;
  color: #888;
  font-size: 0.95rem;
}

.footer-emoji {
  font-size: 2.5rem;
  margin-bottom: 12px;
  animation: pulse 3s ease-in-out infinite;
}

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

.footer-sub {
  margin-top: 6px;
  color: #666;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .module-header { padding: 22px 18px; }
  .module-cards { padding: 16px; gap: 14px; }
  .roadmap-labels { font-size: 0.68rem; }
  .timeline-item { flex-direction: column; align-items: flex-start; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
}
