/* ============================================================================
   lower_dots.css
   Standalone Stylesheet for Lowercase Connect the Dots Category Page
   ============================================================================ */

:root {
  --navy: oklch(0.33 0.09 264);
  --navy-hover: oklch(0.28 0.08 264);
  --color-blue: #2F5FEE;
  --color-blue-dark: #1E46C4;
  --color-blue-light: #EAF0FF;
  --color-ink: #1B2237;
  --color-ink-soft: #5B6478;
  --color-body-bg: #FFFFFF;
  --color-panel: #EFF4FC;
  --color-border: #E4E9F2;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: var(--smw-font-stack);
  --font-body: var(--smw-font-stack);
}

/* Scoped Reset & Typography */
body, button, input, select, textarea {
  font-family: var(--smw-font-stack);
  -webkit-font-smoothing: antialiased;
}

/* Breadcrumbs */
.cdt-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-ink-soft);
  margin: 0 0 16px 0;
  padding: 0;
}

.cdt-breadcrumb a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.cdt-breadcrumb a:hover {
  text-decoration: underline;
  color: var(--color-blue-dark);
}

.cdt-breadcrumb svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.cdt-breadcrumb span:not(.sep) {
  color: var(--color-ink);
  font-weight: 600;
}

/* Inside the shared Kids Zone Topics bar (.kzd-bar, kidszone_topic_dropdown.css).
   That file styles `nav.breadcrumb`, but this page's breadcrumb is `.cdt-breadcrumb`,
   so the same rules are repeated here:
   - margin-bottom 0: the bar already owns the 16px gap below the row. Left in place,
     it made the breadcrumb box taller than its text and the centred row pushed
     the text ~8px above the dropdown.
   - flex 1 1 12rem + min-width 0: a long breadcrumb shrinks/wraps instead of
     forcing the dropdown onto a second row. */
.kzd-bar > .cdt-breadcrumb {
  margin-bottom: 0;
  flex: 1 1 12rem;
  min-width: 0;
}

.kzd-bar > .cdt-breadcrumb span:not(.sep) {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ============================================================
   HERO HEADER PANEL
   ============================================================ */
.cdt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding: 1.375rem 1.75rem;
  background: oklch(0.95 0.03 264);
  border: 2px solid oklch(0.75 0.12 264);
  border-radius: 1rem;
  box-shadow: 0 1px 2px oklch(0.2 0.035 274 / .03), 0 6px 18px oklch(0.54 0.22 266 / .05);
  box-sizing: border-box;
}

.cdt-hero-text {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cdt-hero-text h1 {
  text-align: center;
  margin: 0 0 0.5rem 0;
  font-family: var(--smw-font-stack);
  font-size: 1.875rem; /* 30px */
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0e2770;
}

.cdt-hero-text p {
  margin: 0 0 1.25rem 0;
  width: 100%;
  text-align: left;
  font-family: var(--smw-font-stack);
  font-size: 0.9375rem; /* 15px */
  line-height: 1.5;
  color: #0b205f;
  font-weight: 500;
}

/* ============================================================
   STAT BADGES (Hero Pills)
   ============================================================ */
.cdt-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cdt-stat-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: 0 1px 2px rgba(20, 30, 60, .04);
}

.cdt-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--color-blue);
  flex-shrink: 0;
}

.cdt-stat-icon svg {
  width: 18px;
  height: 18px;
}

/* Stat icon colors (worksheets / age / categories) */
.cdt-stat-icon--green  { color: #16A34A; }
.cdt-stat-icon--blue   { color: #0040FF; }
.cdt-stat-icon--violet { color: #7437FC; }

.cdt-stat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
}

/* ============================================================
   CATEGORY TABS
   ============================================================ */
.cdt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.cdt-tab {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.cdt-tab:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.cdt-tab.is-active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

/* ============================================================
   THEME GRID & CARDS (Clean Normal Hover + Natural Image Backgrounds)
   ============================================================ */
.cdt-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-ink);
  margin: 24px 0 16px;
}

.cdt-theme-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.cdt-theme-card {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Normal Clean Hover State - No Scale/3D Transform */
.cdt-theme-card:hover {
  border-color: var(--color-blue);
  box-shadow: 0 4px 12px rgba(20, 30, 60, 0.08);
}

.cdt-theme-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
}

.cdt-theme-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cdt-theme-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
}

.cdt-theme-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-ink);
  margin: 0 0 3px;
}

.cdt-theme-count {
  font-size: 12px;
  color: var(--color-ink-soft);
  margin: 0;
}

.cdt-theme-arrow {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-blue-light);
  color: var(--color-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.cdt-theme-card:hover .cdt-theme-arrow {
  background: var(--color-blue);
  color: #ffffff;
}

.cdt-theme-arrow svg {
  width: 15px;
  height: 15px;
}

/* Neutral Clean Container Background for Theme Figures */
.cdt-theme-card[data-theme="animals-birds"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="apparel-accessories"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="electronics-equipments"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="festival-foods"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="fruits-vegetables"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="insects-reptiles"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="real-life"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="sea-animals"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="sports-toys"] figure { background: #ffffff; }
.cdt-theme-card[data-theme="vehicles"] figure { background: #ffffff; }

.cdt-no-themes {
  grid-column: 1 / -1;
  padding: 32px 16px;
  text-align: center;
  font-size: 14px;
  color: var(--color-ink-soft);
  background: #fbfcfe;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  margin: 0;
}

/* ============================================================
   PAGINATION & FOOTER INFO
   ============================================================ */
.cdt-page-count {
  text-align: center;
  font-size: 13.5px;
  color: var(--color-ink-soft);
  margin: 0 0 16px;
}

.cdt-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 28px;
  flex-wrap: wrap;
}

.cdt-page-btn {
  appearance: none;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-ink-soft);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--smw-font-stack);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cdt-page-btn:hover:not(:disabled) {
  background: #f4f6f9;
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.cdt-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.cdt-page-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--smw-font-stack);
}

.cdt-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-blue-light);
  border: 1px solid #d7e6ff;
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.cdt-info-banner svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--color-blue);
  margin-top: 2px;
}

.cdt-info-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #0b205f;
}

/* ============================================================
   RESPONSIVE LAYOUT
   ============================================================ */
@media (max-width: 1100px) {
  .cdt-theme-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .cdt-hero {
    margin-bottom: 1rem;
    padding: 1rem;
  }
  .cdt-hero-text h1 {
    font-size: 1.5rem;
    text-align: left;
  }
  .cdt-hero-text p {
    font-size: 0.875rem;
  }
  .cdt-theme-grid { gap: 14px; }
}

/* Phones: the Kids Zone bar stacks into a column (kidszone_topic_dropdown.css, <=679px).
   In a column the flex-basis above would become a height, so reset it. */
@media (max-width: 679px) {
  .kzd-bar > .cdt-breadcrumb {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .cdt-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}