/*
 * Juz Interactive Learning — Pixel-Perfect Islamic Styles
 * ========================================================
 * Inspired by the emerald-green + gold Juz infographic series.
 * Brand: Quranic Insights | by eBlessings
 */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --juz-emerald:      #0d5c3a;
  --juz-emerald-mid:  #1b7a4f;
  --juz-emerald-lite: #236b4b;
  --juz-gold:         #c9a84c;
  --juz-gold-lite:    #f0d080;
  --juz-gold-dark:    #9a7230;
  --juz-cream:        #fdf6e3;
  --juz-ivory:        #fffef8;
  --juz-dark-navy:    #1a2540;
  --juz-text:         #1c2c1c;
  --juz-text-muted:   #5a6a5a;
  --juz-shadow:       0 4px 24px rgba(13,92,58,0.13);
  --juz-shadow-hover: 0 8px 40px rgba(13,92,58,0.22);
}

/* ════════════════════════════════════════════════════════════════════════
   HUB PAGE — 30-Juz Grid
   ════════════════════════════════════════════════════════════════════════ */

.juz-hub-hero {
  background: linear-gradient(135deg, var(--juz-emerald) 0%, #1b5c3e 50%, #0d3d28 100%);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
}
.juz-hub-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(201,168,76,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.juz-hub-hero .juz-hub-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 0.3rem;
}
.juz-hub-hero .juz-hub-subtitle {
  font-size: 1rem;
  color: var(--juz-gold-lite);
  letter-spacing: 0.5px;
}
.juz-hub-hero .juz-hub-stats {
  display: inline-flex;
  gap: 2rem;
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.juz-hub-hero .juz-hub-stat-item strong {
  display: block;
  font-size: 1.5rem;
  color: var(--juz-gold);
  font-weight: 700;
}

/* ── Juz Hub Grid ─────────────────────────────────────────────────────── */
.juz-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
  padding: 0.5rem 0;
}

/* ── Individual Juz Card (Hub) ─────────────────────────────────────────── */
.juz-card {
  background: var(--juz-ivory);
  border: 2px solid rgba(201,168,76,0.25);
  border-radius: 14px;
  padding: 1.4rem 1.1rem 1rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none !important;
  display: block;
  box-shadow: 0 2px 10px rgba(13,92,58,0.07);
}
.juz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--juz-emerald), var(--juz-gold));
  border-radius: 14px 14px 0 0;
}
.juz-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--juz-shadow-hover);
  border-color: var(--juz-gold);
  text-decoration: none !important;
}
.juz-card-number {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--juz-emerald);
  margin-bottom: 0.2rem;
}
.juz-card-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.5rem;
  color: var(--juz-dark-navy);
  line-height: 1.3;
  direction: rtl;
  margin-bottom: 0.1rem;
}
.juz-card-transliteration {
  font-size: 0.8rem;
  font-style: italic;
  color: var(--juz-emerald-mid);
  margin-bottom: 0.05rem;
}
.juz-card-english {
  font-size: 0.78rem;
  color: var(--juz-text-muted);
  margin-bottom: 0.7rem;
}
.juz-card-theme {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--juz-emerald);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.juz-card-sura-range {
  font-size: 0.65rem;
  color: #999;
  margin-bottom: 0.5rem;
}
.juz-card-badge {
  display: inline-block;
  background: rgba(13,92,58,0.1);
  color: var(--juz-emerald);
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 0.65rem;
  font-weight: 600;
}
.juz-card-badge.full {
  background: rgba(201,168,76,0.15);
  color: var(--juz-gold-dark);
}
.juz-card-badge.coming-soon {
  background: rgba(150,150,150,0.1);
  color: #999;
}

/* ════════════════════════════════════════════════════════════════════════
   JUZ DETAIL PAGE — Header
   ════════════════════════════════════════════════════════════════════════ */

