/* =========================================================
   DUAS LIST — PREMIUM UI
   Calm · Spiritual · Fast · Apple-level restraint
   ========================================================= */

/* ================= DESIGN TOKENS ================= */

:root {
  --bg-main: #f9fafb;
  --bg-elevated: rgba(255, 255, 255, 0.88);
  --bg-elevated-strong: rgba(255, 255, 255, 0.96);

  --border-soft: rgba(0, 0, 0, 0.08);
  --border-gold: rgba(181, 155, 58, 0.35);

  --text-main: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;

  --gold-main: #b59b3a;
  --gold-soft: rgba(181, 155, 58, 0.18);

  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;

  --blur-lg: blur(16px);
}

/* ================= DIM MODE ================= */

body.dim {
  --bg-main: #0f172a;
  --bg-elevated: rgba(31, 41, 55, 0.85);
  --bg-elevated-strong: rgba(31, 41, 55, 0.95);

  --border-soft: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(250, 204, 21, 0.35);

  --text-main: #e5e7eb;
  --text-soft: #9ca3af;
  --text-muted: #9ca3af;

  --gold-main: #facc15;
  --gold-soft: rgba(250, 204, 21, 0.18);
}

/* ================= DARK MODE ================= */

body.dark {
  --bg-main: #020617;
  --bg-elevated: rgba(2, 6, 23, 0.92);
  --bg-elevated-strong: rgba(2, 6, 23, 0.97);

  --border-soft: rgba(255, 255, 255, 0.06);
  --border-gold: rgba(212, 175, 55, 0.35);

  --text-main: #e5e7eb;
  --text-soft: rgba(229, 231, 235, 0.65);
  --text-muted: rgba(229, 231, 235, 0.45);

  --gold-main: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.18);
}

/* ================= BASE ================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, var(--gold-soft), transparent 60%),
    var(--bg-main);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.no-copy {
  user-select: none;
}

/* ================= HEADER ================= */

.app-header {
  background: var(--bg-elevated);
  backdrop-filter: var(--blur-lg);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.gold {
  color: var(--gold-main);
}

.desktop-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.85rem;
  color: var(--text-soft);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-main);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold-main);
  border-radius: 2px;
}

/* ================= MAIN ================= */

.app-main {
  max-width: 1100px;
  margin: auto;
  padding: 2.2rem 1.25rem 5.5rem;
}

/* ================= CARD BASE ================= */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-lg);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.18);
}

/* ================= HERO ================= */

.dua-hero {
  padding: 3rem 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
  border: 1px solid var(--border-gold);
}

.dua-title {
  font-size: 2.2rem;
  margin: 0.75rem 0;
  color: var(--gold-main);
}

.arabic-text {
  font-family: "Amiri Quran", serif;
}

.dua-subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* ================= SEARCH ================= */

.dua-search-wrapper {
  position: sticky;
  top: 90px;
  z-index: 40;
  margin-bottom: 2.5rem;
}

.dua-search-box {
  max-width: 680px;
  margin: auto;
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-elevated-strong);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  backdrop-filter: var(--blur-lg);
}

.dua-search-box input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  color: var(--text-main);
}

.dua-search-box input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  opacity: 0.6;
}

/* ================= TYPING ================= */

.typing {
  display: none;
  gap: 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: bounce 1.2s infinite ease-in-out;
}

.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ================= GRID ================= */

.dua-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

/* ================= DUA CARD ================= */

.dua-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dua-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
}

.dua-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dua-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.dua-number {
  color: var(--gold-main);
  margin-right: 6px;
}

.dua-arrow {
  font-size: 1.4rem;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.dua-card:hover .dua-arrow {
  transform: translateX(4px);
  color: var(--gold-main);
}

.dua-arabic {
  font-family: "Amiri Quran", serif;
  font-size: 1.1rem;
  text-align: right;
  margin-top: 0.75rem;
}

.dua-urdu {
  font-family: "Amiri Quran", serif;
  font-size: 1rem;
  text-align: right;
  margin-top: 0.4rem;
  color: var(--text-muted);
}

.dua-time {
  margin-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ================= FOOTER ================= */

.app-footer {
  text-align: center;
  padding: 2rem 1rem 4.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ================= MOBILE NAV ================= */

.mobile-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: var(--bg-elevated-strong);
  backdrop-filter: var(--blur-lg);
  border-top: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-around;
  padding: 0.65rem 0;
}

.nav-item {
  font-size: 0.75rem;
  color: var(--text-soft);
}

.nav-item.gold {
  color: var(--gold-main);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .dua-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .dua-hero {
    padding: 2.4rem 1.4rem;
  }
}







/* --- Search --- */




/* ================= CHATGPT-STYLE SEARCH ================= */
.chatgpt-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 9999px;
  border: 1px solid;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
}

body:not(.dark):not(.dim) .chatgpt-search { 
  background: #fff; 
  border-color: #e5e7eb; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.05); 
}
body.dark .chatgpt-search { 
  background: #1f2937; 
  border-color: #374151; 
  box-shadow: 0 8px 24px rgba(0,0,0,0.45); 
}
body.dim .chatgpt-search { 
  background: #0b1220; 
  border-color: #2b3444; 
  box-shadow: 0 8px 26px rgba(0,0,0,0.65); 
}

.chatgpt-search input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: inherit;
}
.chatgpt-search input::placeholder { color: #9ca3af; }
body.dark .chatgpt-search input::placeholder { color: #6b7280; }
body.dim .chatgpt-search input::placeholder { color: #797f8a; }

.typing { display: none; gap: 4px; }
.typing span { width: 6px; height: 6px; background: #9ca3af; border-radius: 50%; animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2){animation-delay:.15s;}
.typing span:nth-child(3){animation-delay:.3s;}
@keyframes bounce {0%,80%,100%{transform:scale(0)} 40%{transform:scale(1)}}

mark { background: rgba(59,130,246,.35); color: inherit; padding: 0 4px; border-radius: 4px; }

/* --- Search End --- */



/* ================= MOBILE GRID FIX ================= */
@media (max-width: 640px) {
  .dua-grid {
    grid-template-columns: repeat(1, 1fr); 
    gap: 14px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .dua-card {
    padding: 1rem;
  }

  .dua-card-title {
    font-size: 0.9rem;
  }

  .dua-arabic {
    font-size: 1rem;
  }

  .dua-urdu {
    font-size: 0.9rem;
  }
}

