/* ═══════════════════════════════════════════════════════════
   kuranayetleri.tr — Premium Islamic Design System
   Fonts: Amiri (Arabic) + Cormorant Garamond (Display) + DM Sans (UI)
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:ital,wght@0,400;0,700;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --emerald-950: #052e16;
  --emerald-900: #14532d;
  --emerald-800: #166534;
  --emerald-700: #15803d;
  --emerald-600: #16a34a;
  --emerald-500: #22c55e;
  --emerald-200: #bbf7d0;
  --emerald-100: #dcfce7;
  --emerald-50:  #f0fdf4;

  --gold-deep:   #92700a;
  --gold:        #b8960c;
  --gold-mid:    #d4a820;
  --gold-light:  #f0c84a;
  --gold-glow:   #fde68a;
  --gold-pale:   #fefce8;

  --ink:         #0a0f0d;
  --ink-80:      rgba(10,15,13,0.8);
  --ink-40:      rgba(10,15,13,0.4);
  --ink-12:      rgba(10,15,13,0.12);
  --ink-06:      rgba(10,15,13,0.06);

  --paper:       #fafaf7;
  --paper-warm:  #f5f3ee;
  --surface:     #ffffff;
  --surface-2:   #f8f8f5;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-gold: 0 8px 32px rgba(184,150,12,0.20), 0 2px 8px rgba(184,150,12,0.12);
  --shadow-green:0 8px 32px rgba(21,128,61,0.15), 0 2px 8px rgba(21,128,61,0.08);

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-arabic:  'Amiri', 'Traditional Arabic', serif;
  --font-ui:      'DM Sans', system-ui, sans-serif;

  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --paper:       #0c0f0d;
  --paper-warm:  #0f120e;
  --surface:     #141a15;
  --surface-2:   #1a211b;
  --ink:         #f0f5f1;
  --ink-80:      rgba(240,245,241,0.8);
  --ink-40:      rgba(240,245,241,0.4);
  --ink-12:      rgba(240,245,241,0.12);
  --ink-06:      rgba(240,245,241,0.06);
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.2);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.3);
  --gold-pale:   #1c1900;
  --emerald-50:  #0a1f10;
  --emerald-100: #0f2e17;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  transition: background var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font-ui); border: none; background: none; }
input, textarea { font-family: var(--font-ui); }

/* ── GEOMETRIC BACKGROUND PATTERN ───────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21,128,61,0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184,150,12,0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2315803d' fill-opacity='0.03'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5zM0 20l8.66 5v10L0 40l-8.66-5V25zM60 20l8.66 5v10L60 40l51.34-5V25z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}
[data-theme="dark"] body::before {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(21,128,61,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(184,150,12,0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2322c55e' fill-opacity='0.025'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── LAYOUT ──────────────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
.container--narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,247,0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--ink-12);
  height: 64px;
  transition: background var(--transition-slow), border-color var(--transition-slow);
}
[data-theme="dark"] .navbar {
  background: rgba(12,15,13,0.85);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.navbar__brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
}
.navbar__logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-900));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: var(--shadow-green);
}
.navbar__title {
  font-size: 20px; font-weight: 700;
  background: linear-gradient(135deg, var(--emerald-800), var(--emerald-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.3px;
}
[data-theme="dark"] .navbar__title {
  background: linear-gradient(135deg, var(--emerald-400,#4ade80), var(--emerald-300,#86efac));
  -webkit-background-clip: text; background-clip: text;
}
.navbar__sub {
  font-size: 10px; letter-spacing: 2px; color: var(--ink-40);
  font-family: var(--font-ui); font-weight: 500; text-transform: uppercase;
}
.navbar__nav {
  display: flex; align-items: center; gap: 4px;
}
.navbar__nav a {
  font-size: 13.5px; font-weight: 500; color: var(--ink-80);
  padding: 6px 12px; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.navbar__nav a:hover {
  background: var(--emerald-50); color: var(--emerald-700);
}
[data-theme="dark"] .navbar__nav a:hover {
  background: var(--emerald-100); color: #4ade80;
}
.navbar__actions { display: flex; align-items: center; gap: 8px; }
.navbar__search-wrap { position: relative; }
.navbar__search {
  width: 0; padding: 0; opacity: 0; pointer-events: none;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-size: 14px; transition: all 0.3s ease;
}
.navbar__search.open {
  width: 200px; padding: 8px 12px; opacity: 1; pointer-events: all;
  border-color: var(--ink-12);
}
.navbar__search:focus { outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px rgba(34,197,94,0.12); }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-12); color: var(--ink-40);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); background: transparent;
}
.icon-btn:hover { border-color: var(--emerald-500); color: var(--emerald-700); background: var(--emerald-50); }
[data-theme="dark"] .icon-btn:hover { background: var(--emerald-100); color: #4ade80; }
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--ink-12); background: transparent; cursor: pointer; padding: 6px; }
.hamburger span { display: block; height: 2px; background: var(--ink-40); border-radius: 2px; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar { position: relative; }

/* ── HERO SECTION ────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 0 72px;
  background: linear-gradient(160deg, var(--emerald-50) 0%, var(--paper-warm) 50%, var(--gold-pale) 100%);
  border-bottom: 1px solid var(--ink-06);
}
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, rgba(5,46,22,0.5) 0%, var(--paper) 50%, rgba(28,25,0,0.4) 100%);
}
.hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 50% 100%, rgba(21,128,61,0.08) 0%, transparent 70%);
}

/* Decorative Arabic calligraphy background */
.hero__calligraphy {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-arabic); font-size: clamp(200px, 30vw, 360px);
  color: rgba(21,128,61,0.03); pointer-events: none; white-space: nowrap;
  line-height: 1; z-index: 0; user-select: none;
}
[data-theme="dark"] .hero__calligraphy { color: rgba(34,197,94,0.04); }