.juz-detail-header {
  background: linear-gradient(135deg, var(--juz-emerald) 0%, #1b5c3e 60%, #0d3d28 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem 2rem;
  color: white;
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
}
.juz-detail-header::after {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.juz-detail-header .juz-num-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--juz-gold);
  margin-bottom: 0.3rem;
}
.juz-detail-header .juz-arabic-name {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 2.8rem;
  direction: rtl;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.juz-detail-header .juz-english-name {
  font-size: 1.3rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.15rem;
}
.juz-detail-header .juz-transliteration {
  font-style: italic;
  color: var(--juz-gold-lite);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.juz-detail-header .juz-opening-phrase {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-style: italic;
  margin-bottom: 0.8rem;
  max-width: 600px;
}
.juz-detail-header .juz-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.juz-meta-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
}
.juz-meta-pill .fa {
  color: var(--juz-gold);
  margin-right: 4px;
}

/* ── Juz Nav Bar ─────────────────────────────────────────────────────── */
.juz-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--juz-ivory);
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  margin-bottom: 1.5rem;
}
.juz-nav-btn {
  background: transparent;
  border: 2px solid var(--juz-emerald);
  color: var(--juz-emerald);
  border-radius: 8px;
  padding: 5px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  text-decoration: none;
}
.juz-nav-btn:hover {
  background: var(--juz-emerald);
  color: white;
  text-decoration: none;
}
.juz-nav-btn.disabled {
  border-color: #ddd;
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}
.juz-nav-center {
  text-align: center;
}
.juz-nav-center .juz-indicator {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--juz-emerald);
}
.juz-nav-center .juz-of-30 {
  font-size: 0.72rem;
  color: #999;
}

/* ════════════════════════════════════════════════════════════════════════
   WHEEL — Center Medallion + Nodes
   ════════════════════════════════════════════════════════════════════════ */

.juz-wheel-container {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  overflow: visible;  /* tooltips must not be clipped */
  /* height set inline per Juz based on node count */
}

/* SVG background (connections + decorative rings) */
.juz-wheel-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}

/* Center medallion */
.juz-wheel-center {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d5c3a 0%, #1b7a4f 60%, #0a3d28 100%);
  box-shadow:
    0 0 0 6px rgba(201,168,76,0.35),
    0 0 0 12px rgba(201,168,76,0.12),
    0 8px 32px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  cursor: default;
  z-index: 10;
}
.juz-wheel-center .center-juz-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--juz-gold);
  margin-bottom: 2px;
}
.juz-wheel-center .center-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.4rem;
  color: #fff;
  direction: rtl;
  line-height: 1.2;
  margin-bottom: 2px;
}
.juz-wheel-center .center-english {
  font-size: 0.62rem;
  color: var(--juz-gold-lite);
  font-style: italic;
  line-height: 1.3;
  max-width: 100px;
  margin-bottom: 4px;
}
.juz-wheel-center .center-tagline {
  font-size: 0.5rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.5px;
}

