/* ===== Index Page — page-specific styles ===== */
/* #325/T6: extracted from index.html <style>, dedup'd against noor.css */

:root {
  --bg-deep:     #030712;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-heavy: rgba(255,255,255,0.08);
  --glass-border:rgba(255,255,255,0.08);
  --accent:      #10B981;
  --gold:        #F59E0B;
  --text:        #F9FAFB;
  --muted:       rgba(249,250,251,0.5);
  --radius:      16px;
}

/* ===== HERO ===== */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding-bottom: 0;
}
.hero-content { max-width: 720px; padding: 2rem 1.5rem 1.5rem; }
.hero-label {
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 2rem;
}
.hero-arabic {
  font-family: 'Scheherazade New', serif;
  font-weight: 700;
  font-size: clamp(2rem,5vw,4rem);
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 1.5rem;
  direction: rtl;
}
.hero-sub {
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
}
.hero-search { position:relative;max-width:600px;margin:0 auto; }
.hero-search input {
  width: 100%;
  padding: 1rem 3.5rem 1rem 2rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search input:focus { box-shadow:0 0 0 3px rgba(16,185,129,0.4);border-color:var(--accent); }
.hero-search .search-submit {
  position:absolute;right:12px;top:50%;transform:translateY(-50%);
  background:var(--accent);border:none;border-radius:50%;
  width:40px;height:40px;display:flex;align-items:center;justify-content:center;
  cursor:pointer;transition:0.2s;
}
.hero-search .search-submit:hover { background:#059669; }
.hero-search .search-submit svg { width:18px;height:18px;color:#fff; }

/* ===== OKUYUCU ÖNİZLEMESİ ===== */
.reader-preview-wrap {
  position: relative;
  z-index: 1;
  padding: 2rem 0 0;
}
.reader-preview-card {
  border-radius: var(--radius);
  overflow: hidden;
}
.reader-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  gap: 1rem;
}
.reader-preview-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  white-space: nowrap;
}
.reader-preview-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reader-preview-page {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.reader-preview-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  min-height: 220px;
}
.reader-preview-text {
  padding: 1.5rem;
  border-right: 1px solid var(--glass-border);
  overflow: hidden;
}
.reader-flow p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
  color: rgba(249,250,251,0.85);
}
.reader-flow .line-ar {
  font-family: 'Scheherazade New', serif;
  font-size: 1.1rem;
  direction: rtl;
  text-align: right;
  color: var(--gold);
  line-height: 2;
}
.reader-preview-sidebar {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.reader-sidebar-label {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}
.reader-topic-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}
.reader-topic-list li {
  font-size: 0.78rem;
  color: var(--muted);
  padding-left: 0.75rem;
  border-left: 2px solid var(--glass-border);
  line-height: 1.4;
}
.reader-ai-btn {
  display: block;
  text-align: center;
  padding: 0.65rem 1rem;
  background: var(--glass-heavy);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: 0.2s;
}
.reader-ai-btn:hover { background: rgba(16,185,129,0.15); border-color: var(--accent); }
.reader-preview-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid var(--glass-border);
  text-align: right;
}
.reader-oku-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 50px;
  font-family: 'Syne', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
  text-decoration: none;
}
.reader-oku-btn:hover { background: #059669; }

/* ===== STATS ===== */
.stats-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1rem; }
.stat-card { padding:1.5rem;text-align:center; }
.stat-number { font-family:'Syne',sans-serif;font-weight:800;font-size:2.5rem;line-height:1.2; }
.stat-card:nth-child(1) .stat-number { color:var(--accent); }
.stat-card:nth-child(2) .stat-number { color:var(--gold); }
.stat-card:nth-child(3) .stat-number { color:var(--text); }
.stat-label { font-size:0.875rem;color:var(--muted);margin-top:0.25rem; }

/* ===== SCHOLARS ===== */
.scholars-scroll {
  display:flex;gap:1rem;overflow-x:auto;padding-bottom:1rem;
  scrollbar-width:thin;scrollbar-color:var(--glass-border) transparent;
}
.scholars-scroll::-webkit-scrollbar { height:4px; }
.scholars-scroll::-webkit-scrollbar-thumb { background:var(--glass-border);border-radius:4px; }
.scholars-scroll::-webkit-scrollbar-track { background:transparent; }

.scholar-card {
  min-width:160px;padding:1.5rem 1rem;text-align:center;
  cursor:pointer;transition:0.3s ease;flex-shrink:0;
}
.scholar-card:hover { transform:translateY(-2px); }
.scholar-avatar {
  width:48px;height:48px;border-radius:50%;margin:0 auto 0.75rem;
  display:flex;align-items:center;justify-content:center;
  font-family:'Scheherazade New',serif;font-weight:700;font-size:1.2rem;
}
.scholar-name { font-family:'Syne',sans-serif;font-weight:600;font-size:0.9rem;margin-bottom:0.25rem; }
.scholar-field { font-size:0.8rem;color:var(--muted); }