.hero__content { position: relative; z-index: 1; text-align: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--ink-12);
  padding: 6px 14px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 600; color: var(--emerald-700);
  letter-spacing: 0.5px; margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  animation: fadeDown 0.6s ease both;
}
[data-theme="dark"] .hero__badge { background: var(--surface); border-color: var(--ink-12); color: #4ade80; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 80px);
  font-weight: 300; letter-spacing: -2px; line-height: 1.05;
  color: var(--ink); margin-bottom: 8px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-mid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(32px, 5vw, 52px);
  direction: rtl; line-height: 1.7;
  color: var(--emerald-700);
  margin-bottom: 8px;
  animation: fadeDown 0.6s 0.15s ease both;
}
[data-theme="dark"] .hero__arabic { color: #4ade80; }
.hero__meal {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-style: italic; font-weight: 300;
  color: var(--ink-80); max-width: 560px; margin: 0 auto 6px;
  animation: fadeDown 0.6s 0.2s ease both;
}
.hero__ref {
  font-size: 12px; color: var(--ink-40); font-weight: 500;
  letter-spacing: 0.5px; margin-bottom: 40px;
  animation: fadeDown 0.6s 0.25s ease both;
}
.hero__source {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--gold-deep); font-weight: 600;
  background: var(--gold-pale); border: 1px solid rgba(184,150,12,0.2);
  padding: 5px 12px; border-radius: var(--radius-full); letter-spacing: 0.3px;
  animation: fadeDown 0.6s 0.3s ease both;
}
[data-theme="dark"] .hero__source { background: rgba(28,25,0,0.5); color: var(--gold-light); }

