/* ==========================================================================
   DÜĞÜNCÜBAŞI KÖYÜ RESMİ WEB PORTALI & DÜĞÜNCÜBAŞI YANIMDA
   Modern, Hızlı, Mobil Uyumlu (Responsive) Tasarım Sistemi
   ========================================================================== */

:root {
  /* Renk Paleti - Trakya Doğası (Zümrüt Yeşili) & Ayçiçeği/Başak Altını */
  --primary: #15803d;
  --primary-dark: #14532d;
  --primary-light: #22c55e;
  --primary-soft: rgba(21, 128, 61, 0.1);
  --accent: #eab308;
  --accent-dark: #ca8a04;
  --accent-hover: #d97706;
  --accent-soft: rgba(234, 179, 8, 0.15);
  --gradient-hero: linear-gradient(135deg, #0d3b20 0%, #15803d 62%, #14532d 100%);

  /* Arka Plan & Yüzey Renkleri */
  --bg-main: #f8fafc;
  --bg-alt: #f1f5f9;
  --surface: #ffffff;
  --bg-surface: #ffffff;
  --bg-surface-alt: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.94);
  --border: #e2e8f0;

  /* Metin Renkleri */
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Durum Renkleri */
  --danger: #dc2626;
  --danger-soft: rgba(220, 38, 38, 0.1);
  --info: #0284c7;
  --info-soft: rgba(2, 132, 199, 0.1);
  --purple: #7c3aed;
  --purple-soft: rgba(124, 58, 237, 0.1);

  /* Gölgeler ve Köşe Yuvarlaklıkları */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 4px 12px -2px rgba(15, 23, 42, 0.06);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --container-width: 1280px;
}

/* Karanlık Tema (Dark Mode) */
[data-theme="dark"] {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --primary-light: #4ade80;
  --primary-soft: rgba(34, 197, 94, 0.15);
  --gradient-hero: linear-gradient(135deg, #072213 0%, #0f3d23 60%, #14532d 100%);
  --bg-main: #0b1120;
  --bg-alt: #111827;
  --surface: #1e293b;
  --bg-surface: #1e293b;
  --bg-surface-alt: #0f172a;
  --surface-glass: rgba(15, 23, 42, 0.94);
  --border: #334155;
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* Sıfırlama & Temel Ayarlar */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   ÜST BİLGİ ŞERİDİ (TOPBAR)
   ========================================================================== */
.topbar {
  background: var(--primary-dark);
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 0;
}

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

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.92;
}

.weather-badge {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.firebase-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  cursor: pointer;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
}

.status-dot.connected {
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

/* ==========================================================================
   ANA NAVİGASYON (NAVBAR)
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 8px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--accent);
  background: #fff;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.15;
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: #0f172a;
  font-weight: 700;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   HERO (KARŞILAMA) BÖLÜMÜ
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(circle at 15% 20%, rgba(21, 128, 61, 0.14), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(234, 179, 8, 0.14), transparent 45%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg-main) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(21, 128, 61, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}

.hero-title .highlight {
  color: var(--primary);
  position: relative;
}

.hero-desc {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 2px;
}

/* Hero Sağ Kısım - Mobil Uygulama & Köy Kartı */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-phone-showcase {
  position: relative;
  background: linear-gradient(145deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #ffffff;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
}

.hero-phone-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-phone-header img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fff;
  padding: 2px;
}

.hero-phone-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 16px;
}

.hero-phone-preview img {
  width: 115px;
  height: 224px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}

.hero-phone-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-feature-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ==========================================================================
   SON DAKİKA / DUYURU ŞERİDİ (TICKER)
   ========================================================================== */
.ticker-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: var(--danger);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ticker-content {
  flex: 1;
  overflow: hidden;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* ==========================================================================
   GENEL BÖLÜM STİLLERİ
   ========================================================================== */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

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

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin-top: 6px;
}

/* ==========================================================================
   DUYURULAR, HABERLER, DÜĞÜN & VEFAT İLANLARI
   ========================================================================== */
.announcements-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.search-box {
  position: relative;
  min-width: 260px;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 38px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 16px;
  height: 16px;
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.announcement-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.announcement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.announcement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.announcement-card.type-vefat::before {
  background: #334155;
}

.announcement-card.type-dugun::before {
  background: var(--accent);
}

.announcement-card.type-acil::before {
  background: var(--danger);
}

.announcement-card.type-haber::before {
  background: var(--info);
}

.announcement-card.type-etkinlik::before {
  background: var(--purple);
}

.card-image-wrap {
  margin: -24px -24px 16px -24px;
  height: 195px;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.card-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.02) 0%, rgba(255,255,255,0.09) 50%, rgba(0,0,0,0.02) 100%);
  background-size: 200% 100%;
  animation: cardImgShimmer 1.8s infinite linear;
  pointer-events: none;
  z-index: 1;
}

@keyframes cardImgShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.card-image-wrap img,
.progressive-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.05);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, filter, transform;
  position: relative;
  z-index: 2;
}

.card-image-wrap img.is-loaded,
.progressive-img.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.announcement-card:hover .card-image-wrap img.is-loaded {
  transform: scale(1.04);
  transition: transform 0.35s ease;
}

