/**
 * tevekkul.net - Modern & Hızlı İslami Platform Teması
 */

:root {
  --primary: #065f46;
  --primary-light: #059669;
  --primary-dark: #022c22;
  --accent: #d97706;
  --accent-light: #f59e0b;
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst Bildirim / Bilgilendirme Çubuğu */
/* Sabit Header Kapsayıcısı: Günün Ayeti ve Header Birlikte Sayfayla İner */
.sticky-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-card);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.topbar {
  background: #022c22;
  color: #a7f3d0;
  padding: 8px 0;
  font-size: 0.84rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-ayah-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  line-height: 1.45;
  flex: 1;
}

.topbar-badge {
  background: #059669;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  flex-shrink: 0;
  align-self: center;
}

.topbar-ayah-text {
  font-style: italic;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
}

.topbar-ayah-link {
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: underline;
  white-space: nowrap;
}

.topbar-date {
  font-size: 0.8rem;
  color: #a7f3d0;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Ana Header */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 16px;
}

.mobile-spacer {
  display: none;
}

.site-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 18px;
}

.header-logo-img {
  height: 60px;
  width: auto;
  max-height: 64px;
  min-width: 90px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-logo:hover .header-logo-img {
  transform: scale(1.02);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  background: #f1f5f9;
  padding: 4px 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.site-nav a {
  color: #334155;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 7px 11px;
  border-radius: 8px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  color: #047857;
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transform: translateY(-1px);
}

.site-nav a.active {
  color: #065f46;
  background: #ffffff;
  border-color: #a7f3d0;
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(6, 95, 70, 0.08);
}

.site-nav a.nav-vakit {
  color: #047857;
  font-weight: 700;
}

.site-nav a.nav-cta {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  font-weight: 700;
  border-color: #047857;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.3);
  margin-left: 2px;
}

.site-nav a.nav-cta:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 8px rgba(5, 150, 105, 0.4);
  transform: translateY(-1px);
}

/* Hero Arama Bölümü */
.hero-section {
  background: linear-gradient(135deg, #065f46 0%, #022c22 100%);
  color: #ffffff;
  padding: 50px 0 60px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #a7f3d0;
  max-width: 650px;
  margin: 0 auto 30px auto;
}

.hero-search-box {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
}

.hero-search-form {
  display: flex;
  background: #ffffff;
  border-radius: 50px;
  padding: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.hero-search-form input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 20px;
  font-size: 1.05rem;
  border-radius: 50px;
  color: var(--text-main);
}

.hero-search-form button {
  background: var(--accent);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hero-search-form button:hover {
  background: var(--accent-light);
}

.quick-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
}

.quick-tags a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
}

.quick-tags a:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hızlı Araçlar Kartları */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: -30px auto 40px auto;
  position: relative;
  z-index: 10;
}

.tool-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: #ecfdf5;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.tool-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.tool-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Bölüm Başlıkları */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.view-all-link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Soru-Cevap / Fetva Kartları */
.fetva-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.fetva-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.fetva-card:hover {
  border-color: #a7f3d0;
  box-shadow: var(--shadow-hover);
}

.fetva-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-badge {
  background: #ecfdf5;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.views-count {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.fetva-question {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.4;
}

.fetva-question a {
  color: var(--text-main);
}

.fetva-question a:hover {
  color: var(--primary);
}

.fetva-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex: 1;
}

.fetva-footer {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Detay Sayfası / Soru Detay */
.detail-layout {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 30px;
  margin: 30px auto 60px auto;
}

.detail-article {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}

.breadcrumb-nav {
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--primary);
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 20px;
  line-height: 1.35;
}

/* Featured Snippet - Hızlı Cevap Kutusu */
.quick-answer-box {
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
}

.quick-answer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-answer-body {
  font-size: 1.05rem;
  font-weight: 500;
  color: #14532d;
  line-height: 1.5;
}

.detail-content {
  font-size: 1.05rem;
  color: #334155;
  line-height: 1.8;
  margin-bottom: 30px;
}

.detail-content p {
  margin-bottom: 16px;
}

