/* ===========================
   GENEL RESET & TEMEL
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
  min-height: 100vh;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===========================
   ÜST İLETİŞİM BARI
=========================== */
.top-bar {
  background: #1a1a2e;
  color: #fff;
  font-size: 0.82rem;
  padding: 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top-bar-inner-wrap {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top-bar-item {
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.top-bar-item:hover { opacity: 0.8; }
.top-bar-item i { font-size: 0.78rem; }
.whatsapp-top {
  background: #25d366;
  padding: 3px 12px;
  border-radius: 20px;
  color: #fff !important;
  font-weight: 600;
}
.whatsapp-top i { font-size: 0.88rem; }

/* Üst bar sağ ikonlar */
.top-icon-btn {
  position: relative;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}
.top-icon-btn:hover { opacity: 0.75; }
.top-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  font-size: 0.55rem;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-right: 16px;
  text-decoration: none;
}
.logo img { height: 38px; }
.logo-text {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: #1a1a2e;
  font-style: italic;
}

.nav-menu { flex: 1; }
.nav-menu > ul {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-menu > ul > li {
  position: relative;
}
.nav-menu > ul > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.3px;
  border-radius: 20px;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-menu > ul > li > a:hover {
  color: #1a1a2e;
  background: #f0f0f0;
}
/* Aktif stil kaldırıldı - gerek yok */
.nav-menu > ul > li > a i {
  font-size: 0.6rem;
  margin-top: 1px;
}

/* Dropdown - JS ile kontrol edilir, CSS hover kaldırıldı */
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: #fff;
  min-width: 200px;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.14);
  z-index: 200;
  padding: 8px 0;
  border: none;
  /* Dropdown ile li arasındaki boşluğu köprülemek için */
  margin-top: 0;
}
/* Dropdown açıkken görünür */
.has-dropdown.open .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 11px 20px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: 0.3px;
  transition: background 0.15s;
  text-transform: uppercase;
}
.dropdown li a:hover {
  background: #f5f5f5;
}
.dropdown li a.active {
  background: #f0f0f0;
  font-weight: 800;
}

/* Navbar sağ: sadece bağış yap */
.navbar-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

/* Bağış Yap Butonu (Navbar) */
.btn-bagis-nav {
  background: #1a1a2e;
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
}
.btn-bagis-nav:hover {
  background: #1a6fa8;
  transform: translateY(-1px);
}