.event-info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.event-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.timetable-image-box {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.timetable-image-box img {
  max-height: 460px;
  width: auto;
  margin: 12px auto 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.badge-duyuru {
  background: var(--primary-soft);
  color: var(--primary);
}

.badge-haber {
  background: var(--info-soft);
  color: var(--info);
}

.badge-etkinlik {
  background: var(--purple-soft);
  color: var(--purple);
}

.badge-dugun {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.badge-vefat {
  background: rgba(51, 65, 85, 0.15);
  color: var(--text-secondary);
}

.badge-acil {
  background: var(--danger-soft);
  color: var(--danger);
}

.card-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
}

.card-desc {
  color: var(--text-secondary);
  font-size: 0.93rem;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
}

.card-author {
  color: var(--text-muted);
  font-weight: 600;
}

.card-read-more {
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   DÜĞÜNCÜBAŞI YANIMDA MOBİL UYGULAMA BÖLÜMÜ
   ========================================================================== */
.app-showcase {
  background: linear-gradient(135deg, #0f291e 0%, #14532d 55%, #166534 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.app-showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.app-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(234, 179, 8, 0.2);
  border: 1px solid rgba(234, 179, 8, 0.45);
  color: #fde047;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.app-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}

.app-desc {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  margin-bottom: 24px;
}

.app-screen-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.screen-tab-btn {
  text-align: left;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.screen-tab-btn:hover, .screen-tab-btn.active {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.screen-tab-title {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.screen-tab-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.download-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

.download-btn.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.download-btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.download-btn-small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.8;
}

.app-mockup-viewer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone-frame {
  background: #0f172a;
  padding: 12px;
  border-radius: 36px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  max-width: 280px;
  width: 100%;
}

.phone-frame img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  transition: opacity 0.25s ease;
}

.phone-caption {
  margin-top: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-align: center;
}

/* ==========================================================================
   ULAŞIM SAATLERİ (DÜĞÜNCÜBAŞI ↔ LÜLEBURGAZ)
   ========================================================================== */
.transport-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.transport-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.transport-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.transport-route {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 800;
}

.next-bus-banner {
  background: var(--primary-soft);
  border: 1px solid rgba(21, 128, 61, 0.25);
  color: var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 600;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 10px;
}

.time-slot {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.time-slot.next-active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.3);
}

/* ==========================================================================
   KÖY HAKKINDA, TARİHÇE VE NÜFUS GRAFİĞİ
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.info-item {
  padding: 12px 14px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.info-item-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.info-item-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 2px;
}

/* Yıllara Göre Nüfus Çubuk Grafiği */
.pop-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
}

.pop-row {
  display: grid;
  grid-template-columns: 52px 1fr 58px;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.pop-year {
  font-weight: 700;
  color: var(--text-secondary);
}

.pop-bar-wrap {
  height: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pop-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}

.pop-count {
  text-align: right;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   KÖY REHBERİ, ÖNEMLİ TELEFONLAR & HARİTA
   ========================================================================== */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.directory-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.directory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.directory-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.directory-info h4 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 2px;
}

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

.call-badge {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
}

.map-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 0;
}

.map-footer {
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   MODAL (DUYURU DETAY & FIREBASE YÖNETİM PANELİ)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-main);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   ALT BİLGİ (FOOTER)
   ========================================================================== */
.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   RESPONSIVE (MOBİL UYUMLULUK)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .app-showcase-grid,
  .transport-wrapper,
  .about-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

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

@media (max-width: 640px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-showcase {
    padding: 32px 20px;
  }

  .app-screen-tabs {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   ALT SAYFA BAŞLIK ALANI (PAGE HERO) & ANASAYFA HIZLI GEÇİŞ KARTLARI
   ========================================================================== */
.page-hero {
  background: var(--gradient-hero);
  color: #ffffff;
  padding: 54px 0 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.page-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 12px;
}

.page-breadcrumb a:hover {
  color: var(--accent);
}

.page-hero-title {
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.page-hero-desc {
  color: rgba(255, 255, 255, 0.86);
  max-width: 680px;
  font-size: 1.02rem;
}

.quick-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.quick-portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.quick-portal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.quick-portal-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.quick-portal-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-main);
}

.quick-portal-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.quick-portal-link {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

/* ==========================================================================
   GÜNÜN ETKİNLİĞİ OTOMATİK AÇILIŞ POP-UP MODALI
   ========================================================================== */
.event-popup-box {
  background: var(--surface);
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalFadeIn 0.28s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.event-popup-top {
  background: linear-gradient(135deg, #0f3d23 0%, #1b6b3a 60%, #d97706 100%);
  color: #ffffff;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.event-popup-top-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
}

.event-popup-close {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.event-popup-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.event-popup-body {
  padding: 24px;
}

.event-popup-img-wrap {
  width: 100%;
  max-height: 250px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface-alt);
}

.event-popup-img-wrap img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.event-popup-dontshow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 18px 0;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.event-popup-dontshow input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

.event-popup-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ==========================================================================
   OTURUM AÇMA (AUTH) & KULLANICI PROFİL BİLEŞENLERİ
   ========================================================================== */
.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-surface-alt);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.auth-nav-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.auth-nav-btn.logged-in {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.auth-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-surface-alt);
  padding: 5px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  border: 1px solid var(--border);
}

.auth-tab-btn {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.auth-alert {
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 14px;
  display: none;
}

.auth-alert.error {
  display: block;
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.auth-alert.success {
  display: block;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.user-role-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.role-pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--primary-soft);
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ==========================================================================
   UYGULAMA İLE BİREBİR UYUMLU HABER / DUYURU / ETKİNLİK EKLEME EKRANLARI
   ========================================================================== */
.app-publish-modal-box {
  max-width: 640px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.publish-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--bg-surface-alt);
  padding: 6px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.publish-type-tab {
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.publish-type-tab.active {
  background: var(--bg-surface);
  color: var(--accent-hover);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.photo-picker-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.photo-picker-grid.single {
  grid-template-columns: 1fr;
}

.photo-picker-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #eab308;
  background: rgba(234, 179, 8, 0.08);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
}

.photo-picker-btn:hover {
  background: rgba(234, 179, 8, 0.18);
}

.photo-previews-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.photo-preview-thumb {
  position: relative;
  width: 84px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.photo-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-preview-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

.app-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.app-switch-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-switch-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-switch-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.app-toggle {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.app-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.app-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(148, 163, 184, 0.45);
  transition: 0.25s;
  border-radius: 999px;
}

.app-toggle-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s;
  border-radius: 50%;
}

.app-toggle input:checked + .app-toggle-slider {
  background-color: #eab308;
}

.app-toggle input:checked + .app-toggle-slider::before {
  transform: translateX(22px);
}

.btn-app-gold {
  width: 100%;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: #f5c518;
  color: #111827;
  font-weight: 800;
  font-size: 0.96rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(245, 197, 24, 0.35);
}

.btn-app-gold:hover {
  background: #eab308;
  transform: translateY(-1px);
}

.card-staff-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.staff-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.staff-icon-btn.edit:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.12);
}

.staff-icon-btn.delete:hover {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* ==========================================================================
   YÖNETİM VE DÜZENLEME PANELİ (yonetim.html) STİLLERİ
   ========================================================================== */
.admin-unauth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.admin-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: var(--transition);
}

.admin-stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.admin-stat-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.admin-stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.admin-stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.admin-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--bg-alt);
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.admin-tab-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab-btn:hover {
  color: var(--primary);
  background: var(--surface);
}

.admin-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(21, 128, 61, 0.25);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 14px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

.admin-table tr:hover td {
  background: rgba(21, 128, 61, 0.03);
}

.role-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  margin: 2px;
  user-select: none;
  transition: var(--transition);
}

.role-toggle-chip.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.role-toggle-chip.active-admin {
  background: rgba(220, 38, 38, 0.12);
  border-color: #dc2626;
  color: #dc2626;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
}

.status-pending,
.status-in-progress {
  background: rgba(234, 179, 8, 0.15);
  color: #b45309;
  border: 1px solid rgba(234, 179, 8, 0.25);
}

.status-new {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.status-resolved {
  background: rgba(21, 128, 61, 0.14);
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.log-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.log-item-row:last-child {
  border-bottom: none;
}

.feedback-float-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 950;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition);
}

.feedback-float-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .route-map-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   MOBİL TAŞMA DÜZELTMELERİ (yatay kaydırmayı önler)
   ========================================================================== */
html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

img, video, iframe, svg, canvas, table {
  max-width: 100%;
}

.container > *,
[class*="-grid"] > *,
.transport-wrapper > *,
.about-grid > *,
.hero-grid > * {
  min-width: 0;
}

.announcements-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

.directory-list {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.announcements-grid *,
.page-hero *,
.footer-grid * {
  overflow-wrap: anywhere;
}

#map, .leaflet-container {
  max-width: 100%;
}

@media (max-width: 640px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .info-list,
  .guide-grid,
  .photo-picker-grid,
  .publish-type-tabs {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .feedback-float-btn {
    right: 14px;
    bottom: 14px;
  }

  .modal,
  .modal-content,
  .modal-box {
    max-width: calc(100vw - 24px);
  }
}

.form-row-2 > * { min-width: 0; }
@media (max-width: 480px) {
  .form-row-2 { grid-template-columns: 1fr !important; }
}

/* Üst çubuktaki Firebase durum göstergesi gizlendi */
.topbar-right { display: none; }
.firebase-status-pill { display: none !important; }

/* ==========================================================================
   MOBİL NAVBAR DÜZELTMESİ (menü, oturum aç ve tema düğmeleri sığsın)
   ========================================================================== */
@media (max-width: 992px) {
  .navbar-inner {
    min-height: 64px;
    gap: 8px;
  }

  .brand {
    flex-shrink: 1;
    min-width: 0;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-title {
    font-size: 0.92rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-subtitle {
    display: none;
  }

  .nav-actions {
    gap: 6px;
    margin-left: auto;
  }

  .nav-actions > .btn-primary {
    display: none;
  }

  .nav-links {
    top: 100%;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }

  .nav-link {
    width: 100%;
    padding: 12px 14px;
  }

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

@media (max-width: 480px) {
  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 0.8rem;
  }

  .auth-nav-btn {
    padding: 7px 10px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 360px) {
  .brand-text {
    display: none;
  }
}

/* ==========================================================================
   GENİŞ DETAY PENCERESİ, FOTOĞRAF GALERİSİ, BEĞENİ / YORUM
   ========================================================================== */
.modal-box.detail-wide {
  max-width: 980px;
  max-height: 94vh;
  padding: 28px 32px;
}

#detailModalImage {
  opacity: 0;
  filter: blur(14px);
  transform: scale(1.02);
  transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              filter 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, filter, transform;
}
#detailModalImage.is-loaded {
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
}

.modal-box.detail-wide #detailModalImage {
  max-height: 62vh !important;
  object-fit: contain !important;
  background: #0f172a;
}

.modal-box.detail-wide #detailModalContent {
  font-size: 1.02rem;
}

.detail-gallery-arrow {
  position: absolute;
  top: calc(50% - 40px);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.detail-gallery-arrow.prev { left: 10px; }
.detail-gallery-arrow.next { right: 10px; }

.detail-gallery-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: var(--bg-surface-alt, var(--bg-alt));
}
.detail-gallery-thumbs img {
  width: 76px;
  height: 56px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid transparent;
  opacity: 0.7;
  cursor: pointer;
}
.detail-gallery-thumbs img.active {
  border-color: var(--primary);
  opacity: 1;
}

/* ==========================================================================
   RESİM DETAY / TAM EKRAN BÜYÜTÜCÜ (LIGHTBOX)
   ========================================================================== */
.image-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  user-select: none;
}
.image-lightbox-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-main-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 84vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-main-img {
  max-width: 92vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  transition: transform 0.2s ease;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  z-index: 100000;
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}
.lightbox-close-btn {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.4rem;
}
.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.08);
}
.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }
.lightbox-counter {
  position: absolute;
  top: 24px;
  left: 24px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.5);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.lightbox-hint {
  position: absolute;
  bottom: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  pointer-events: none;
}
.gallery-zoomable {
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}
.gallery-zoomable:hover {
  opacity: 0.95;
}

.detail-social {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.detail-social-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.social-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}
.social-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}
.social-count {
  margin-left: auto;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 600;
}
.detail-comments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 12px;
}
.comment-item {
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  margin-bottom: 3px;
}
.comment-head span { color: var(--text-muted); }
.comment-text {
  font-size: 0.92rem;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.comment-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 6px 0;
}
.comment-form {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.comment-form textarea {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font: inherit;
  resize: vertical;
}

@media (max-width: 640px) {
  .modal-backdrop:has(.detail-wide) {
    padding: 0;
  }
  .modal-box.detail-wide {
    max-width: 100%;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
    border: none;
    padding: 16px;
  }
  .modal-box.detail-wide #detailModalImage {
    max-height: 45vh !important;
  }
  .detail-gallery-thumbs img {
    width: 62px;
    height: 46px;
  }
}