/* ── Theme Node ──────────────────────────────────────────────────────── */
.juz-node {
  position: absolute;
  background: var(--juz-ivory);
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 12px rgba(13,92,58,0.1);
  text-decoration: none !important;
  display: block;
  width: 155px;
}
.juz-node:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 8px 28px rgba(13,92,58,0.22);
  border-color: var(--juz-gold);
  z-index: 20;
  text-decoration: none !important;
}
.juz-node-header {
  background: var(--juz-emerald);
  padding: 7px 9px 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.juz-node-header .node-num {
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--juz-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.juz-node-header .node-icon {
  font-size: 0.75rem;
  color: var(--juz-gold);
  flex-shrink: 0;
}
.juz-node-header .node-title {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.juz-node-body {
  padding: 6px 8px 0;
}
.juz-node-verse {
  font-family: 'Amiri', serif;
  font-size: 0.75rem;
  color: var(--juz-gold-dark);
  direction: rtl;
  line-height: 1.4;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.juz-node-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}
.juz-node-bullets li {
  font-size: 0.58rem;
  color: var(--juz-text);
  padding: 1px 0;
  line-height: 1.3;
  padding-left: 10px;
  position: relative;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.juz-node-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--juz-emerald);
  font-size: 0.65rem;
}
.juz-node-footer {
  background: linear-gradient(90deg, var(--juz-gold-dark), var(--juz-gold));
  padding: 4px 8px;
  margin-top: 5px;
}
.juz-node-footer .node-lesson {
  font-size: 0.55rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Wheel "click to explore" label ─────────────────────────────────── */
.juz-wheel-hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--juz-text-muted);
  margin-top: 0.8rem;
  font-style: italic;
}
.juz-wheel-hint i {
  color: var(--juz-gold-dark);
}

/* ════════════════════════════════════════════════════════════════════════
   COMPACT CHIP NODES (10+ themes — "Concentric Orbits" mode)
   ════════════════════════════════════════════════════════════════════════ */

/* Compact wrapper — transparent, no border/shadow of its own */
.juz-node.compact-node {
  width: 108px;
  overflow: visible;       /* tooltip must not be clipped by node bounds */
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
.juz-node.compact-node:hover {
  transform: none;         /* chip handles its own scale */
  box-shadow: none;
  border-color: transparent;
  z-index: 200;
}

/* Chip visual container */
.juz-node-chip {
  background: var(--juz-ivory);
  border: 1.5px solid rgba(201,168,76,0.35);
  border-radius: 9px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1);
  width: 108px;
}
.juz-node.compact-node:hover .juz-node-chip {
  border-color: var(--juz-gold);
  box-shadow: 0 4px 20px rgba(13,92,58,0.22);
  transform: scale(1.08) translateY(-2px);
}

/* Chip header inherits existing .juz-node-header styles but slightly smaller padding */
.juz-node.compact-node .juz-node-header {
  padding: 6px 8px 5px;
  gap: 5px;
}
.juz-node.compact-node .node-num {
  width: 16px;
  height: 16px;
  font-size: 0.55rem;
}
.juz-node.compact-node .node-icon {
  font-size: 0.68rem;
}
.juz-node.compact-node .node-title {
  font-size: 0.58rem;
  -webkit-line-clamp: 3;
}

/* ════════════════════════════════════════════════════════════════════════
   HOVER TOOLTIP  — floats above/below compact chip
   ════════════════════════════════════════════════════════════════════════ */

.juz-node-tooltip {
  position: absolute;
  z-index: 300;
  width: 244px;
  background: #ffffff;
  border: 1.5px solid rgba(201,168,76,0.55);
  border-radius: 12px;
  padding: 11px 13px 10px;
  box-shadow:
    0 10px 40px rgba(13,92,58,0.18),
    0 2px 10px rgba(0,0,0,0.07);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  line-height: 1.45;
  color: var(--juz-text);
}
.juz-node.compact-node:hover .juz-node-tooltip {
  opacity: 1;
}

/* ── Vertical placement ─────────────────────────────────────────────── */
.tip-below .juz-node-tooltip  { top: calc(100% + 8px); }
.tip-above .juz-node-tooltip  { bottom: calc(100% + 8px); }

/* ── Horizontal alignment ───────────────────────────────────────────── */
.tip-center .juz-node-tooltip {
  left: 50%;
  transform: translateX(-50%);
}
.tip-above.tip-center .juz-node-tooltip {
  left: 50%;
  transform: translateX(-50%);
}
.tip-left .juz-node-tooltip   { left: 0; transform: none; }
.tip-right .juz-node-tooltip  { right: 0; left: auto; transform: none; }
.tip-above.tip-left .juz-node-tooltip  { left: 0; transform: none; }
.tip-above.tip-right .juz-node-tooltip { right: 0; left: auto; transform: none; }

/* ── Tooltip content ────────────────────────────────────────────────── */
.tt-verse {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 0.82rem;
  color: var(--juz-gold-dark);
  direction: rtl;
  line-height: 1.55;
  margin-bottom: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(201,168,76,0.2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-bullets {
  list-style: none;
  margin: 0 0 7px;
  padding: 0;
}
.tt-bullet {
  font-size: 0.68rem;
  color: var(--juz-text);
  padding-left: 12px;
  position: relative;
  margin-bottom: 3px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-bullet::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--juz-emerald);
  font-size: 0.6rem;
  top: 1px;
}
.tt-lesson {
  font-size: 0.66rem;
  color: var(--juz-text-muted);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-cta {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--juz-emerald);
  letter-spacing: 0.3px;
}
.tt-cta::after {
  content: ' →';
}

/* ── Naming origin — in compact tooltip ─────────────────────────────── */
.tt-naming {
  font-size: 0.64rem;
  color: var(--juz-gold-dark);
  background: rgba(201,168,76,0.08);
  border-left: 2px solid var(--juz-gold);
  border-radius: 0 6px 6px 0;
  padding: 5px 8px;
  margin: 5px 0 7px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tt-tag-icon {
  color: var(--juz-gold-dark);
  font-size: 0.58rem;
  margin-right: 4px;
  flex-shrink: 0;
}

/* ── Naming origin — in full node footer (≤9 themes) ────────────────── */
.node-naming {
  font-size: 0.51rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.3;
  margin-top: 4px;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.node-naming .fa-tag {
  opacity: 0.65;
  font-size: 0.48rem;
  margin-right: 3px;
}

/* ── Mobile: collapse wheel → vertical accordion ─────────────────────── */
.juz-nodes-accordion {
  display: none;
}
@media (max-width: 767px) {
  .juz-wheel-container {
    display: none;
  }
  .juz-nodes-accordion {
    display: block;
  }
}

/* ── Accordion card (mobile) ─────────────────────────────────────────── */
.juz-acc-card {
  border: 1.5px solid rgba(201,168,76,0.3);
  border-radius: 12px;
  margin-bottom: 0.7rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13,92,58,0.07);
}
.juz-acc-header {
  background: var(--juz-emerald);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.juz-acc-header .acc-num {
  width: 22px;
  height: 22px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--juz-gold);
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.juz-acc-header .acc-icon {
  color: var(--juz-gold);
  font-size: 0.9rem;
}
.juz-acc-header .acc-title {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 1;
}
.juz-acc-header .acc-chevron {
  color: var(--juz-gold-lite);
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.juz-acc-body {
  background: var(--juz-ivory);
  padding: 0.9rem 1rem;
}
.juz-acc-body .acc-arabic {
  font-family: 'Amiri', serif;
  font-size: 1rem;
  color: var(--juz-gold-dark);
  direction: rtl;
  margin-bottom: 0.5rem;
}
.juz-acc-body .acc-bullets li {
  font-size: 0.8rem;
  color: var(--juz-text);
  margin-bottom: 4px;
  padding-left: 14px;
  position: relative;
}
.juz-acc-body .acc-bullets li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--juz-emerald);
}
.juz-acc-footer {
  background: linear-gradient(90deg, var(--juz-gold-dark), var(--juz-gold));
  padding: 6px 12px;
  font-size: 0.72rem;
  color: #fff;
  font-weight: 600;
}
.juz-acc-explore-btn {
  display: inline-block;
  margin-top: 0.7rem;
  background: var(--juz-emerald);
  color: #fff;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
}
.juz-acc-explore-btn:hover {
  background: var(--juz-emerald-mid);
  color: #fff;
  text-decoration: none;
}

/* ════════════════════════════════════════════════════════════════════════
   JUZ DETAIL — Bottom Info Strip
   ════════════════════════════════════════════════════════════════════════ */

.juz-info-strip {
  background: var(--juz-cream);
  border: 1.5px solid rgba(201,168,76,0.25);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.juz-info-strip .strip-section {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--juz-text);
}
.juz-info-strip .strip-icon {
  color: var(--juz-gold-dark);
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
.juz-info-strip .strip-label {
  font-size: 0.65rem;
  color: #999;
  display: block;
}
.juz-info-strip .strip-value {
  font-weight: 600;
  color: var(--juz-emerald);
}
.juz-audio-btn {
  background: var(--juz-emerald);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.juz-audio-btn:hover {
  background: var(--juz-emerald-mid);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
}
.juz-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1.5px solid rgba(201,168,76,0.4);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--juz-gold-dark);
  text-decoration: none;
  transition: all 0.18s;
}
.juz-link-pill:hover {
  background: rgba(201,168,76,0.1);
  color: var(--juz-gold-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════════
   THEME DEEP-DIVE PAGE
   ════════════════════════════════════════════════════════════════════════ */

.juz-theme-header {
  background: linear-gradient(135deg, var(--juz-emerald) 0%, #1b5c3e 100%);
  border-radius: 16px;
  padding: 2rem 2rem 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.juz-theme-header .theme-breadcrumb {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.juz-theme-header .theme-breadcrumb a {
  color: var(--juz-gold-lite);
  text-decoration: none;
}
.juz-theme-header .theme-breadcrumb a:hover {
  text-decoration: underline;
}
.juz-theme-header .theme-icon-circle {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(201,168,76,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: var(--juz-gold);
  margin-bottom: 0.8rem;
}
.juz-theme-header .theme-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.2rem;
}
.juz-theme-header .theme-juz-tag {
  display: inline-block;
  background: rgba(201,168,76,0.2);
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--juz-gold-lite);
  border-radius: 20px;
  padding: 2px 12px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Signature Verse Block */
.juz-sig-verse {
  background: linear-gradient(135deg, #fdf6e3, #fffef8);
  border: 2px solid rgba(201,168,76,0.35);
  border-left: 5px solid var(--juz-gold-dark);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
}
.juz-sig-verse .sig-arabic {
  font-family: 'Amiri', 'Scheherazade New', serif;
  font-size: 1.5rem;
  color: var(--juz-dark-navy);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}
.juz-sig-verse .sig-english {
  font-size: 0.92rem;
  color: var(--juz-text);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.3rem;
}
.juz-sig-verse .sig-ref {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--juz-gold-dark);
}
.juz-sig-verse .sig-ref a {
  color: var(--juz-emerald);
  text-decoration: none;
}
.juz-sig-verse .sig-ref a:hover {
  text-decoration: underline;
}

/* Key Concepts */
.juz-concepts-card {
  background: var(--juz-ivory);
  border: 1.5px solid rgba(13,92,58,0.15);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin-bottom: 1.2rem;
}
.juz-concepts-card .section-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--juz-emerald);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.juz-concept-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.juz-concept-item:last-child {
  border-bottom: none;
}
.juz-concept-item .concept-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--juz-gold-dark);
  flex-shrink: 0;
  margin-top: 5px;
}
.juz-concept-item .concept-text {
  font-size: 0.88rem;
  color: var(--juz-text);
  line-height: 1.5;
}

/* Lesson Callout */
.juz-lesson-callout {
  background: linear-gradient(135deg, var(--juz-emerald) 0%, #1b5c3e 100%);
  border-radius: 12px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.juz-lesson-callout .lesson-icon {
  font-size: 1.3rem;
  color: var(--juz-gold);
  flex-shrink: 0;
  margin-top: 2px;
}
.juz-lesson-callout .lesson-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--juz-gold-lite);
  margin-bottom: 3px;
}
.juz-lesson-callout .lesson-text {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.5;
}

/* ── Verse Listing ──────────────────────────────────────────────────── */
.juz-verse-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--juz-emerald);
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(201,168,76,0.2);
}

.juz-verse-card {
  background: var(--juz-ivory);
  border: 1.5px solid rgba(201,168,76,0.18);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 0.9rem;
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.juz-verse-card:hover {
  box-shadow: var(--juz-shadow);
  border-color: rgba(201,168,76,0.4);
}
.juz-verse-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(13,92,58,0.04);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.juz-verse-ref-badge {
  background: var(--juz-emerald);
  color: white;
  border-radius: 6px;
  padding: 2px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: monospace;
  text-decoration: none;
}
.juz-verse-ref-badge:hover {
  background: var(--juz-emerald-mid);
  color: white;
  text-decoration: none;
}
.juz-verse-psyche-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.juz-psyche-pill {
  background: rgba(201,168,76,0.12);
  color: var(--juz-gold-dark);
  border-radius: 12px;
  padding: 1px 7px;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: capitalize;
}
.juz-psyche-pill.emotion {
  background: rgba(13,92,58,0.1);
  color: var(--juz-emerald);
}
.juz-verse-card-body {
  padding: 10px 12px;
}
.juz-verse-concept {
  font-size: 0.82rem;
  color: var(--juz-text);
  line-height: 1.5;
  font-style: italic;
  margin-bottom: 6px;
}
.juz-verse-translation {
  font-size: 0.8rem;
  color: var(--juz-text-muted);
  line-height: 1.6;
}
.juz-verse-card-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(13,92,58,0.03);
  border-top: 1px solid rgba(201,168,76,0.1);
}
.juz-verse-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}
.juz-kw-tag {
  background: rgba(201,168,76,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  color: #7a5c20;
  border-radius: 20px;
  padding: 1px 7px;
  font-size: 0.58rem;
  text-transform: lowercase;
}
.juz-verse-audio-btn {
  background: var(--juz-emerald);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  flex-shrink: 0;
}
.juz-verse-audio-btn:hover {
  background: var(--juz-emerald-mid);
  color: white;
  text-decoration: none;
  transform: scale(1.05);
}

/* ── Inline Audio Players (Juz) ─────────────────────────────────────── */
.juz-inline-audio-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,92,58,0.06);
  border: 1px solid rgba(13,92,58,0.12);
  border-radius: 8px;
  padding: 4px 10px;
}
.juz-audio-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--juz-emerald);
  white-space: nowrap;
}
.juz-inline-audio-pill audio {
  border-radius: 6px;
}
.juz-verse-audio-inline {
  border-radius: 6px;
  flex-shrink: 0;
}
.juz-verse-card-footer {
  align-items: center;
}

