/* ============================================================
   Cenazeİlan.com - Profesyonel Responsive Tasarım Sistemi
   Modern, Hızlı, SEO & Mobil Uyumlu UI
   ============================================================ */

:root {
  --bg-primary: #0F172A;       /* Gece Laciverti / Slate 900 */
  --bg-secondary: #1E293B;     /* Koyu Slate 800 */
  --bg-card: #FFFFFF;          /* Kart Beyazı */
  --bg-page: #F8FAFC;          /* Sayfa Açık Arka Planı */
  --text-main: #0F172A;        /* Koyu Metin */
  --text-muted: #64748B;       /* Gri Açıklama */
  --text-light: #F8FAFC;       /* Açık Metin */
  --primary: #0284C7;          /* Kurumsal Mavi */
  --primary-hover: #0369A1;
  --accent-emerald: #059669;   /* Vakit / Cami Yeşili */
  --accent-gold: #D97706;      /* Vurgu / Anma */
  --border-light: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

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: inherit;
  text-decoration: none;
}

/* ==================== HEADER & NAVİGASYON ==================== */
.site-header {
  background-color: var(--bg-primary);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1000;
  width: 100%;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  white-space: nowrap;
  color: #FFFFFF;
  text-decoration: none;
  line-height: 1;
}

.logo svg {
  width: 26px;
  height: 26px;
  fill: var(--accent-emerald);
  flex-shrink: 0;
}

.logo span {
  color: #38BDF8;
}

.header-nav {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-links li {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  line-height: 1;
  padding: 0 11px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  color: #CBD5E1;
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid transparent;
  box-sizing: border-box;
}

.nav-links a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-links a.active {
  color: #38BDF8 !important;
  background-color: rgba(56, 189, 248, 0.12) !important;
  border-color: rgba(56, 189, 248, 0.25) !important;
  font-weight: 600;
}

/* Header Sağ Aksiyon Butonları */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  line-height: 1;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background-color: #059669;
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.15s ease;
  border: 1px solid #059669;
}

.header-btn-notice:hover,
.header-btn-notice.active {
  background-color: #047857;
  border-color: #047857;
  color: #FFFFFF !important;
}

.header-btn-firm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  line-height: 1;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background-color: rgba(245, 158, 11, 0.15);
  color: #FCD34D !important;
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.header-btn-firm:hover,
.header-btn-firm.active {
  background-color: rgba(245, 158, 11, 0.28);
  border-color: rgba(245, 158, 11, 0.5);
  color: #FFFFFF !important;
}

/* Mobil Hamburger Butonu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.2s;
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background-color: #CBD5E1;
  border-radius: 2px;
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  border-color: #38BDF8;
}

.mobile-menu-btn:hover span {
  background-color: #FFFFFF;
}

/* Mobil Menü Çekmecesi & Karartma */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 99998;
  backdrop-filter: blur(2px);
}

.mobile-nav-overlay.open {
  display: block;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  max-width: 85vw;
  height: 100%;
  background-color: #0F172A;
  z-index: 99999;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.5);
  padding: 24px 20px;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.mobile-nav-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: #94A3B8;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.mobile-nav-close:hover {
  color: #FFFFFF;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.mobile-drawer-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: #CBD5E1;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background-color: #1E293B;
  color: #38BDF8;
}

.mobile-drawer-links a.highlight-notice {
  background-color: #0284C7;
  color: #FFFFFF;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

.mobile-drawer-links a.highlight-firm {
  background-color: rgba(245, 158, 11, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-weight: 600;
  text-align: center;
}

/* Canlı Vakit Bildirim Bandı */
.ticker-bar {
  background-color: var(--bg-secondary);
  color: #94A3B8;
  font-size: 13px;
  padding: 8px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ticker-times {
  display: flex;
  gap: 16px;
  color: #E2E8F0;
}

.ticker-times strong {
  color: #38BDF8;
}

/* ==================== ARAMA VE ŞEHİR FİLTRE BÖLÜMÜ ==================== */
.hero-search-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, #1E293B 100%);
  color: #FFFFFF;
  padding: 30px 20px 40px;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
}

.hero-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  color: #94A3B8;
  font-size: 14px;
  margin-bottom: 24px;
}

/* Şehir Hap (Pill) Butonları */
.city-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
  scrollbar-width: thin;
}

.city-pill {
  padding: 6px 16px;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  color: #E2E8F0;
  transition: all 0.2s;
}

.city-pill:hover, .city-pill.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Arama Kutusu Barı */
.search-bar-wrapper {
  display: flex;
  gap: 10px;
  background-color: #FFFFFF;
  padding: 6px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 800px;
}