.evidence-box {
  background: #fffbeb;
  border-left: 4px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 24px 0;
  font-size: 0.95rem;
  color: #92400e;
}

.diyanet-authority-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-top: 30px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Sidebar */
.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow);
}

.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  border-bottom: 2px solid #ecfdf5;
  padding-bottom: 8px;
}

.related-list {
  list-style: none;
}

.related-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.related-list li:last-child {
  border-bottom: none;
}

.related-list a {
  font-size: 0.92rem;
  color: var(--text-main);
  font-weight: 500;
  display: block;
}

.related-list a:hover {
  color: var(--primary);
}

/* Kuran ve Dua Metinleri */
.arabic-script {
  font-family: "Scheherazade New", "Amiri", "Traditional Arabic", serif;
  font-size: 1.8rem;
  line-height: 2.2;
  text-align: right;
  direction: rtl;
  color: #064e3b;
  margin: 20px 0;
  padding: 16px;
  background: #f0fdf4;
  border-radius: var(--radius-md);
  border-right: 4px solid var(--primary);
}

.transliteration {
  font-style: italic;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.turkish-meal {
  font-size: 1.05rem;
  color: var(--text-main);
  font-weight: 500;
  margin-bottom: 16px;
}

/* AdSense Alanları */
.adsense-slot {
  margin: 24px auto;
  text-align: center;
  overflow: hidden;
  max-width: 100%;
}

/* Site Footer */
.site-footer {
  background: #022c22;
  color: #94a3b8;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  color: #ffffff;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: #34d399;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
}

/* Sayfalama */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 30px 0;
}

.page-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.9rem;
}

.page-link:hover, .page-link.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Araçlar Form Grid */
.tool-calc-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 50px;
}

/* Mobil Hamburger / Çarpı Butonu */
.mobile-menu-btn {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
}

.mobile-menu-btn.is-active {
  background: #fee2e2;
  border-color: #fca5a5;
}

.hamburger-box {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  pointer-events: none;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2.2px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

/* 3 Çizgiden Çarpıya (✕) Kusursuz Dönüşüm */
.mobile-menu-btn.is-active .line-1 {
  transform: translateY(7px) rotate(45deg);
  background-color: #dc2626;
}

.mobile-menu-btn.is-active .line-2 {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .line-3 {
  transform: translateY(-7px) rotate(-45deg);
  background-color: #dc2626;
}

/* Mobil Uyumluluk */
@media (max-width: 1080px) {
  .mobile-spacer {
    display: block;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-logo {
    margin: 0 auto;
    justify-content: center;
    flex: 1;
    text-align: center;
  }

  .header-logo-img {
    margin: 0 auto;
  }

  .site-nav {
    display: none;
    position: fixed;
    top: 115px; /* JS tarafından stickyHeaderWrapper yüksekliğine göre dinamik güncellenir */
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    gap: 8px;
    overflow-y: auto;
    z-index: 99999;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--border);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .site-nav.is-open {
    display: flex !important;
    animation: slideDownNav 0.22s ease-out;
  }

  @keyframes slideDownNav {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .site-nav a {
    font-size: 1rem;
    padding: 13px 18px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  }

  .site-nav a:hover, .site-nav a.active {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #047857;
  }

  .site-nav a.nav-cta {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #ffffff !important;
    justify-content: center;
    margin-top: 6px;
    padding: 14px 18px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .tool-calc-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 7px 0;
    font-size: 0.8rem;
  }
  .topbar-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .topbar-date {
    display: none;
  }
  .topbar-ayah-text {
    font-size: 0.83rem;
    line-height: 1.45;
  }
  .hero-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
  .header-inner {
    min-height: 66px;
    height: 66px;
  }
  .mobile-spacer {
    width: 40px;
    height: 40px;
  }
  .mobile-menu-btn {
    width: 40px;
    height: 40px;
  }
  .header-logo-img {
    height: 48px;
    max-height: 50px;
    min-width: 75px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .arabic-script {
    font-size: 1.7rem !important;
    line-height: 2.1 !important;
    padding: 16px !important;
  }
  .turkish-meal {
    font-size: 1.05rem !important;
    padding: 16px !important;
  }
}