/* ── Maslow Level Badge ──────────────────────────────────────────────── */
.juz-maslow-badge {
  display: inline-block;
  border-radius: 8px;
  padding: 1px 8px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.juz-maslow-badge.Transcendence      { background: rgba(142,68,173,0.12); color: #8E44AD; }
.juz-maslow-badge.Self-Actualization { background: rgba(41,128,185,0.12); color: #2980B9; }
.juz-maslow-badge.Esteem             { background: rgba(39,174,96,0.12);  color: #27AE60; }
.juz-maslow-badge.Belonging-Love     { background: rgba(243,156,18,0.12); color: #ca8a04; }
.juz-maslow-badge.Safety             { background: rgba(211,84,0,0.12);   color: #D35400; }
.juz-maslow-badge.Physiological      { background: rgba(192,57,43,0.12);  color: #C0392B; }

/* ── Character Badges ───────────────────────────────────────────────── */
.juz-char-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 0.8rem;
}
.juz-char-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13,92,58,0.07);
  border: 1px solid rgba(13,92,58,0.18);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--juz-emerald);
  text-decoration: none;
}
.juz-char-badge:hover {
  background: var(--juz-emerald);
  color: white;
  text-decoration: none;
}

/* ── "No full data yet" placeholder ─────────────────────────────────── */
.juz-coming-soon {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--juz-cream);
  border: 2px dashed rgba(201,168,76,0.3);
  border-radius: 16px;
}
.juz-coming-soon .cs-icon {
  font-size: 2.5rem;
  color: var(--juz-gold-dark);
  margin-bottom: 1rem;
}
.juz-coming-soon h4 {
  color: var(--juz-emerald);
  font-weight: 700;
}
.juz-coming-soon p {
  color: var(--juz-text-muted);
  font-size: 0.88rem;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .juz-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .juz-hub-hero .juz-hub-title {
    font-size: 1.7rem;
  }
  .juz-hub-hero .juz-hub-stats {
    gap: 1rem;
    flex-direction: column;
  }
  .juz-info-strip {
    flex-direction: column;
    gap: 0.7rem;
  }
}