/* ── SEARCH BAR ──────────────────────────────────────────── */
.search-section {
  position: relative; z-index: 10;
  margin-top: -24px;
}
.search-card {
  background: var(--surface);
  border: 1px solid var(--ink-12);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
  max-width: 640px; margin: 0 auto;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.search-card:focus-within {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-lg), 0 0 0 4px rgba(34,197,94,0.1);
}
.search-card__icon { color: var(--ink-40); flex-shrink: 0; }
.search-card input {
  flex: 1; border: none; outline: none; background: transparent;
  font-size: 16px; color: var(--ink); font-family: var(--font-ui);
}
.search-card input::placeholder { color: var(--ink-40); }
.search-card__hint {
  font-size: 12px; color: var(--ink-40); white-space: nowrap; font-weight: 500;
  background: var(--surface-2); padding: 4px 10px; border-radius: var(--radius-full);
  border: 1px solid var(--ink-06);
}
#search-count { font-size: 13px; color: var(--emerald-700); font-weight: 600; white-space: nowrap; }
[data-theme="dark"] #search-count { color: #4ade80; }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0; }
.section__header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px; gap: 16px; flex-wrap: wrap;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600; letter-spacing: -0.5px;
  color: var(--ink);
}
.section__title span {
  background: linear-gradient(135deg, var(--emerald-700), var(--gold-mid));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section__link {
  font-size: 13px; font-weight: 600; color: var(--emerald-700);
  display: flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: var(--radius-full);
  border: 1px solid rgba(21,128,61,0.2);
  transition: all var(--transition);
}
.section__link:hover { background: var(--emerald-50); }
[data-theme="dark"] .section__link { color: #4ade80; border-color: rgba(74,222,128,0.2); }

/* ── SORT TOGGLE ────────────────────────────────────────── */
.sort-toggle { display: flex; gap: 6px; }
.sort-btn {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  padding: 6px 14px; border-radius: var(--radius-full);
  border: 1px solid var(--ink-12); background: transparent;
  color: var(--ink-40); cursor: pointer; transition: all var(--transition);
}
.sort-btn:hover { border-color: var(--emerald-600); color: var(--emerald-700); }
.sort-btn--active {
  background: var(--emerald-700); color: #fff;
  border-color: var(--emerald-700);
}
.sort-btn--active:hover { background: var(--emerald-800); border-color: var(--emerald-800); color: #fff; }
[data-theme="dark"] .sort-btn { border-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.4); }
[data-theme="dark"] .sort-btn:hover { border-color: #4ade80; color: #4ade80; }
[data-theme="dark"] .sort-btn--active { background: #16a34a; border-color: #16a34a; color: #fff; }
[data-theme="dark"] .sort-btn--active:hover { background: #15803d; border-color: #15803d; color: #fff; }

/* ── SURE GRID ───────────────────────────────────────────── */
.sure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.sure-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none; color: inherit;
  position: relative; overflow: hidden;
  min-height: 62px;
}
.sure-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--emerald-50), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.sure-card:hover::before { opacity: 1; }
.sure-card:hover {
  border-color: rgba(21,128,61,0.25);
  transform: translateY(-2px);
  box-shadow: var(--shadow-green);
}
.sure-card.hidden { display: none; }
.sure-card__num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-50), var(--emerald-100));
  border: 1px solid rgba(21,128,61,0.15);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--emerald-700);
  font-family: var(--font-ui);
  transition: all var(--transition);
}
[data-theme="dark"] .sure-card__num { background: rgba(21,128,61,0.15); color: #4ade80; }
.sure-card:hover .sure-card__num {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
  color: #fff; border-color: transparent;
  box-shadow: 0 2px 8px rgba(21,128,61,0.4);
}
.sure-card__info { flex: 1; min-width: 0; position: relative; z-index: 1; overflow: hidden; }
.sure-card__name {
  font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sure-card__meta {
  font-size: 11.5px; color: var(--ink-40); font-family: var(--font-ui);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sure-card__ar {
  font-family: var(--font-arabic); font-size: 18px;
  color: var(--ink-40); direction: rtl; flex-shrink: 0;
  transition: color var(--transition);
}
.sure-card:hover .sure-card__ar { color: var(--emerald-600); }

/* ── VERSE CARD ──────────────────────────────────────────── */
.verse-card {
  background: var(--surface);
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.verse-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--emerald-600), var(--gold-mid));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s ease;
}
.verse-card:hover::before { transform: scaleX(1); }
.verse-card:hover {
  border-color: rgba(21,128,61,0.15);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.verse-card--featured {
  background: linear-gradient(135deg, var(--surface), var(--emerald-50));
  border: 1px solid rgba(21,128,61,0.15);
  box-shadow: var(--shadow-green);
}
[data-theme="dark"] .verse-card--featured {
  background: linear-gradient(135deg, var(--surface), rgba(5,46,22,0.4));
}
.verse-card__header {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px;
}
.verse-num {
  width: 34px; height: 34px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-800));
  color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; font-family: var(--font-ui);
  box-shadow: 0 2px 8px rgba(21,128,61,0.35);
  margin-top: 4px;
}
.verse-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--emerald-50); border: 1px solid rgba(21,128,61,0.15);
  color: var(--emerald-700); font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-family: var(--font-ui); letter-spacing: 0.2px;
  transition: all var(--transition); cursor: pointer; text-decoration: none;
}
.verse-chip:hover { background: var(--emerald-700); color: #fff; border-color: transparent; }
[data-theme="dark"] .verse-chip { background: rgba(5,46,22,0.5); color: #4ade80; border-color: rgba(74,222,128,0.15); }
.verse-card__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(26px, 4vw, 36px);
  direction: rtl; text-align: right;
  line-height: 2; color: var(--ink);
  margin-bottom: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--ink-06);
  border-bottom: 1px solid var(--ink-06);
}

