/* style.css — Global styles (Bangla/English mix)
   Note: Tailwind CDN is primary; this file adds layout + quiz/lesson helpers.
*/

:root {
  --container: 1400px;
}

/* Container */
.container-page {
  max-width: var(--container);
  margin: 0 auto;
}

/* Layout grid (responsive rules in responsive.css) */
.layout-grid {
  display: grid;
  gap: 16px;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
  display: block;
}

/* Content area */
.content {
  min-width: 0;
}

/* Ad slots */
.ad-slot {
  width: 100%;
  overflow: hidden;
  /* Bangla: min-height is set inline by ad-manager.js to prevent CLS */
}

.ad-slot:empty {
  /* If empty and not hidden yet, keep minimal height to avoid jump before JS hides it */
  min-height: 0;
}

/* Sticky bottom ad wrapper (mobile) */
.sticky-bottom-wrap {
  position: relative;
  z-index: 50;
}

.sticky-bottom-ad {
  width: 100%;
}

/* Day chips */
.day-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid;
  text-decoration: none;
  user-select: none;
  min-height: 36px;
}

/* Lesson typography */
.lesson-content {
  font-size: 15px;
  line-height: 1.7;
  color: #0f172a;
}
.lesson-content h1,
.lesson-content h2,
.lesson-content h3 {
  font-weight: 800;
  margin-top: 18px;
  margin-bottom: 8px;
}
.lesson-content h2 { font-size: 18px; }
.lesson-content h3 { font-size: 16px; }
.lesson-content p { margin: 10px 0; }
.lesson-content ul,
.lesson-content ol {
  margin: 10px 0 10px 20px;
}
.lesson-content li { margin: 6px 0; }
.lesson-content a { color: #1d4ed8; text-decoration: underline; }

/* Quiz UI helpers */
.option-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.option-row input { margin-top: 3px; }
.option-row.selected {
  border-color: #2563eb;
  background: #eff6ff;
}
.dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.timer-pill {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
}

@keyframes pulseRed {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
.timer-pill.danger {
  background: #ef4444;
  animation: pulseRed 1s infinite;
}

/* Score ring container */
.score-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}