.search-input-group {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.search-input-group svg {
  width: 20px;
  height: 20px;
  color: #94A3B8;
  margin-right: 8px;
}

.search-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text-main);
}

.search-select {
  border: none;
  border-left: 1px solid var(--border-light);
  padding: 0 16px;
  outline: none;
  background-color: transparent;
  color: var(--text-main);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.search-btn {
  background-color: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-btn:hover {
  background-color: var(--primary-hover);
}

/* ==================== ANA İÇERİK IZGARASI (GRID) & KONTEYNERLER ==================== */
.main-container {
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}

/* Tam Genişlik ve Tek Kolonlu Sayfalar İçin */
.main-container-full,
.main-container.full-width,
.main-full {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 20px;
}

.main-container-narrow,
.main-container.narrow-col {
  display: block !important;
  grid-template-columns: none !important;
  max-width: 860px !important;
  margin: 30px auto;
  padding: 0 20px;
}

/* Sayfa İçi Yan Menülü Düzen */
.content-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-count {
  background-color: #E0F2FE;
  color: #0369A1;
  font-size: 12px;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Vefat Kartları Listesi */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.vefat-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.vefat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.card-age {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.card-city-badge {
  background-color: #F1F5F9;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.card-details {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.card-detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}

.card-detail-item svg {
  width: 16px;
  height: 16px;
  color: #64748B;
  flex-shrink: 0;
}

.prayer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ECFDF5;
  color: #065F46;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-top: 4px;
}

.card-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent-emerald);
  font-weight: 600;
}

.card-link-btn {
  color: var(--primary);
  font-weight: 600;
}

/* ==================== SAĞ SÜTUN WIDGET'LAR ==================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.widget-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  border-bottom: 2px solid #F1F5F9;
  padding-bottom: 8px;
}

/* Tarihte Bugün Ünlüler Kartı */
.memorial-card {
  text-align: center;
}

.memorial-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  background-color: #E2E8F0;
}

.memorial-name {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 2px;
}

.memorial-years {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.memorial-quote {
  font-size: 13px;
  color: #475569;
  font-style: italic;
  line-height: 1.5;
  background-color: #F8FAFC;
  padding: 10px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-gold);
  margin-bottom: 12px;
}

.btn-memorial-more {
  display: block;
  width: 100%;
  text-align: center;
  padding: 8px;
  background-color: var(--bg-secondary);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-memorial-more:hover {
  background-color: var(--bg-primary);
}

/* Cenaze Geri Sayım Widget */
.countdown-box {
  background: linear-gradient(135deg, #065F46 0%, #047857 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}

.countdown-label {
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.countdown-time {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* Cenaze Rehberi Linkleri */
.guide-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.guide-links li a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.guide-links li a:hover {
  background-color: #F1F5F9;
  color: var(--primary);
}

/* ==================== ZENGİN SEO FOOTER ==================== */
.site-footer {
  background-color: var(--bg-primary);
  color: #94A3B8;
  padding: 50px 20px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13.5px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.2px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
  padding: 2px 0;
}

.footer-col ul a:hover {
  color: #38BDF8;
}

.footer-col p a {
  color: #38BDF8;
  text-decoration: none;
}

.footer-col p a:hover {
  text-decoration: underline;
}

.footer-keywords-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyword-tag {
  background-color: var(--bg-secondary);
  color: #CBD5E1;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  text-decoration: none;
  transition: background-color 0.2s;
  display: inline-block;
}

.keyword-tag:hover {
  background-color: #334155;
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}

.footer-bottom a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #FFFFFF;
}

/* Mobil Alt Menü Barı (Sticky Bottom Nav) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 10px;
  z-index: 999;
}

.mobile-nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #94A3B8;
  font-size: 11px;
  font-weight: 600;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item.active {
  color: #38BDF8;
}

/* ==================== RESPONSIVE MEDYA SORGULARI ==================== */
@media (max-width: 1100px) {
  .header-nav {
    display: none !important;
  }
  .mobile-menu-btn {
    display: flex !important;
  }
  .main-container {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .content-with-sidebar {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-top {
    padding: 0 16px;
    height: 56px;
  }
  .logo {
    font-size: 18px;
  }
  .logo svg {
    width: 22px;
    height: 22px;
  }
  .header-btn-firm {
    display: none !important;
  }
  .header-btn-notice {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }
  .search-bar-wrapper {
    flex-direction: column;
  }
  .search-select {
    border-left: none;
    border-top: 1px solid var(--border-light);
    padding: 10px 0;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    display: block;
  }
  body {
    padding-bottom: 60px; /* Mobil alt bar payı */
  }
}