/* Gold diacritic marks */
.verse-card__arabic .wbr { display: inline; }

.verse-card__meal {
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 19px);
  font-style: italic; font-weight: 300;
  line-height: 1.75; color: var(--ink-80);
  margin-bottom: 24px;
}
.verse-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding-top: 16px; border-top: 1px solid var(--ink-06);
}
.verse-card__source {
  font-size: 11px; color: var(--ink-40); font-family: var(--font-ui);
  display: flex; align-items: center; gap: 5px;
}
.verse-card__source::before { content: '📚'; font-size: 10px; }
.verse-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.action-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--ink-12); color: var(--ink-40);
  font-size: 12px; font-weight: 500; font-family: var(--font-ui);
  transition: all var(--transition); background: transparent;
  cursor: pointer;
}
.action-btn:hover { border-color: var(--emerald-500); color: var(--emerald-700); background: var(--emerald-50); }
.action-btn--active { background: var(--emerald-600); color: #fff; border-color: var(--emerald-600); }
.action-btn--fav { order: -1; }
.action-btn--fav.active { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
[data-theme="dark"] .action-btn:hover { background: rgba(5,46,22,0.4); color: #4ade80; border-color: rgba(74,222,128,0.3); }
.fav-count { margin-left: 4px; font-size: 12px; font-weight: 600; font-family: var(--font-ui); }

/* ── DAILY VERSE SPECIAL ─────────────────────────────────── */
.daily-section {
  padding: 56px 0 0;
}
.daily-label {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.daily-label__icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-mid), var(--gold-deep));
  display: flex; align-items: center; justify-content: center; font-size: 14px;
  box-shadow: var(--shadow-gold);
  animation: pulse-gold 2s ease-in-out infinite;
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,150,12,0.4), var(--shadow-gold); }
  50% { box-shadow: 0 0 0 8px rgba(184,150,12,0), var(--shadow-gold); }
}
.daily-label__text {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 600; color: var(--gold-deep);
  letter-spacing: -0.2px;
}
[data-theme="dark"] .daily-label__text { color: var(--gold-light); }
.daily-card {
  background: linear-gradient(135deg, var(--surface) 0%, var(--gold-pale) 100%);
  border: 1px solid rgba(184,150,12,0.2);
  border-radius: var(--radius-xl);
  padding: 40px 40px 32px;
  box-shadow: var(--shadow-gold);
  position: relative; overflow: hidden;
}
[data-theme="dark"] .daily-card {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(28,25,0,0.5) 100%);
}
.daily-card::before {
  content: '"';
  position: absolute; top: -20px; left: 24px;
  font-family: var(--font-display); font-size: 180px;
  color: rgba(184,150,12,0.06); line-height: 1; pointer-events: none;
}
.daily-card__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.daily-card__ref {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  color: var(--emerald-700); opacity: 0.8;
}
[data-theme="dark"] .daily-card__ref { color: #4ade80; }
.daily-card__arabic {
  font-family: var(--font-arabic);
  font-size: clamp(14px, 5vw, 46px);
  direction: rtl; text-align: right; line-height: 1.8;
  white-space: nowrap; overflow: hidden;
  color: var(--emerald-800); margin-bottom: 20px;
}
[data-theme="dark"] .daily-card__arabic { color: #4ade80; }
.daily-card__meal {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 24px);
  font-style: italic; font-weight: 300;
  line-height: 1.65; color: var(--ink);
  margin-bottom: 24px;
}
.gold-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--gold-pale); border: 1px solid rgba(184,150,12,0.25);
  color: var(--gold-deep); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: var(--radius-full);
  font-family: var(--font-ui);
}
[data-theme="dark"] .gold-chip { background: rgba(28,25,0,0.6); color: var(--gold-light); }