/* Haber kartı beğen / kaydet düğmeleri */
.card-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: var(--transition);
}
.card-social-btn:hover { border-color: var(--primary); }
.card-social-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

.comment-del-btn { border: none; background: transparent; cursor: pointer; font-size: 0.9rem; padding: 0 2px; }
.comment-del-btn:hover { transform: scale(1.15); }

/* ==========================================================================
   SADE TEMA (override) - gölge, gradyan ve süslemeleri azaltır
   ========================================================================== */
:root {
  --gradient-hero: var(--primary-dark);
  --shadow-sm: none;
  --shadow-md: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 2px 8px rgba(15, 23, 42, 0.08);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --bg-alt: var(--bg-main);
}
[data-theme="dark"] { --gradient-hero: #0f3d23; --bg-alt: var(--bg-main); --shadow-md: none; --shadow-lg: none; }

body { line-height: 1.65; }

/* Üst şerit: sadece konum/hava durumu, teknik Firebase durumu gizli */
.topbar { background: transparent; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.topbar .firebase-status-pill { display: none; }
.weather-badge { background: transparent; padding: 0; }

.navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
.navbar-inner { min-height: 64px; }
.brand-logo { border: 1px solid var(--border); }
.brand-subtitle { display: none; }

.btn-primary { box-shadow: none; }
.btn:hover, .btn-primary:hover, .btn-accent:hover { transform: none; }

/* Hero: düz arka plan, daha az boşluk */
.hero { background: var(--bg-main); padding: 48px 0 40px; border-bottom: 1px solid var(--border); }
.hero-badge { display: none; }
.hero-title { font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* Kartlar: düz, ince kenarlıklı */
.stat-card, .quick-portal-card, .announcements-grid > *, .download-btn {
  box-shadow: none !important;
}
.quick-portal-card:hover, .announcements-grid > *:hover { transform: none !important; border-color: var(--primary); }

/* Uygulama bölümü ve diğer gradyanlar düz renk */
.app-showcase { background: var(--primary-dark) !important; box-shadow: none !important; }

.section { padding-top: 48px; padding-bottom: 48px; }
.ticker-bar { box-shadow: none; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   HABER MAKALE SAYFASI
   ========================================================================== */
[hidden] { display: none !important; }
.article-container { max-width: 760px; }
.article-back { display: inline-block; margin-bottom: 18px; font-size: 0.9rem; font-weight: 600; color: var(--primary); text-decoration: none; }
.article-back:hover { text-decoration: underline; }
.article-title { font-size: clamp(1.7rem, 4vw, 2.5rem); line-height: 1.2; font-weight: 800; margin-bottom: 18px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--text-muted); padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.article-avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; object-fit: cover; border: 1px solid var(--border); }
.article-author { font-weight: 700; color: var(--text-primary, inherit); }
.article-dot { opacity: 0.6; }
.article-hero { position: relative; margin-bottom: 26px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface-alt, var(--bg-alt)); min-height: 220px; }
.article-hero > img#articleHeroImg { width: 100%; max-height: 460px; object-fit: cover; display: block; opacity: 0; filter: blur(14px); transform: scale(1.03); transition: opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.85s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, filter, transform; }
.article-hero > img#articleHeroImg.is-loaded { opacity: 1; filter: blur(0); transform: scale(1); }
.article-body { font-size: 1.08rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 32px; overflow-wrap: anywhere; }
.article-body p { margin-bottom: 1.1em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.article-body a,
.article-link,
#detailModalContent a {
  color: var(--primary, #15803d);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.article-body a:hover,
.article-link:hover,
#detailModalContent a:hover {
  opacity: 0.8;
  color: #166534;
}
.article-social { padding-top: 18px; border-top: 1px solid var(--border); }
.article-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }

/* Profil fotoğrafı */
.auth-avatar { overflow: hidden; flex-shrink: 0; }
.auth-avatar .avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-upload-btn { font-size: 0.72rem; font-weight: 700; color: var(--primary); cursor: pointer; padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-surface); }
.avatar-upload-btn:hover { border-color: var(--primary); }
.avatar-remove-btn { font-size: 0.7rem; color: var(--text-muted); background: none; border: none; cursor: pointer; text-decoration: underline; }
.comment-head { display: flex; align-items: center; gap: 8px; }
.comment-head > span:last-child { margin-left: auto; }
.comment-avatar { width: 28px; height: 28px; }

/* Diğer haberler */
.more-news { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.more-news-title { font-size: 1.3rem; font-weight: 800; margin-bottom: 16px; }
.more-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.more-news-card { display: flex; flex-direction: column; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.more-news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.more-news-card img { width: 100%; height: 130px; object-fit: cover; display: block; }
.more-news-info { padding: 12px 14px 14px; }
.more-news-info h3 { font-size: 0.98rem; font-weight: 700; line-height: 1.35; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.more-news-date { font-size: 0.78rem; color: var(--text-muted); }

/* ==========================================================================
   14. TAHMİNİ CANLI OTOBÜS TAKİBİ STİLLERİ
   ========================================================================== */
@keyframes busRadarPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0.75); }
  70% { box-shadow: 0 0 0 16px rgba(22, 101, 52, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 101, 52, 0); }
}

@keyframes busRadarPulseBlue {
  0% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.75); }
  70% { box-shadow: 0 0 0 16px rgba(2, 132, 199, 0); }
  100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