/* Hamburger (mobil) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===========================
   SOL SABİT SOSYAL MEDYA
=========================== */
.social-fixed {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0 6px 0;
}
.social-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: #fff;
  font-size: 1rem;
  border-radius: 0 8px 8px 0;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.18);
  transition: width 0.2s ease, box-shadow 0.2s;
  text-decoration: none;
}
.social-fixed a:hover {
  width: 46px;
  box-shadow: 3px 3px 12px rgba(0,0,0,0.28);
}
.social-fb  { background: #1877f3; }
.social-ig  { background: linear-gradient(160deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-yt  { background: #ff0000; }

/* ===========================
   SAĞ SABİT BAĞIŞ YAP
=========================== */
.bagis-fixed {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  background: #1a1a2e;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  padding: 18px 9px;
  border-radius: 6px 0 0 6px;
  transition: background 0.2s;
  writing-mode: vertical-lr;
  text-orientation: mixed;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}
.bagis-fixed:hover { background: #1a6fa8; }

/* ===========================
   SAĞ ALT WHATSAPP SABİT
=========================== */
.whatsapp-fixed {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;
  background: #25d366;
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

/* ===========================
   ANA İÇERİK
=========================== */
.main-content {
  max-width: 100%;
  margin: 0 auto;
}

/* ===========================
   HERO SLIDER
=========================== */
.hero-slider {
  position: relative;
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 0 20px;
  border-radius: 14px;
  overflow: hidden;
}
.slide {
  display: none;
  min-height: 300px;
  border-radius: 14px;
  padding: 40px 60px;
  position: relative;
  overflow: hidden;
}
.slide.active { display: flex; align-items: center; }
.slide-content {
  z-index: 2;
  position: relative;
}
.slide-title {
  font-size: 3.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 3px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.18);
  margin-bottom: 8px;
}
.slide-subtitle {
  font-size: 1.2rem;
  color: #e0f7ff;
  margin-bottom: 24px;
  font-style: italic;
}
.btn-slide-bagis {
  display: inline-flex;
  align-items: center;
  background: #e74c3c;
  color: #fff;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 4px 14px rgba(231,76,60,0.4);
  transition: background 0.2s, transform 0.1s;
  cursor: pointer;
}
.btn-slide-bagis:hover {
  background: #c0392b;
  transform: translateY(-2px);
}
.slide-location {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
}
.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s;
}
.dot.active { background: #fff; }

/* ===========================
   BLOKLAR SECTION
=========================== */
.blocks-section {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}
.blocks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.block-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  transition: box-shadow 0.2s, transform 0.2s;
}
.block-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
.block-img-wrap { position: relative; }
.badge-haber {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #1a6fa8;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
}
.block-body { padding: 18px 20px 22px; }
.block-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.block-body p {
  font-size: 0.85rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
}
.block-date {
  font-size: 0.78rem;
  color: #888;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.btn-detay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #1a6fa8;
  color: #fff;
  padding: 10px 28px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-detay:hover { background: #135a8c; }
.block-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-haberi-oku {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid #ccc;
  color: #444;
  padding: 9px 18px;
  border-radius: 6px;
  font-size: 0.83rem;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}
.btn-haberi-oku:hover { border-color: #1a6fa8; color: #1a6fa8; }
.btn-tum-haberler {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #1a6fa8;
  font-size: 0.83rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.btn-tum-haberler:hover { opacity: 0.75; }

/* ===========================
   İSTATİSTİKLER
=========================== */
.stats-section {
  background: #fff;
  padding: 60px 20px;
  text-align: center;
  margin-top: 10px;
}
.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.stats-section h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 8px;
}
.stats-sub {
  font-size: 0.88rem;
  color: #777;
  margin-bottom: 50px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.stat-icon svg { width: 56px; height: 56px; }
.stat-number {
  font-size: 1.9rem;
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: #666;
  font-weight: 500;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #1a1a2e;
  color: #ccc;
  padding: 50px 20px 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #2e2e4a;
}
.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: #aaa;
  margin-bottom: 18px;
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2e2e4a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: #1a6fa8; color: #fff; }
.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.84rem;
  color: #aaa;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-phone,
.footer-whatsapp,
.footer-email {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  padding: 9px 14px;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.footer-phone {
  background: #2e2e4a;
  color: #ccc;
}
.footer-whatsapp {
  background: #1a7a3c;
  color: #fff;
}
.footer-email {
  background: transparent;
  color: #aaa;
  padding: 0;
}
.footer-phone:hover,
.footer-whatsapp:hover,
.footer-email:hover { opacity: 0.8; }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #666;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom-links a {
  color: #888;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: #fff; }

/* ===========================
   MOBİL RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 10px 0;
    z-index: 999;
  }
  .nav-menu.open { display: block; }
  .nav-menu > ul { flex-direction: column; gap: 0; }
  .nav-menu > ul > li > a { padding: 12px 24px; border-radius: 0; font-size: 0.88rem; }
  .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    background: #f8f9fa;
    padding-left: 20px;
    display: none !important;
  }
  .has-dropdown.open .dropdown { display: block !important; }
  .btn-bagis-nav { display: none; }
  .blocks-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .hero-slider { padding: 0 10px; }
  .slide { padding: 30px 24px; min-height: 220px; }
  .slide-title { font-size: 2.2rem; }
  .social-fixed { display: none; }
  .bagis-fixed { display: none; }
}

@media (max-width: 480px) {
  .top-bar { flex-wrap: wrap; gap: 6px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.5rem; }
}

/* ===========================
   SEPETİKONU DROPDOWN
=========================== */
.sepet-dropdown-wrap {
  position: relative;
}

.sepet-mini-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  width: 340px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 9999;
  overflow: hidden;
}
.sepet-mini-panel.acik { display: block; }

/* Ok işareti */
.sepet-mini-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 18px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0,0,0,0.06);
}

.smp-baslik {
  padding: 16px 18px 14px;
  font-size: 1rem;
  font-weight: 800;
  color: #1a1a2e;
  border-bottom: 1px solid #f0f0f0;
}

.smp-liste {
  max-height: 240px;
  overflow-y: auto;
  padding: 8px 12px;
}

.smp-bos {
  font-size: 0.82rem;
  color: #bbb;
  text-align: center;
  padding: 18px 0;
}

/* Sepet öğesi mini */
.smp-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  margin-bottom: 8px;
}
.smp-item:last-child { margin-bottom: 0; }

.smp-item-sol {
  flex: 1;
  min-width: 0;
}
.smp-item-isim {
  font-weight: 600;
  color: #1a1a2e;
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smp-item-carpim {
  font-size: 0.72rem;
  color: #999;
  margin-top: 2px;
}

.smp-item-sag {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.smp-miktar-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  overflow: hidden;
  background: #fff;
}
.smp-miktar-btn {
  background: #fff;
  border: none;
  width: 26px;
  height: 30px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #555;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.smp-miktar-btn:hover { background: #f0f0f0; }
.smp-miktar-val {
  width: 28px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1a1a2e;
  border-left: 1px solid #e8e8e8;
  border-right: 1px solid #e8e8e8;
  height: 30px;
  line-height: 30px;
  display: block;
}

.smp-sil-btn {
  background: #fff;
  border: 1.5px solid #e74c3c;
  border-radius: 7px;
  color: #e74c3c;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
  flex-shrink: 0;
}
.smp-sil-btn:hover {
  background: #e74c3c;
  color: #fff;
}

.smp-item-tutar {
  font-weight: 700;
  color: #1a8a3a;
  font-size: 0.82rem;
  white-space: nowrap;
  min-width: 62px;
  text-align: right;
}

.smp-alt {
  padding: 12px 16px;
  border-top: 1.5px solid #f0f0f0;
  background: #fafafa;
}
.smp-toplam {
  font-size: 0.9rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.smp-butonlar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.smp-btn-sepet {
  background: #fff;
  border: 1.5px solid #ccc;
  border-radius: 8px;
  padding: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
  display: block;
}
.smp-btn-sepet:hover { border-color: #888; color: #222; }
.smp-btn-odeme {
  background: #1a1a2e;
  border: none;
  border-radius: 8px;
  padding: 9px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  text-decoration: none;
  display: block;
}
.smp-btn-odeme:hover { background: #1a8a3a; }

/* ===========================
   KULLANICI İKONU DROPDOWN
=========================== */
.kullanici-dropdown-wrap {
  position: relative;
}

.kullanici-mini-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: -4px;
  width: 160px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  z-index: 9999;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}
.kullanici-mini-panel.acik { display: block; }

.kullanici-mini-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 12px;
  width: 12px;
  height: 12px;
  background: #fff;
  transform: rotate(45deg);
  border-left: 1px solid #f0f0f0;
  border-top: 1px solid #f0f0f0;
}

.kmp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: #333;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  border-bottom: 1px solid #f5f5f5;
}
.kmp-item:last-child { border-bottom: none; }
.kmp-item:hover { background: #f8f9fa; color: #1a8a3a; }
.kmp-item i {
  font-size: 0.78rem;
  color: #bbb;
  width: 14px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.kmp-item:hover i { color: #1a8a3a; }

.kmp-item.kmp-kayit { color: #1a8a3a; font-weight: 600; }
.kmp-item.kmp-kayit i { color: #1a8a3a; }
.kmp-item.kmp-kayit:hover { background: #f0faf3; }
