/* prayer-times.css — Mobile-first design for Dubai Prayer Timings */
/* Accessible, elderly-friendly, dark mode support */

/* ===== Design Tokens / CSS Variables ===== */
:root {
  /* Color palette — Light mode (default) */
  --color-primary: #1B5E3B;
  --color-primary-light: #2E7D52;
  --color-primary-dark: #0F3D26;
  --color-accent: #B8952E;
  --color-accent-light: #E8D49A;
  --color-danger: #B71C1C;
  --color-danger-light: #FFEBEE;

  --color-bg: #F5F3EE;
  --color-surface: #FFFFFF;
  --color-surface-alt: #EDEBE5;
  --color-border: #D5D0C8;
  --color-text: #1A1A1A;
  --color-text-secondary: #4A4540;
  --color-text-muted: #706B63;

  /* Header & footer keep their own dark backgrounds in light mode */
  --header-bg: linear-gradient(to right, #FFFFFF 0%, #F0F0EC 5%, #C5D8CD 12%, #7BA894 22%, #3D7A5C 35%, #1B5E3B 55%, #0F3D26 100%);
  --header-text: #FFFFFF;
  --footer-bg: #0F3D26;
  --footer-text: rgba(255,255,255,0.8);

  /* Typography — larger base for elderly readability */
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Amiri Quran', 'Noto Nastaliq Urdu', serif;

  --text-xs: 0.8125rem;  /* 13px */
  --text-sm: 0.9375rem;  /* 15px */
  --text-base: 1.0625rem; /* 17px */
  --text-lg: 1.1875rem;  /* 19px */
  --text-xl: 1.375rem;   /* 22px */
  --text-2xl: 1.625rem;  /* 26px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  /* Max widths */
  --max-width-content: 640px;
  --max-width-wide: 1080px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;

  /* Nav toolbar */
  --nav-bg: var(--color-surface);
  --nav-border: var(--color-border);

  /* Upcoming prayer card */
  --upcoming-bg: var(--color-primary);
  --upcoming-text: #FFFFFF;
  --upcoming-time: var(--color-accent-light);

  /* Iqamah */
  --iqamah-bg: var(--color-danger-light);
  --iqamah-border: #FFCDD2;

  /* Ramadan */
  --ramadan-bg: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  --ramadan-text: #FFFFFF;
}

/* ===== Dark Mode Tokens ===== */
[data-theme="dark"] {
  --color-primary: #3DA96A;
  --color-primary-light: #4FBF7C;
  --color-primary-dark: #2C8050;
  --color-accent: #D4AA3C;
  --color-accent-light: #E8CA6E;
  --color-danger: #EF5350;
  --color-danger-light: #3D1414;

  --color-bg: #121212;
  --color-surface: #1E1E1E;
  --color-surface-alt: #2A2A2A;
  --color-border: #3A3A3A;
  --color-text: #E8E6E1;
  --color-text-secondary: #B8B4AD;
  --color-text-muted: #8C877F;

  --header-bg: linear-gradient(to right, #FFFFFF 0%, #E8E8E4 5%, #8AAA9A 14%, #4A7A64 24%, #1E5438 38%, #0A2A1A 55%, #143D28 100%);
  --header-text: #E8E6E1;
  --footer-bg: #0A1A10;
  --footer-text: rgba(232,230,225,0.7);

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);

  --nav-bg: var(--color-surface);
  --nav-border: var(--color-border);

  --upcoming-bg: #1A4D30;
  --upcoming-text: #E8E6E1;
  --upcoming-time: var(--color-accent-light);

  --iqamah-bg: #3D1414;
  --iqamah-border: #5C2020;

  --ramadan-bg: linear-gradient(135deg, #0A2A1A, #1A4D30);
  --ramadan-text: #E8E6E1;
}

/* Auto dark mode (system preference) — only if no manual theme set */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-primary: #3DA96A;
    --color-primary-light: #4FBF7C;
    --color-primary-dark: #2C8050;
    --color-accent: #D4AA3C;
    --color-accent-light: #E8CA6E;
    --color-danger: #EF5350;
    --color-danger-light: #3D1414;

    --color-bg: #121212;
    --color-surface: #1E1E1E;
    --color-surface-alt: #2A2A2A;
    --color-border: #3A3A3A;
    --color-text: #E8E6E1;
    --color-text-secondary: #B8B4AD;
    --color-text-muted: #8C877F;

    --header-bg: linear-gradient(to right, #FFFFFF 0%, #E8E8E4 5%, #8AAA9A 14%, #4A7A64 24%, #1E5438 38%, #0A2A1A 55%, #143D28 100%);
    --header-text: #E8E6E1;
    --footer-bg: #0A1A10;
    --footer-text: rgba(232,230,225,0.7);

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);

    --nav-bg: var(--color-surface);
    --nav-border: var(--color-border);

    --upcoming-bg: #1A4D30;
    --upcoming-text: #E8E6E1;
    --upcoming-time: var(--color-accent-light);

    --iqamah-bg: #3D1414;
    --iqamah-border: #5C2020;

    --ramadan-bg: linear-gradient(135deg, #0A2A1A, #1A4D30);
    --ramadan-text: #E8E6E1;
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

a:hover, a:focus {
  color: var(--color-primary-light);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 3px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  line-height: 1.3;
  font-weight: 700;
}

/* ===== Arabic Font Class ===== */
.amiri-quran-regular {
  font-family: var(--font-arabic);
  font-weight: 400;
  font-style: normal;
}

.tajawal-regular {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.gulzar-regular {
  font-family: "Gulzar", serif;
  font-weight: 400;
  font-style: normal;
}

/* ===== Layout Container ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== Header ===== */
/* ===== Site Header ===== */
.site-header {
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-2) var(--space-4) var(--space-2);
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-primary);
}

.header-logo {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: 50px;
  width: auto;
}

.header-title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-primary);
  margin: 0;
  text-align: center;
}

