/* Minimal, modern, koyu tema */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --accent: #38bdf8;
  --border: #1f2937;
  --ok: #22c55e;
  --warn: #f59e0b;
}
* { box-sizing: border-box }
body {
  margin: 0; padding: 24px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text); background: radial-gradient(1200px 600px at 10% -10%, #162036, var(--bg));
  min-height: 100vh;
}
.container { max-width: 980px; margin: 0 auto; }
.header { display:flex; align-items:center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.brand { font-size: 20px; font-weight: 700; letter-spacing:.3px }
.card {
  background: linear-gradient(180deg, rgba(17,24,39,.95), rgba(15,23,42,.95));
  border: 1px solid var(--border);
  border-radius: 20px; padding: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.35);
}
.controls { display:flex; flex-wrap:wrap; gap: 10px; align-items:center }
select, input, button {
  background: #0b1220; color: var(--text); border:1px solid var(--border);
  border-radius: 12px; padding: 10px 12px; outline: none;
}
button { cursor: pointer; transition: transform .05s ease; }
button:hover { transform: translateY(-1px); }
.btn-primary { background: #0b1220; border-color: #334155 }
.btn-ghost { background: transparent; }
.badge { display:inline-flex; gap:6px; align-items:center; padding:6px 10px; border-radius:999px; border:1px solid var(--border); color: var(--muted); font-size: 12px; }
.hadith { margin-top: 10px; }
.arabic { font-size: 22px; line-height: 1.7; text-align: right; direction: rtl; }
.tr { font-size: 18px; line-height: 1.7; margin-top: 10px; }
.meta { font-size: 13px; color: var(--muted); margin-top: 8px; display:flex; gap:12px; flex-wrap: wrap }
.footer { color: var(--muted); font-size: 13px; margin-top: 16px; display:flex; justify-content: space-between; align-items:center }
hr.sep { border: 0; border-top:1px dashed #22304f; margin: 14px 0 }
.toast { position: fixed; right: 16px; bottom: 16px; background:#111827; border:1px solid #1f2937; color:var(--text); padding:12px 14px; border-radius:12px; display:none }
@media (max-width: 640px) {
  body { padding: 16px }
}


/* --- Mobil uyumluluk geliştirmeleri --- */
.header { flex-wrap: wrap; }
.controls label { font-size: 12px; color: var(--muted); }
dialog.card { width: min(95vw, 720px); border: none; }
dialog::backdrop { background: rgba(0,0,0,.4); }
input, select, button { min-height: 42px; }
@media (max-width: 720px) {
  .controls { gap: 8px; }
  .card { padding: 16px; border-radius: 16px; }
  .arabic { font-size: 20px; }
  .tr { font-size: 16px; }
  .header .controls button { padding: 8px 10px; }
  .footer { flex-direction: column; gap: 8px; align-items: flex-start; }
}
@media (max-width: 420px) {
  body { padding: 12px; }
  .brand { font-size: 18px; }
  .controls { width: 100%; }
  .controls select, .controls button { flex: 1; width: 100%; }
}