.live-bus-marker-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-bus-pulse-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 3px solid #fff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.live-bus-pulse-circle.village-bus {
  background: linear-gradient(135deg, #15803d, #166534);
  animation: busRadarPulseGreen 2s infinite;
}

.live-bus-pulse-circle.terminal-bus {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  animation: busRadarPulseBlue 2s infinite;
}

.live-bus-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #fbbf24;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ==========================================================================
   15. HESABIM SAYFASI (hesabim.html) & GOOGLE / TELEFON GİRİŞ STİLLERİ
   ========================================================================== */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-google:hover {
  border-color: #4285f4;
  background: var(--bg-surface-alt);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-google:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.account-unauth-card {
  max-width: 580px;
  margin: 16px auto;
  padding: 40px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.account-unauth-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.account-unauth-card h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.account-unauth-card p {
  font-size: 0.94rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  line-height: 1.6;
}

.account-unauth-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 360px;
  margin: 0 auto;
}

.account-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 26px;
  align-items: start;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 90px;
}

.account-user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.account-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.account-main-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border: 3px solid var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.account-avatar-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.account-user-name {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.account-user-email {
  font-size: 0.84rem;
  color: var(--text-muted);
  word-break: break-all;
}

.account-user-phone {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}

.account-connected-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.conn-mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.conn-mini-pill.active {
  background: rgba(22, 163, 74, 0.12);
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
}

.account-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-main);
}

