/* ========== RESET & BASE ========== */
* { margin:0; padding:0; box-sizing:border-box; }
html,body { height:100%; }
img { max-width:100%; height:auto; display:block; }

body {
  font-family: 'Nunito', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.6;
  background: #fafafa;
  color: #222;
}

/* menü açıkken arka plan kaymasın */
body.nav-open { overflow: hidden; }

/* yatay taşmayı tek noktadan önle */
html, body { overflow-x: hidden; }

/* ========== HEADER & CONTAINER ========== */
header {
  background:#fff;
  border-bottom:1px solid #e0e0e0;
  box-shadow:0 1px 2px rgba(0,0,0,.05);
}
.containerbar {
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Logo */
.logo {
  font-family:'Aboreto', cursive;
  font-style: italic;
  font-weight: 300;
  color:#444;
  text-align:center;
  padding: 18px 0 8px;
  font-size: clamp(28px, 4vw, 64px);
}

/* ========== ADSENSE ========== */
.ad-wrap,
.ad-in-article {
  width:100%;
  margin: 14px auto;
  text-align:center;
  max-width:100%;
  overflow:hidden; /* iframeler taşmasın */
}
.ad-wrap ins.adsbygoogle,
.ad-in-article ins.adsbygoogle {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-height:120px; /* CLS azaltır */
}

/* ========== NAVBAR ========== */
.navbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 12px;
  z-index: 1; /* hamburger ve overlay üstte kalacak */
}

/* Hamburger (base) */
.menu-toggle {
  display: none;            /* desktop/tablet: gizli */
  position: absolute;
  right: 16px;
  top: 12px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  z-index: 10010;           /* reklamlardan da önde */
}
.menu-toggle .bar {
  display: block;
  width: 28px; height: 3px;
  background:#333;
  border-radius: 2px;
  margin: 6px auto;
}

/* Linkler (desktop/tablet varsayılan) */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  z-index: 1000;
}
.nav-links a {
  text-decoration: none;
  color: #312d2d;
  font-family:'Aboreto', cursive;
  font-weight: 300;
  font-size: clamp(15px, 1.6vw, 20px);
  padding: 6px 10px;
  border-radius: 6px;
  transition: .2s;
}
.nav-links a:hover { background:#424242; color:#fff; }

/* ========== GRID / KARTLAR ========== */
.grid-container {
  display: grid;
  gap: 20px;
  padding: 20px;
  margin: 10px auto 24px;
  max-width: 1600px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.cards {
  background:#fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: .3s;
}
.cards:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.15); }
.cards img { width:100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid #ddd; }

.card-content { padding: 16px; text-align: center; }
.card-content h3 { font-size: clamp(18px, 2vw, 22px); margin-bottom: 8px; }
.card-content p  { font-size: clamp(14px, 1.6vw, 16px); color:#333; }

.btn {
  margin-top: 12px;
  padding: 10px 20px;
  border: 1px solid #9aa3ab;
  border-radius: 24px;
  background:#fff;
  color:#222;
  font-family:'Aboreto', cursive;
  cursor:pointer;
  transition: .2s;
}
.btn:hover { background:#72808e; color:#fff; transform: translateY(-1px); }

/* ========== FOOTER ========== */
footer {
  background:#fff;
  border-top:1px solid #e0e0e0;
}

/* ========== MOBILE ≤600px ========== */
@media (max-width: 600px) {
  /* hamburger her zaman görünür (fixed) */
  .menu-toggle {
    display: block;
    position: fixed;
    top: 12px; right: 12px;
  }

  /* menü overlay — tam ekran */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, .98);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 80px 16px 24px;
    gap: 16px;
    overflow: auto;
    width: 100%;          /* 100vw → 100% (taşma yapmasın) */
    max-width: 100%;
  }
  .nav-links.active { display: flex; }

  /* logo sağ üstte burger ile çakışmasın */
  .logo { font-size: 32px; padding: 22px 56px 10px 16px; }

  /* kartlar tek sütun */
  .grid-container {
    max-width: 95%;
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ========== TABLET 601–1024px ========== */
@media (min-width: 601px) and (max-width: 1024px) {
  .menu-toggle { display: none; } /* tablet: yatay menü */
  .nav-links {
    display: flex;
    position: static;
    background: transparent;
    padding: 0;
  }
  .grid-container { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .logo { font-size: 35px; padding: 18px 0 8px;  display: flex; }
}

/* ========== DESKTOP 1025–1535px ========== */
@media (min-width: 1025px) and (max-width: 1535px) {
  .logo { font-size: 58px; }
}

/* ========== LARGE ≥1536px & 4K ========== */
@media (min-width: 1536px) {
  .grid-container {
    max-width: 1360px;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .logo { font-size: 66px; }
}

@media (min-width: 2560px) {
  .grid-container {
    max-width: 1600px;
    gap: 32px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
  .logo { font-size: 72px; }
}