/* ── TOPIC CARDS ─────────────────────────────────────────── */
.topic-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.topic-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--ink-06);
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; color: inherit;
}
.topic-card:hover {
  border-color: rgba(21,128,61,0.25);
  box-shadow: var(--shadow-green);
  transform: translateY(-2px);
}
.topic-card__left { display: flex; align-items: center; gap: 14px; }
.topic-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
  background: var(--emerald-50); border: 1px solid rgba(21,128,61,0.1);
  transition: all var(--transition);
}
.topic-card:hover .topic-icon { background: var(--emerald-700); filter: brightness(1.2); transform: scale(1.05); }
.topic-card__title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.topic-card__count { font-size: 12px; color: var(--ink-40); font-family: var(--font-ui); }
.topic-card__arrow { color: var(--ink-40); transition: all var(--transition); }
.topic-card:hover .topic-card__arrow { color: var(--emerald-600); transform: translateX(4px); }

/* ── SEO QUICK LINKS ─────────────────────────────────────── */
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--radius-full);
  border: 1px solid var(--ink-12); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink-80);
  transition: all var(--transition); cursor: pointer; text-decoration: none;
}
.quick-link:hover {
  border-color: rgba(21,128,61,0.3); color: var(--emerald-700);
  background: var(--emerald-50); box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .quick-link:hover { background: rgba(5,46,22,0.4); color: #4ade80; }

/* ── SURE PAGE HEADER ────────────────────────────────────── */
.sure-header {
  background: linear-gradient(160deg, var(--emerald-50) 0%, var(--paper-warm) 60%, var(--gold-pale) 100%);
  border-bottom: 1px solid var(--ink-06);
  padding: 56px 0 48px;
  text-align: center; position: relative; overflow: hidden;
}
[data-theme="dark"] .sure-header {
  background: linear-gradient(160deg, rgba(5,46,22,0.5) 0%, var(--paper) 60%, rgba(28,25,0,0.3) 100%);
}
.sure-header__bg-ar {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-arabic); font-size: clamp(120px, 18vw, 200px);
  color: rgba(21,128,61,0.04); pointer-events: none; white-space: nowrap; z-index: 0;
}
.sure-header__content { position: relative; z-index: 1; }
.sure-header__badges { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: 11.5px; font-weight: 600; font-family: var(--font-ui); letter-spacing: 0.3px;
}
.badge--green { background: var(--emerald-50); color: var(--emerald-700); border: 1px solid rgba(21,128,61,0.2); }
.badge--gold { background: var(--gold-pale); color: var(--gold-deep); border: 1px solid rgba(184,150,12,0.2); }
.badge--gray { background: var(--surface-2); color: var(--ink-40); border: 1px solid var(--ink-12); }
[data-theme="dark"] .badge--green { background: rgba(5,46,22,0.5); color: #4ade80; }
[data-theme="dark"] .badge--gold { background: rgba(28,25,0,0.5); color: var(--gold-light); }
.sure-header__name {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 300; letter-spacing: -2px; line-height: 1.1;
  color: var(--ink); margin-bottom: 6px;
}
.sure-header__ar {
  font-family: var(--font-arabic);
  font-size: clamp(36px, 6vw, 54px);
  color: var(--emerald-700); margin-bottom: 12px;
}
[data-theme="dark"] .sure-header__ar { color: #4ade80; }
.sure-header__desc {
  font-family: var(--font-display); font-style: italic; font-weight: 300;
  font-size: 16px; color: var(--ink-80); max-width: 560px; margin: 0 auto;
  line-height: 1.7;
}

/* Bismillah */
.bismillah {
  text-align: center; padding: 28px 0;
  font-family: var(--font-arabic); font-size: clamp(28px, 4vw, 38px);
  color: var(--ink-40); direction: rtl;
  border-bottom: 1px solid var(--ink-06); margin-bottom: 28px;
}

/* Verses list */
.verses-list { display: flex; flex-direction: column; gap: 14px; }

/* ── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb {
  background: var(--surface-2); border-bottom: 1px solid var(--ink-06); padding: 12px 0;
}
.breadcrumb__inner {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-40); flex-wrap: wrap;
}
.breadcrumb__inner a { color: var(--ink-40); transition: color var(--transition); }
.breadcrumb__inner a:hover { color: var(--emerald-700); }
.breadcrumb__sep { color: var(--ink-12); }
.breadcrumb__current { color: var(--ink-80); font-weight: 500; }

/* ── PAGINATION / PREV-NEXT ──────────────────────────────── */
.page-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ink-06);
  flex-wrap: wrap; gap: 12px;
}
.page-nav__btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--ink-12); font-size: 13.5px; font-weight: 500;
  color: var(--ink-80); transition: all var(--transition); text-decoration: none;
}
.page-nav__btn:hover {
  border-color: var(--emerald-500); color: var(--emerald-700); background: var(--emerald-50);
  transform: translateX(-3px);
}
.page-nav__btn--next:hover { transform: translateX(3px); }
.page-nav__center {
  font-size: 13px; color: var(--ink-40); text-align: center; flex: 1;
  font-family: var(--font-ui);
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--ink-06); margin-top: 80px;
  background: var(--surface);
  padding: 56px 0 40px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 768px) { .footer__grid { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer__desc { font-size: 13.5px; color: var(--ink-40); line-height: 1.6; }
.footer__heading { font-size: 11px; font-weight: 700; color: var(--ink-40); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 13.5px; color: var(--ink-80); transition: color var(--transition); }
.footer__links a:hover { color: var(--emerald-700); }
[data-theme="dark"] .footer__links a:hover { color: #4ade80; }
.footer__bottom {
  border-top: 1px solid var(--ink-06); padding-top: 24px;
  text-align: center; font-size: 12.5px; color: var(--ink-40);
}
.footer__bottom strong { color: var(--emerald-700); }
[data-theme="dark"] .footer__bottom strong { color: #4ade80; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger */
.stagger > *:nth-child(1) { transition-delay: 0.05s; }
.stagger > *:nth-child(2) { transition-delay: 0.10s; }
.stagger > *:nth-child(3) { transition-delay: 0.15s; }
.stagger > *:nth-child(4) { transition-delay: 0.20s; }
.stagger > *:nth-child(5) { transition-delay: 0.25s; }
.stagger > *:nth-child(n+6) { transition-delay: 0.30s; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 16px; margin: 40px 0;
}
.divider__line { flex: 1; height: 1px; background: var(--ink-06); }
.divider__star {
  color: var(--gold-mid); font-size: 14px;
  animation: rotate 8s linear infinite;
}
@keyframes rotate { to { transform: rotate(360deg); } }

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sure-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .verse-card { padding: 22px 20px; }
  .daily-card { padding: 28px 22px 24px; }
  .daily-card__arabic { font-size: clamp(14px, 4vw, 30px); }
  .daily-card__meal { font-size: clamp(15px, 2vw, 18px); }
  .daily-card__ref { font-size: 11px; }
  .hero { padding: 56px 0 52px; }
  .hero__meal { font-size: 15px; max-width: 100%; }
  .navbar__nav { display: none; }
  .navbar__nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1rem 1rem;
    gap: 2px;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .navbar__nav.open a { padding: 10px 14px; border-radius: 8px; font-size: 15px; }
  .hamburger { display: flex; }
  .search-card__hint { display: none; }
  .section { padding: 40px 0; }
  .section__header { gap: 10px; }
  .sort-toggle { width: 100%; }
  .sort-btn { flex: 1; text-align: center; }
}
@media (max-width: 480px) {
  .sure-grid { grid-template-columns: repeat(2, 1fr); }
  .sure-card__ar { display: none; }
  .topic-grid { grid-template-columns: 1fr; }
  .daily-card__arabic { font-size: 14px; line-height: 1.8; }
  .verse-actions { gap: 6px; }
  .action-btn { padding: 6px 10px; font-size: 11px; }
}

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ink-12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-40); }

/* ── SELECTION ───────────────────────────────────────────── */
::selection { background: rgba(21,128,61,0.18); color: var(--ink); }