/* ===== Navigation Toolbar ===== */
.nav-toolbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-top: 0;
  background: var(--nav-bg);
  border-bottom: none;
  flex-wrap: wrap;
  transition: background-color var(--transition-normal);
}

/* Clock in nav toolbar */
.nav-clock {
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  padding: var(--space-1) var(--space-2);
  margin-left: var(--space-1);
  white-space: nowrap;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  background: transparent;
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
}

.nav-btn:hover, .nav-btn:focus-visible {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.nav-btn i {
  font-size: var(--text-sm);
  color: inherit;
}

/* Dark mode toggle button */
.nav-btn.theme-toggle {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.nav-btn.theme-toggle:hover,
.nav-btn.theme-toggle:focus-visible {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* Font size buttons */
.nav-btn.font-increase,
.nav-btn.font-decrease,
.nav-btn.font-reset {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-btn.font-increase {
  font-size: var(--text-lg);
}

.nav-btn.font-decrease {
  font-size: var(--text-xs);
}

.nav-btn.font-reset {
  font-size: var(--text-sm);
}

/* ===== Main Content ===== */
.main-content-area {
  flex: 1;
  padding: var(--space-1) var(--space-4) var(--space-4);
  max-width: var(--max-width-content);
  margin: 0 auto;
  width: 100%;
}

/* ===== Last Prayer Info ===== */
.last-prayer-info {
  text-align: center;
  padding: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.last-prayer-info strong {
  color: var(--color-text);
}

/* ===== Iqamah Progress Section ===== */
@keyframes iqamah-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.iqamah-card {
  background: var(--iqamah-bg);
  border: 1px solid var(--iqamah-border);
  border-left: 4px solid var(--color-danger);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-3);
  text-align: center;
  animation: iqamah-pulse 2s ease-in-out infinite;
  transition: background-color 0.3s ease;
}

.iqamah-card .iqamah-label {
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.iqamah-card .iqamah-time {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-danger);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.progress-track {
  width: 100%;
  height: 6px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: var(--space-3);
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-danger));
  border-radius: var(--radius-full);
  transition: width 1s linear;
  position: absolute;
  left: 0;
  top: 0;
}

/* ===== Next Prayer Hero ===== */
.next-prayer-hero {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-4) var(--space-2);
  text-align: center;
  margin-bottom: var(--space-2);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: background-color 0.3s ease;
}

.next-prayer-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  font-weight: 700;
  margin-bottom: 0;
}

.next-prayer-name-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 0;
}

.next-prayer-name {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 0;
}

/* ===== Azaan Toggle Button ===== */
.azaan-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, opacity 0.2s ease;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
  vertical-align: middle;
}

.azaan-toggle i {
  font-size: 16px;
  line-height: 1;
  display: block;
  pointer-events: none;
}

.azaan-toggle:hover {
  background: var(--color-primary);
  color: #fff;
  transform: scale(1.1);
}

/* Muted state */
.azaan-toggle.azaan-off {
  border-color: var(--color-text-muted);
  color: var(--color-text-muted);
  opacity: 0.45;
}

.azaan-toggle.azaan-off:hover {
  background: var(--color-text-muted);
  color: #fff;
  opacity: 1;
}

/* Status nudge (tap-to-play) */
.azaan-status {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-top: var(--space-1);
  animation: ramadan-glow 1.5s ease-in-out infinite;
}