.account-nav-btn:hover {
  background: var(--bg-surface-alt);
}

.account-nav-btn.active {
  background: var(--primary-soft);
  border-color: rgba(21, 128, 61, 0.3);
  color: var(--primary);
}

.account-nav-icon {
  font-size: 1.25rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--bg-surface-alt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-nav-btn.active .account-nav-icon {
  background: var(--primary);
  color: #fff;
}

.account-nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-nav-text strong {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
}

.account-nav-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.account-logout-btn {
  width: 100%;
  justify-content: center;
  color: #dc2626 !important;
  border-color: rgba(220, 38, 38, 0.3) !important;
}

.account-logout-btn:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

.account-main-content {
  min-width: 0;
}

.account-tab-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}

.account-tab-panel.active {
  display: block;
}

.account-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.account-panel-header h2 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.account-panel-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.account-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.account-mini-stat {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-mini-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted);
}

.account-mini-val {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
}

.account-form-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
}

.account-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.provider-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.provider-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  flex-wrap: wrap;
}

.provider-card.connected-card {
  border-color: rgba(22, 163, 74, 0.4);
  background: rgba(22, 163, 74, 0.04);
}

.provider-card-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}

.provider-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.provider-info {
  min-width: 0;
}

.provider-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.provider-title-row h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-main);
}

.provider-info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.provider-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.provider-status-badge.connected {
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(22, 163, 74, 0.35);
  color: #15803d;
}

.provider-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.phone-link-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.phone-input-row {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.phone-action-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.phone-otp-box {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1.5px solid var(--primary);
}

.account-requests-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-request-item {
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-alt);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.account-danger-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(220, 38, 38, 0.06);
  border: 1px solid rgba(220, 38, 38, 0.3);
  flex-wrap: wrap;
}

.account-danger-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  color: #dc2626;
  margin-bottom: 4px;
}

.account-danger-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.5;
}

@media (max-width: 920px) {
  .account-layout {
    grid-template-columns: 1fr;
  }
  .account-sidebar {
    position: static;
  }
  .account-stats-row,
  .account-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   16. İSKELET EKRAN (SKELETON LOADING SHIMMER EFFECT)
   ========================================================================== */
@keyframes skeletonWave {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-surface-alt) 0%,
    rgba(226, 232, 240, 0.95) 35%,
    var(--bg-surface-alt) 70%
  );
  background-size: 300% 100%;
  animation: skeletonWave 1.6s ease-in-out infinite;
  border-radius: var(--radius-sm);
  display: block;
}

[data-theme="dark"] .skeleton-shimmer {
  background: linear-gradient(
    90deg,
    #1e293b 0%,
    #334155 35%,
    #1e293b 70%
  );
  background-size: 300% 100%;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  user-select: none;
  min-height: 380px;
}

.skeleton-card-img {
  width: 100%;
  height: 180px;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

.skeleton-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.skeleton-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skeleton-badge {
  width: 78px;
  height: 22px;
  border-radius: 999px;
}

.skeleton-date {
  width: 90px;
  height: 14px;
}

.skeleton-title-lg {
  width: 92%;
  height: 20px;
  border-radius: 6px;
}

.skeleton-title-sm {
  width: 65%;
  height: 20px;
  border-radius: 6px;
}

.skeleton-line {
  width: 100%;
  height: 13px;
  border-radius: 4px;
}

.skeleton-line.w-80 { width: 80%; }
.skeleton-line.w-60 { width: 60%; }
.skeleton-line.w-40 { width: 40%; }

.skeleton-card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skeleton-author-line {
  width: 110px;
  height: 14px;
}

.skeleton-btn-sm {
  width: 75px;
  height: 26px;
  border-radius: 6px;
}

.skeleton-article {
  max-width: 760px;
  margin: 0 auto;
  pointer-events: none;
  user-select: none;
}



/* ==========================================================================
   ANASAYFA YENİLEME (hero fotoğraf alanı, cam kartlar, animasyonlar)
   Köy fotoğrafı: img/koy.jpg dosyası eklenince otomatik kullanılır.
   ========================================================================== */
body[data-page="anasayfa"] .hero {
  background:
    linear-gradient(115deg, rgba(7, 34, 19, 0.92) 0%, rgba(13, 59, 32, 0.80) 55%, rgba(20, 83, 45, 0.55) 100%),
    url('../img/koy.jpg') center / cover no-repeat,
    var(--gradient-hero);
  border-bottom: none;
  padding: 88px 0 80px;
  color: #fff;
}
body[data-page="anasayfa"] .hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px; height: 48px;
  background: linear-gradient(180deg, transparent, var(--bg-main));
  pointer-events: none;
}
body[data-page="anasayfa"] .hero-badge {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.14);
  color: #fef9c3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body[data-page="anasayfa"] .hero-title { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