/* ===== BOOKS GRID ===== */
.books-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1rem; }
.book-card {
  border-radius:var(--radius);overflow:hidden;cursor:pointer;
  transition:0.3s ease;border:1px solid var(--glass-border);
}
.book-card:hover { transform:translateY(-4px);border-color:rgba(255,255,255,0.15); }
.book-header {
  aspect-ratio:16/9;display:flex;align-items:center;justify-content:center;
  padding:1rem;position:relative;overflow:hidden;
}
.book-header-arabic {
  font-family:'Scheherazade New',serif;font-weight:400;font-size:1.4rem;
  color:rgba(255,255,255,0.9);direction:rtl;text-shadow:0 2px 8px rgba(0,0,0,0.3);
  position:relative;z-index:1;
}
.book-body { padding:1rem;background:var(--glass-bg);backdrop-filter:blur(16px) saturate(180%); }
.book-title { font-family:'Syne',sans-serif;font-weight:600;font-size:0.95rem;margin-bottom:0.25rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.book-author { font-size:0.85rem;color:var(--muted);margin-bottom:0.75rem; }
.book-category {
  display:inline-block;padding:0.2rem 0.65rem;background:var(--glass-bg);
  border:1px solid var(--glass-border);border-radius:50px;
  font-weight:500;font-size:0.75rem;color:var(--accent);
}
.cat-tefsir { background:linear-gradient(135deg,#7B4F1A,#5C3A0E); }
.cat-hadis  { background:linear-gradient(135deg,#1B4332,#0D281A); }
.cat-fikih  { background:linear-gradient(135deg,#1A3A5C,#0D2137); }
.cat-akide  { background:linear-gradient(135deg,#5C1A1A,#3D0E0E); }
.cat-siyer  { background:linear-gradient(135deg,#8B6914,#6B4F0A); }
.cat-dil    { background:linear-gradient(135deg,#0D5C3A,#083D25); }
.cat-eser   { background:linear-gradient(135deg,#2C4A1E,#1A2E12); }
.cat-default{ background:linear-gradient(135deg,#1f2937,#111827); }

/* ===== CHAT PANEL ===== */
.chat-panel { display:grid;grid-template-columns:40% 60%;gap:0;overflow:hidden; }
.chat-left { padding:2rem;border-right:1px solid var(--glass-border); }
.chat-left h3 { font-family:'Syne',sans-serif;font-weight:700;font-size:1.2rem;margin-bottom:0.75rem; }
.chat-left p { font-size:0.9rem;color:var(--muted);margin-bottom:1.5rem;line-height:1.7; }
.chat-scholars { display:flex;flex-wrap:wrap;gap:0.5rem;margin-bottom:1.5rem; }
.chat-scholar-chip {
  padding:0.4rem 1rem;border-radius:50px;border:1px solid var(--glass-border);
  background:var(--glass-bg);font-size:0.8rem;font-weight:500;cursor:pointer;transition:0.2s;
}
.chat-scholar-chip:hover,.chat-scholar-chip.active { background:var(--glass-heavy);border-color:var(--accent); }
.chat-cta {
  display:inline-block;padding:0.8rem 2rem;background:var(--accent);
  color:#fff;font-family:'Syne',sans-serif;font-weight:600;font-size:0.9rem;
  border-radius:50px;border:none;cursor:pointer;transition:0.2s;
}
.chat-cta:hover { background:#059669; }
.chat-right { padding:2rem;display:flex;flex-direction:column;gap:1rem; }
.chat-message { max-width:85%;padding:0.85rem 1.1rem;border-radius:12px;font-size:0.85rem;line-height:1.6; }
.chat-message.user { align-self:flex-end;background:var(--glass-heavy);border-bottom-right-radius:4px; }
.chat-message.scholar { align-self:flex-start;background:rgba(0,0,0,0.3);border-bottom-left-radius:4px; }
.chat-message .scholar-label { font-family:'Syne',sans-serif;font-size:0.7rem;font-weight:600;color:#1B4332;margin-bottom:0.35rem; }
.chat-message .source { font-size:0.7rem;color:var(--muted);margin-top:0.5rem;padding-top:0.5rem;border-top:1px solid var(--glass-border); }
.typing-dots { align-self:flex-start;display:flex;gap:6px;padding:0.85rem 1.1rem; }
.typing-dots span { width:8px;height:8px;border-radius:50%;background:var(--muted);animation:pulse-dot 1.4s ease-in-out infinite; }
.typing-dots span:nth-child(2) { animation-delay:0.2s; }
.typing-dots span:nth-child(3) { animation-delay:0.4s; }
@keyframes pulse-dot { 0%,80%,100%{opacity:0.3;transform:scale(0.8)} 40%{opacity:1;transform:scale(1)} }

/* ===== SECTION MORE LINK ===== */
.section-more { text-align:center;margin-top:1.5rem; }
.section-more a {
  display:inline-block;padding:0.65rem 2rem;
  border:1px solid var(--glass-border);border-radius:50px;
  font-family:'Syne',sans-serif;font-size:0.85rem;font-weight:600;
  color:var(--muted);transition:0.2s;
}
.section-more a:hover { border-color:var(--accent);color:var(--accent); }

/* ===== RESPONSIVE (page-specific) ===== */
@media (max-width:768px) {
  .stats-grid { grid-template-columns:1fr; }
  .books-grid { grid-template-columns:repeat(2,1fr); }
  .chat-panel { grid-template-columns:1fr; }
  .chat-left { border-right:none;border-bottom:1px solid var(--glass-border); }
  .reader-preview-body { grid-template-columns:1fr; }
  .reader-preview-sidebar { border-top:1px solid var(--glass-border);flex-direction:row;flex-wrap:wrap; }
}
/* === Phase 2: Inline-Style-Klassen (T23) === */
.idx-muted-sm { color: var(--muted); font-size: 0.85rem; }
.idx-shimmer-books { width: 60px; height: 40px; vertical-align: middle; }
.idx-shimmer-pages { width: 80px; height: 40px; vertical-align: middle; }
.idx-scholar-green { color: #10B981; }

@media (max-width:480px) {
  .books-grid { grid-template-columns:1fr; }
  .hero { min-height:65vh; }
  .section { padding:2.5rem 0; }
  .chat-left,.chat-right { padding:1.25rem; }
}