.azaan-status.visible {
  display: block;
}

.next-prayer-time {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 0;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 68px;
}

.countdown-value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-primary-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  min-width: 68px;
  text-align: center;
}

.countdown-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-1);
  font-weight: 700;
}

.countdown-separator {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-text-muted);
  align-self: flex-start;
  padding-top: var(--space-3);
}

.countdown-sublabel {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===== Prayer Times Cards ===== */
.prayer-times-section {
  margin-bottom: var(--space-6);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-1);
}

.prayer-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.prayer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.prayer-card.is-upcoming {
  background: var(--upcoming-bg);
  color: var(--upcoming-text);
  border-color: var(--upcoming-bg);
  box-shadow: var(--shadow-md);
}

.prayer-card.is-upcoming .prayer-card-time {
  color: var(--upcoming-time);
  font-size: var(--text-lg);
}

.prayer-card.is-upcoming .prayer-card-badge {
  display: inline-block;
}

.prayer-card.is-upcoming .prayer-card-name {
  font-size: var(--text-lg);
  color: var(--upcoming-text);
}

.prayer-card.is-past {
  opacity: 0.75;
}

.prayer-card-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.prayer-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  background: #e6f0eb;
  color: #1B5E3B;
  flex-shrink: 0;
}

.prayer-card.is-upcoming .prayer-card-icon {
  background: rgba(255,255,255,0.2);
  color: var(--upcoming-text);
}

.prayer-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
}

.prayer-card-badge {
  display: none;
  font-size: var(--text-xs);
  font-weight: 700;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-left: var(--space-2);
}

.prayer-card-time {
  font-size: var(--text-base);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--color-text);
}

.prayer-card-sunrise {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 600;
}

.prayer-card-sunrise i {
  color: var(--color-accent);
}

/* ===== Ramadan Widget ===== */
.ramadan-card {
  background: var(--ramadan-bg);
  color: var(--ramadan-text);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  margin-bottom: var(--space-4);
  text-align: center;
}

.ramadan-card .ramadan-title {
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}

.ramadan-times-row {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.ramadan-time-block {
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  flex: 1;
  max-width: 180px;
}

.ramadan-time-label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
  margin-bottom: var(--space-2);
}

.ramadan-time-value {
  font-size: var(--text-2xl);
  font-weight: 800;
}

.ramadan-info {
  font-size: var(--text-base);
  opacity: 0.9;
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.ramadan-dua {
  font-family: var(--font-arabic);
  font-size: var(--text-2xl);
  direction: rtl;
  line-height: 1.8;
  padding: var(--space-4);
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  margin-top: var(--space-3);
  border: 1px solid rgba(255,255,255,0.15);
}

@keyframes ramadan-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(255,255,255,0); }
  50% { box-shadow: 0 0 12px rgba(255,255,255,0.3); }
}

.ramadan-countdown-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  font-size: var(--text-2xl);
  font-weight: 800;
  animation: ramadan-glow 2.5s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.25);
  letter-spacing: 0.01em;
  color: #fff;
}