body[data-page="anasayfa"] .hero-title .highlight {
  background: linear-gradient(90deg, #fde047, #facc15 60%, #fbbf24);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
body[data-page="anasayfa"] .hero-desc { color: rgba(255, 255, 255, 0.9); }
body[data-page="anasayfa"] .hero-desc strong { color: #fff; }
body[data-page="anasayfa"] .btn-outline { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
body[data-page="anasayfa"] .btn-outline:hover { background: rgba(255,255,255,.2); border-color: #fff; }
body[data-page="anasayfa"] .btn { border-radius: var(--radius-full); padding-left: 22px; padding-right: 22px; }
body[data-page="anasayfa"] .btn:hover { transform: translateY(-2px) !important; }

body[data-page="anasayfa"] .stat-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
}
body[data-page="anasayfa"] .stat-value { color: #fde047; }
body[data-page="anasayfa"] .stat-label { color: rgba(255, 255, 255, 0.82); }

body[data-page="anasayfa"] .hero-phone-showcase {
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.5) !important;
  transform: rotate(1.5deg);
  transition: transform .4s ease;
}
body[data-page="anasayfa"] .hero-phone-showcase:hover { transform: rotate(0deg) translateY(-4px); }

/* Bölüm başlıkları */
body[data-page="anasayfa"] .section-tag {
  background: var(--primary-soft); color: var(--primary);
  padding: 4px 12px; border-radius: var(--radius-full);
  display: inline-block; letter-spacing: .06em;
}
body[data-page="anasayfa"] .section-title { letter-spacing: -0.02em; }

/* Kartlar */
body[data-page="anasayfa"] .quick-portal-card,
body[data-page="anasayfa"] .announcements-grid > * {
  border-radius: var(--radius-lg);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body[data-page="anasayfa"] .quick-portal-card { position: relative; overflow: hidden; }
body[data-page="anasayfa"] .quick-portal-card::before {
  content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
body[data-page="anasayfa"] .quick-portal-card:hover::before { transform: scaleX(1); }
body[data-page="anasayfa"] .quick-portal-card:hover,
body[data-page="anasayfa"] .announcements-grid > *:hover {
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: var(--primary);
}
body[data-page="anasayfa"] .quick-portal-icon { transition: transform .3s ease; }
body[data-page="anasayfa"] .quick-portal-card:hover .quick-portal-icon { transform: scale(1.15) rotate(-6deg); }

/* Giriş animasyonları */
@keyframes homeFadeUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
body[data-page="anasayfa"] .hero-content > * { animation: homeFadeUp .7s ease both; }
body[data-page="anasayfa"] .hero-content > *:nth-child(2) { animation-delay: .08s; }
body[data-page="anasayfa"] .hero-content > *:nth-child(3) { animation-delay: .16s; }
body[data-page="anasayfa"] .hero-content > *:nth-child(4) { animation-delay: .24s; }
body[data-page="anasayfa"] .hero-content > *:nth-child(5) { animation-delay: .32s; }
body[data-page="anasayfa"] .quick-portal-card { animation: homeFadeUp .6s ease both; }
body[data-page="anasayfa"] .quick-portal-card:nth-child(2) { animation-delay: .06s; }
body[data-page="anasayfa"] .quick-portal-card:nth-child(3) { animation-delay: .12s; }
body[data-page="anasayfa"] .quick-portal-card:nth-child(4) { animation-delay: .18s; }
body[data-page="anasayfa"] .quick-portal-card:nth-child(5) { animation-delay: .24s; }
body[data-page="anasayfa"] .quick-portal-card:nth-child(6) { animation-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  body[data-page="anasayfa"] * { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) {
  body[data-page="anasayfa"] .hero { padding: 56px 0 52px; }
  body[data-page="anasayfa"] .hero-phone-showcase { transform: none; }
}
/* Mağaza düğmeleri (Google Play / App Store) */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff !important; text-decoration: none;
  padding: 10px 20px 10px 16px; min-width: 190px;
  border: 1.5px solid rgba(255, 255, 255, 0.55); border-radius: 12px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.store-badge:hover { transform: translateY(-3px); border-color: #fff; box-shadow: 0 10px 24px -8px rgba(0,0,0,.5); }
.store-badge svg { flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge-text small { font-size: .62rem; font-weight: 600; letter-spacing: .06em; opacity: .85; }
.store-badge-text strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
/* Harici bağlantı görünümü (uygulama indirme) */
.download-cards { flex-direction: column; align-items: flex-start; gap: 10px; }
.external-link { color: #fde047; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.external-link:hover { color: #fff; }
/* Mağaza rozetleri: henüz yayında değil, tıklanamaz */
.store-badges-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge-disabled { cursor: not-allowed; opacity: .85; }
.store-badge-disabled:hover { transform: none; box-shadow: none; border-color: rgba(255,255,255,.55); }
.external-download-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .92rem; color: rgba(255,255,255,.85); }
.external-download-row > span { font-weight: 600; }

/* ==========================================================================
   TREPAŞ ELEKTRİK BORÇ SORGULAMA BÖLÜMÜ & EKRANI
   ========================================================================== */
.trepas-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 18px;
}

.trepas-source-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.08), rgba(21, 128, 61, 0.08));
  border: 1px solid rgba(234, 179, 8, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.trepas-source-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.trepas-source-content {
  flex: 1;
}

.trepas-source-title {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trepas-source-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.trepas-source-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.trepas-source-url {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trepas-source-url:hover {
  color: #d97706;
}

[data-theme="dark"] .trepas-source-url {
  color: #facc15;
}

.trepas-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 960px) {
  .trepas-grid {
    grid-template-columns: 1fr;
  }
}

.trepas-guide-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.trepas-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.trepas-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trepas-step-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.trepas-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.trepas-step-item strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.trepas-step-item p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.trepas-contacts-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

@media (max-width: 520px) {
  .trepas-contacts-card {
    grid-template-columns: 1fr;
  }
}

.trepas-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.trepas-contact-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.trepas-contact-item strong {
  display: block;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.2;
}

.trepas-contact-item span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.trepas-contact-item a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.trepas-contact-item a:hover {
  text-decoration: underline;
}

.trepas-card-note {
  font-size: 0.84rem;
  color: var(--text-muted);
  background: rgba(2, 132, 199, 0.08);
  border: 1px dashed rgba(2, 132, 199, 0.35);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  line-height: 1.5;
}

.trepas-card-note a {
  color: var(--info);
  font-weight: 700;
  text-decoration: underline;
}

/* Canlı Iframe Ekranı Kartı */
.trepas-iframe-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .trepas-iframe-card {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.trepas-iframe-header {
  background: #0f172a;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trepas-iframe-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.trepas-iframe-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.trepas-iframe-dots .dot-r { background: #ef4444; }
.trepas-iframe-dots .dot-y { background: #f59e0b; }
.trepas-iframe-dots .dot-g { background: #10b981; }

.trepas-iframe-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trepas-iframe-title .ssl-lock {
  font-size: 0.9rem;
}

.trepas-reload-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.trepas-reload-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.03);
}

.trepas-iframe-body {
  position: relative;
  width: 100%;
  min-height: 500px;
  background: #ffffff;
}

.trepas-iframe-element {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
  background: #ffffff;
}

.trepas-iframe-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
}

.trepas-iframe-footer a {
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
}

/* TREPAŞ Logo ve Marka Öğeleri */
.trepas-header-brand {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 768px) {
  .trepas-header-brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

.trepas-brand-logo-box {
  background: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trepas-brand-img {
  height: 52px;
  max-width: 170px;
  object-fit: contain;
  display: block;
}

.trepas-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(234, 179, 8, 0.15);
  border: 1px solid rgba(234, 179, 8, 0.35);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 6px;
}

[data-theme="dark"] .trepas-brand-badge {
  color: #facc15;
  background: rgba(234, 179, 8, 0.2);
}

.trepas-brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.trepas-brand-sub {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.trepas-bar-logo {
  height: 22px;
  max-width: 75px;
  object-fit: contain;
  background: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

.nav-trepas-tag {
  background: rgba(234, 179, 8, 0.2);
  color: #ca8a04;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
  margin-left: 3px;
}


/* ===== YORUM YANITLARI & BEĞENİ ===== */
.comment-actions { display: flex; gap: 6px; margin-top: 6px; }
.comment-act-btn {
  border: none; background: transparent; cursor: pointer; font: inherit; font-size: 0.8rem;
  color: var(--text-muted); padding: 3px 8px; border-radius: 999px; transition: background .15s ease, color .15s ease;
}
.comment-act-btn:hover { background: var(--primary-soft); color: var(--primary); }
.comment-act-btn.active { color: var(--danger); }
.comment-act-btn:disabled { opacity: .6; cursor: wait; }
.comment-replies {
  margin: 6px 0 4px 18px; padding-left: 12px; border-left: 2px solid var(--border);
  display: flex; flex-direction: column; gap: 8px;
}
.comment-item.comment-reply { background: var(--surface); }
.reply-indicator {
  display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-secondary);
  background: var(--primary-soft); border-radius: 10px; padding: 6px 12px; margin-bottom: 8px;
}
.reply-indicator span { font-weight: 700; color: var(--primary); }
.reply-cancel-btn { margin-left: auto; border: none; background: transparent; cursor: pointer; color: var(--text-muted); font-size: 0.9rem; }
.reply-cancel-btn:hover { color: var(--danger); }

/* ==========================================================================
   LÜLEBURGAZ BELEDİYESİ TARZI KURUMSAL PORTAL ARAYÜZÜ
   Ferah beyaz yüzeyler, kurumsal zümrüt/lacivert & altın vurgular
   ========================================================================== */
:root {
  --civic-ink: #042b53;
  --civic-emerald: #0d4a2b;
  --civic-shadow-sm: 0 2px 10px rgba(4, 43, 83, 0.05);
  --civic-shadow-md: 0 10px 28px -6px rgba(4, 43, 83, 0.10), 0 4px 10px -4px rgba(4, 43, 83, 0.05);
  --civic-shadow-lg: 0 20px 44px -10px rgba(4, 43, 83, 0.16);
}
[data-theme="dark"] {
  --civic-ink: #e2e8f0;
  --civic-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --civic-shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.4);
  --civic-shadow-lg: 0 20px 44px -10px rgba(0, 0, 0, 0.5);
}

/* Üst Bilgi Şeridi */
.topbar {
  background: #07281a;
  color: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
}
.weather-badge {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Kurumsal Sticky Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--civic-shadow-sm);
}
[data-theme="dark"] .navbar {
  background: rgba(15, 23, 42, 0.94);
}
.navbar-inner { min-height: 74px; }
.brand-title { color: var(--civic-ink); letter-spacing: 0.01em; }
.brand-subtitle { display: block; color: var(--text-muted); font-size: 0.74rem; }
.nav-link {
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}
.nav-link.active {
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
}

/* Güncel Duyuru Şeridi */
.ticker-bar {
  background: #f0fdf4;
  border-bottom: 1px solid #dcfce7;
}
[data-theme="dark"] .ticker-bar {
  background: #0f291e;
  border-bottom-color: rgba(34, 197, 94, 0.18);
}
.ticker-label {
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 4px 12px;
}

/* Kurumsal Hero Vitrini (Lüleburgaz tarzı derin fon + net kartlar) */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  color: #fff;
  border-bottom: none;
  background:
    linear-gradient(125deg, rgba(6, 38, 24, 0.93) 0%, rgba(15, 76, 46, 0.86) 55%, rgba(4, 43, 83, 0.90) 100%),
    url("../img/koy.jpg") center/cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 4px;
  background: linear-gradient(90deg, #15803d 0%, #eab308 50%, #042b53 100%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, 0.14);
  border: 1px solid rgba(250, 204, 21, 0.35);
  color: #fde047;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero-title {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
}
.hero-title .highlight {
  background: linear-gradient(90deg, #fde047, #eab308);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.04rem;
}
.hero .btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
}
.hero .stat-card {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  color: #fff;
}
.hero .stat-value { color: #fde047; }
.hero .stat-label { color: rgba(255, 255, 255, 0.8); }

.hero-phone-showcase {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
  color: #fff;
}

/* Bölüm Başlıkları */
.section-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(21, 128, 61, 0.1);
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.section-title {
  color: var(--civic-ink);
  letter-spacing: -0.02em;
}

/* E-Hizmetler / Hızlı Erişim Kartları */
.quick-portal-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--civic-shadow-sm) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}
.quick-portal-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #eab308);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.quick-portal-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--civic-shadow-md) !important;
  border-color: rgba(21, 128, 61, 0.35);
}
.quick-portal-card:hover::before { opacity: 1; }
.quick-portal-title { color: var(--civic-ink); }

/* Haber ve Duyuru Kartları */
.announcements-grid > .announcement-card {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--civic-shadow-sm) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}
.announcements-grid > .announcement-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--civic-shadow-md) !important;
  border-color: rgba(21, 128, 61, 0.35);
}

/* Mobil Uygulama Vitrini */
.app-showcase {
  border-radius: 24px;
  background: linear-gradient(135deg, #07281a 0%, #14532d 55%, #042b53 100%) !important;
  box-shadow: var(--civic-shadow-lg) !important;
}

/* Kurumsal Footer */
.footer {
  background: #061826;
  border-top: 3px solid #eab308;
}

/* ===== ANASAYFA HAVA DURUMU + DUYURU & ETKİNLİK MERKEZİ ===== */
.home-overview-grid {
  display: grid;
  grid-template-columns: minmax(290px, 1fr) minmax(0, 1.55fr);
  gap: 22px;
  align-items: stretch;
}
.home-weather-card {
  border-radius: 20px;
  padding: 24px;
  color: #fff;
  background: linear-gradient(135deg, #07281a 0%, #14532d 55%, #042b53 100%);
  box-shadow: var(--civic-shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.home-weather-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}
.home-weather-loc {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.03em;
}
.home-weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 4px;
}
.home-weather-icon { font-size: 2.6rem; line-height: 1; }
.home-weather-temp { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.home-weather-desc { font-size: 0.94rem; color: rgba(255, 255, 255, 0.86); }
.home-weather-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 112px;
}
.weather-meta-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
  padding: 5px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
}
.weather-meta-item span { color: rgba(255, 255, 255, 0.75); }
.weather-forecast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.forecast-day {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.78rem;
}
.forecast-day span { display: block; color: rgba(255, 255, 255, 0.78); margin-bottom: 4px; }
.forecast-ic { font-size: 1.25rem; line-height: 1.2; margin-bottom: 2px; }
.forecast-day strong { font-size: 0.85rem; }
.forecast-day small { opacity: 0.72; font-weight: 500; }

.home-feed-panel {
  display: flex;
  flex-direction: column;
}
.home-feed-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  height: 100%;
}
.home-feed-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--civic-shadow-sm);
  display: flex;
  flex-direction: column;
}
.home-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.home-feed-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--civic-ink);
}
.home-feed-head a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.home-feed-head a:hover { text-decoration: underline; }
.home-feed-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.home-feed-item {
  width: 100%;
  text-align: left;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.home-feed-item:hover {
  border-color: var(--primary);
  transform: translateX(2px);
}
.home-feed-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-feed-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.home-feed-empty {
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 16px 4px;
}

@media (max-width: 960px) {
  .home-overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .home-feed-cols { grid-template-columns: 1fr; }
}

/* ===== DETAYLI HAVA DURUMU PENCERESİ (24 SAAT + 10 GÜN) ===== */
.home-weather-card { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.home-weather-card:hover { transform: translateY(-3px); box-shadow: var(--civic-shadow-lg); }
.home-weather-cta {
  font-size: 0.8rem;
  font-weight: 700;
  color: #fde047;
  text-align: right;
  opacity: 0.92;
}
.weather-modal-box {
  max-width: 680px !important;
  width: 94%;
  max-height: 88vh;
  overflow-y: auto;
}
.wm-summary {
  border-radius: 16px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(135deg, #07281a 0%, #14532d 55%, #042b53 100%);
  margin-bottom: 18px;
}
.wm-now { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wm-ic { font-size: 2.6rem; line-height: 1; }
.wm-temp { font-size: 2.1rem; font-weight: 800; line-height: 1.1; }
.wm-desc { font-size: 0.88rem; opacity: 0.88; }
.wm-pills { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; }
.wm-pills span {
  background: rgba(255, 255, 255, 0.12);
  padding: 5px 10px;
  border-radius: 999px;
}
.wm-section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--civic-ink);
  margin: 16px 0 10px;
}
.weather-hourly-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.weather-hour-item {
  flex: 0 0 68px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.wh-time { font-size: 0.74rem; color: var(--text-muted); font-weight: 600; }
.wh-ic { font-size: 1.35rem; line-height: 1.1; }
.wh-temp { font-size: 0.92rem; color: var(--text-main); }
.wh-rain { font-size: 0.7rem; color: #0284c7; font-weight: 600; }

.weather-daily-list { display: flex; flex-direction: column; gap: 8px; }
.weather-day-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 54px 135px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  font-size: 0.84rem;
}
.wd-date { display: flex; flex-direction: column; line-height: 1.2; }
.wd-date strong { color: var(--text-main); font-size: 0.85rem; }
.wd-date span { font-size: 0.74rem; color: var(--text-muted); }
.wd-cond { display: flex; align-items: center; gap: 6px; color: var(--text-secondary); min-width: 0; }
.wd-cond span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wd-ic { font-size: 1.2rem; flex-shrink: 0; }
.wd-rain { font-size: 0.76rem; color: #0284c7; font-weight: 700; text-align: right; }
.wd-range { display: flex; align-items: center; gap: 6px; }
.wd-lo { color: var(--text-muted); font-size: 0.8rem; width: 26px; text-align: right; }
.wd-hi { color: var(--text-main); font-size: 0.85rem; width: 26px; }
.wd-bar {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.wd-bar span {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #eab308);
}
@media (max-width: 560px) {
  .weather-day-row { grid-template-columns: 92px 1fr 112px; }
  .wd-rain { display: none; }
}

/* ===== VEFAT / CENAZE SİYAH-BEYAZ TEMA ===== */
.badge-vefat {
  background: #111111 !important;
  color: #ffffff !important;
  border: 1px solid #111111;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.announcement-card.type-vefat {
  border-left: 4px solid #111111 !important;
  background: #ffffff;
  color: #111827;
}
.announcement-card.type-vefat:hover {
  border-color: #111111 !important;
}
.announcement-card.type-vefat .card-title,
.announcement-card.type-vefat .card-read-more {
  color: #111111 !important;
}
.announcement-card.type-vefat .card-excerpt {
  color: #374151;
}
.modal-box.vefat-modal {
  border-top: 4px solid #111111;
}
[data-theme="dark"] .announcement-card.type-vefat {
  background: #141414;
  border-color: #333333;
  border-left-color: #f8fafc !important;
}
[data-theme="dark"] .announcement-card.type-vefat .card-title,
[data-theme="dark"] .announcement-card.type-vefat .card-read-more {
  color: #f8fafc !important;
}
[data-theme="dark"] .announcement-card.type-vefat .card-excerpt {
  color: #d1d5db;
}
[data-theme="dark"] .badge-vefat {
  background: #000000 !important;
  color: #ffffff !important;
  border-color: #525252;
}
