/* ==========================================================================
   CLASSROOM POWER-UPS STYLESHEET
   Clean Academy / School Reinforcement Lab Theme (Dark Slate & Luminous Blue)
   ========================================================================== */

#view-classroom-hub {
  padding: 24px 20px 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header & Banner */
.classroom-header {
  text-align: center;
  margin-bottom: 24px;
}

.classroom-hub-title {
  font-size: 32px;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.classroom-hub-sub {
  font-size: 15px;
  color: #94a3b8;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats Bar */
.classroom-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.classroom-stat-box {
  background: #131d38;
  border: 1px solid #1e293b;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.classroom-stat-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.classroom-stat-info {
  display: flex;
  flex-direction: column;
}

.classroom-stat-num {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: #f8fafc;
}

.classroom-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Daily Word Feature Banner */
.classroom-daily-word-banner {
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid #4338ca;
  border-radius: 16px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.25);
}

.daily-word-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.daily-word-tag {
  font-size: 11px;
  font-weight: 800;
  color: #a5b4fc;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.daily-word-term {
  font-size: 24px;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: #fde047;
}

.daily-word-desc {
  font-size: 13px;
  color: #cbd5e1;
  max-width: 600px;
}

.daily-word-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.daily-word-btn:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

/* Category Tabs */
.classroom-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  border-bottom: 1px solid #1e293b;
  padding-bottom: 14px;
}

.classroom-category-pills {
  display: flex;
  gap: 8px;
}

.classroom-cat-btn {
  background: #0f172a;
  border: 1px solid #334155;
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-cat-btn.active {
  background: #3b82f6;
  border-color: #60a5fa;
  color: #ffffff;
}

.classroom-quick-tools {
  display: flex;
  gap: 10px;
}

.classroom-tool-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.classroom-tool-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* Topics Grid */
.classroom-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.classroom-topic-card {
  background: #131d38;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
  cursor: pointer;
}

.classroom-topic-card:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.topic-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.topic-card-icon {
  font-size: 34px;
  flex-shrink: 0;
}

.topic-card-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new { background: #334155; color: #94a3b8; }
.badge-learning { background: #854d0e; color: #fde047; }
.badge-practicing { background: #0369a1; color: #7dd3fc; }
.badge-strong { background: #4338ca; color: #c7d2fe; }
.badge-mastered { background: #15803d; color: #86efac; border: 1px solid #22c55e; }

.topic-card-tag {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.topic-card-title {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: #f8fafc;
  line-height: 1.3;
}

.topic-card-desc {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.4;
  flex-grow: 1;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #1e293b;
}

.topic-card-time {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.topic-start-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.topic-start-btn:hover {
  background: #2563eb;
}

/* ==========================================================================
   CLASSROOM LESSON MODAL (LEARN -> SEE -> TRY -> QUIZ -> MASTER)
   ========================================================================== */
#classroom-lesson-modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 28, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.classroom-modal-box {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 20px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.lesson-modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.lesson-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.lesson-close-btn:hover {
  color: #f8fafc;
  background: #1e293b;
}

.lesson-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Step 1: Did You Know Box */
.did-you-know-card {
  background: #1e1b4b;
  border: 1px solid #4338ca;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.did-you-know-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.did-you-know-text {
  font-size: 15px;
  font-weight: 500;
  color: #e0e7ff;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

/* Step 2: Explain / Definition */
.concept-def-box {
  background: #131d38;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: 20px;
}

.concept-def-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.concept-def-main {
  font-size: 17px;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.55;
  letter-spacing: -0.1px;
  margin-bottom: 14px;
}

.concept-examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.concept-example-pill {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 10px 14px;
}

.concept-example-name {
  font-size: 13px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 2px;
}

.concept-example-desc {
  font-size: 13px;
  font-weight: 400;
  color: #cbd5e1;
  line-height: 1.45;
}

/* Interactive Widget Sandbox */
.classroom-interactive-sandbox {
  background: #080317;
  border: 1px solid #334155;
  border-radius: 14px;
  padding: 20px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Pop Quiz Container */
.classroom-quiz-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-question-box {
  font-size: 17px;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.quiz-opt-btn {
  background: #131d38;
  border: 1px solid #1e293b;
  color: #e2e8f0;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.quiz-opt-btn:hover:not(:disabled) {
  border-color: #3b82f6;
  background: #1e293b;
}

.quiz-opt-btn.correct {
  background: #14532d !important;
  border-color: #22c55e !important;
  color: #86efac !important;
}

.quiz-opt-btn.wrong {
  background: #7f1d1d !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

.quiz-explanation-banner {
  background: #1e293b;
  border-left: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 400;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Footer Navigation */
.lesson-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-nav-btn {
  background: #3b82f6;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lesson-nav-btn:hover {
  background: #2563eb;
}

.lesson-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   INTERACTIVE WIDGET SPECIFIC STYLES
   ========================================================================== */

/* Array Rotator */
.array-rotator-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.array-grid-display {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: #131d38;
  border-radius: 10px;
  border: 1px solid #334155;
}

.array-dot {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.4);
}

.array-equation-readout {
  font-size: 18px;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  color: #fde047;
}

.array-rotate-action-btn {
  background: #4338ca;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* Interactive Clock */
.clock-widget-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.clock-canvas-box {
  width: 200px;
  height: 200px;
  position: relative;
}

.clock-digital-readout {
  font-size: 26px;
  font-weight: 900;
  font-family: 'Space Grotesk', monospace;
  color: #38bdf8;
  background: #131d38;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #334155;
}

.clock-control-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.clock-preset-btn {
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.clock-preset-btn:hover {
  background: #334155;
  color: #ffffff;
}

/* Ecosystem / Habitat Sorter */
.sorter-widget-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sorter-buckets-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sorter-bucket {
  background: #131d38;
  border: 2px dashed #334155;
  border-radius: 12px;
  padding: 12px;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sorter-bucket-title {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  text-align: center;
}

.sorter-items-pool {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 8px;
  background: #0f172a;
  border-radius: 10px;
}

.sorter-item-chip {
  background: #1e293b;
  border: 1px solid #475569;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sorter-item-chip:hover {
  background: #334155;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  #view-classroom-hub {
    padding: 14px 10px 80px 10px;
  }

  .classroom-hub-title {
    font-size: 24px;
  }

  .classroom-daily-word-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
  }

  .classroom-topics-grid {
    grid-template-columns: 1fr;
  }

  .sorter-buckets-row {
    grid-template-columns: 1fr;
  }
}