.ramadan-countdown-row span:first-child {
  font-size: var(--text-xl);
  font-weight: 600;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ramadan-countdown-row span:last-child {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  font-size: var(--text-3xl);
  font-weight: 800;
}

/* Last-minutes urgent pulsing red */
@keyframes countdown-pulse {
  0%, 100% { color: #FF5252; text-shadow: 0 0 12px rgba(255, 82, 82, 0.9); }
  50%       { color: #fff;    text-shadow: none; }
}

.countdown-urgent {
  animation: countdown-pulse 0.9s ease-in-out infinite !important;
  color: #FF5252 !important;
}

.highlight {
  background-color: rgba(200, 168, 78, 0.25);
  color: #fff;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* ===== Eid Banner ===== */
.eid-banner {
  background: linear-gradient(135deg, var(--color-accent), #D4AF37);
  color: var(--color-primary-dark);
  text-align: center;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
  font-weight: 800;
}

[data-theme="dark"] .eid-banner {
  color: #1A1A1A;
}

/* ===== Info Cards Grid ===== */
.info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.info-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.info-card h3 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-surface-alt);
}

.info-card p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-3);
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card ul, .info-card ol {
  padding-left: var(--space-6);
  margin: var(--space-3) 0;
}

.info-card li {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

/* Prayer list with icons (matching prayer cards) */
.prayer-list-icons {
  list-style: none !important;
  padding-left: 0 !important;
  margin: var(--space-4) 0;
}

.prayer-list-icons li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  background: var(--color-bg);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-primary);
  transition: background var(--transition-normal);
}

.prayer-list-icons li i {
  font-size: var(--text-lg);
  color: var(--color-primary);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.info-card img {
  border-radius: var(--radius-md);
  margin: var(--space-4) auto;
  max-width: 100%;
}

/* Verse number circles — high contrast for readability */
.ano {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-align: center;
  line-height: 1;
  text-decoration: none;
  vertical-align: middle;
}

/* Quranic verse card - special styling */
.info-card.quran-card {
  border-left: 4px solid var(--color-primary);
}

.quran-arabic-text {
  direction: rtl;
  text-align: right;
  font-family: var(--font-arabic);
  font-size: var(--text-xl);
  line-height: 2.2;
  color: var(--color-text);
  margin-bottom: var(--space-5);
}

.quran-english-text {
  direction: ltr;
  text-align: left;
  font-size: var(--text-base);
  line-height: 1.9;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.quran-urdu-text {
  direction: rtl;
  text-align: right;
  font-family: "Gulzar", serif;
  font-size: var(--text-lg);
  line-height: 2.4;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
}

.quran-ref {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.quran-ref a {
  font-weight: 700;
  color: var(--color-primary);
}

.quran-note {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.quran-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-3) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  transition: background 0.2s ease;
  text-decoration: none;
  min-height: 48px;
}

.quran-cta:hover, .quran-cta:focus-visible {
  background: var(--color-primary-light);
  color: #fff;
}

/* Hijri date display */
.hijri-date-display {
  text-align: center;
  padding: var(--space-5);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  margin: var(--space-5) 0;
}

.hijri-date-display .hijri-en {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.hijri-date-display .hijri-ar {
  font-size: var(--text-lg);
  font-weight: 700;
  direction: rtl;
  color: var(--color-primary);
}

/* Taraweeh table */
.taraweeh-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0;
  font-size: var(--text-base);
}

.taraweeh-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  color: var(--color-text-secondary);
}

.taraweeh-table td:first-child {
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-surface-alt);
  width: 40%;
}

/* Classifieds list */
.classifieds-list {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0;
}

.classifieds-list li {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
}

.classifieds-list li:last-child {
  border-bottom: none;
}

.classifieds-list a {
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

.classifieds-list small {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  text-align: center;
  padding: var(--space-8) var(--space-4);
  font-size: var(--text-base);
}

.site-footer a {
  color: var(--color-accent-light);
}

/* ===== Utility ===== */
.text-center { text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===== Tablet (768px+) ===== */
@media (min-width: 768px) {
  .main-content-area {
    padding: var(--space-6);
    max-width: var(--max-width-wide);
  }

  .site-header {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-6);
  }

  .header-logo img {
    height: 56px;
  }

  .header-title {
    text-align: left;
    font-size: var(--text-2xl);
  }

  .nav-clock {
    font-size: var(--text-base);
  }

  .next-prayer-hero {
    padding: var(--space-8) var(--space-6);
  }

  .next-prayer-name {
    font-size: var(--text-3xl);
  }

  .azaan-toggle {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .azaan-toggle i {
    font-size: 18px;
  }

  .countdown-value {
    font-size: var(--text-4xl);
    min-width: 84px;
    padding: var(--space-3) var(--space-4);
  }

  .prayer-cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-3);
  }

  .prayer-card {
    flex: 1;
    min-width: 0;
    flex-direction: column;
    text-align: center;
    padding: var(--space-5);
    gap: var(--space-3);
  }

  .prayer-card-left {
    flex-direction: column;
    gap: var(--space-2);
  }

  .prayer-card-icon {
    width: 48px;
    height: 48px;
    font-size: var(--text-lg);
  }

  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

  .info-card.quran-card {
    grid-column: span 2;
  }

  .ramadan-times-row {
    gap: var(--space-6);
  }

  .ramadan-time-block {
    max-width: 220px;
    padding: var(--space-4) var(--space-5);
  }
}

/* ===== Desktop (1200px+) ===== */
@media (min-width: 1200px) {
  .info-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .info-card.quran-card {
    grid-column: span 3;
  }

  /* Non-Ramadan: Hijri alone → 1/3, quran spans 2/3 */
  .info-grid:not(.has-ramadan-cards) .info-card:first-child {
    grid-column: 1;
  }

  .info-grid:not(.has-ramadan-cards) .info-card.quran-card {
    grid-column: span 2;
  }

  .countdown-value {
    font-size: var(--text-4xl);
    min-width: 96px;
  }
}

/* ===== Print ===== */
@media print {
  .nav-toolbar,
  .site-footer,
  .theme-toggle {
    display: none;
  }

  .site-header {
    position: static;
  }

  body {
    background: #fff;
    color: #000;
  }
}
