/* =========================
   Bİ'TERS & Bİ'DÜZ — Blog.css
   Responsive: 360px → 4K/TV
   ========================= */

/* ---- Reset / Base ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #222;
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  /* Akışkan temel font: min 16px, tercih 1.8vw, max 19px */
  font-size: clamp(16px, 1.8vw, 19px);
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible,
button:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }
:root{
  --brand:#2b5a75;
  --muted:#7b3f00;
  --panel:#ffffff;
  --footer-bg:#f4f1ee;
  --border:#ccc;

  --content-max: 800px;   /* blog içerik genişliği */
  --container-max: 1200px;/* navbar */
}

/* Az hareket tercih edenler için animasyon kapatma */
@media (prefers-reduced-motion: reduce){
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Header / Navbar ---- */
.containerbar{
  position: sticky; top: 0; z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  padding: 8px 0;
  background: #fff;
  overflow: visible; /* açılır menü taşmasın */
}

.navbar{
  max-width: var(--container-max);
  margin: 0 auto; padding: 0 16px;
  display: flex; flex-direction: column; align-items: center;
  position: relative; /* açılır menü referansı */
  gap: 8px;
}

.logo{
  font-family:'Aboreto', system-ui;
  font-weight:300; font-style:italic;
  color:#666565; text-align:center;
  /* Akışkan başlık: 28 → 56px */
  font-size: clamp(28px, 4vw, 56px);
  margin: 8px 0 4px;
}

.nav-links{
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 6px 0 4px; padding: 0;
}
.nav-links li a{
  display: block;
  font-family:'Aboreto', system-ui;
  font-style: italic;
  font-weight: 300;
  color:#312d2d;
  font-size: clamp(14px, 1.6vw, 18px);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background-color .2s ease;
}
.nav-links li a:hover{ background: #424242; color:#fff; }

/* Hamburger */
.menu-toggle{
  display: none;
  border: 0; background: transparent; cursor: pointer;
  padding: 8px; margin: 6px 0 4px;
  touch-action: manipulation;
  position: relative;
}
.menu-toggle .bar{
  width: 26px; height: 3px; background: #333; margin: 5px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---- Ana içerik ---- */
.container-blog {
  width: 100%;
  max-width: var(--content-max);
  margin: 24px auto;
  padding: 0 20px;
}

.blog1 { margin-bottom: 40px; }

.blog1-header {
  /* 26 → 40px */
  font-size: clamp(26px, 3.2vw, 40px);
  margin-bottom: 14px;
  color: #333;
  line-height: 1.25;
}

.blog1-info p {
  line-height: 1.9;
  text-align: justify; /* önceki hatalı text-justify yerine */
  text-wrap: pretty;
  font-size: clamp(16px, 2.1vw, 20px);
  margin: 0 0 1em 0;
}

.blogP { font-weight: bold; color: #444; }

.ipbox { margin: 18px 0 20px; position: relative; }
.ipbox img { max-width: 100%; height: auto; display: block; }
.ipbox .caption {
  position: absolute; bottom: 10px; left: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 6px 10px; border-radius: 6px; font-size: .85rem;
}

/* Görseller (CLS azaltma) */
.autumn {
  width: 100%;
  height: auto;
  /* Ölçü placeholder: 16:9 — gerçek oran farklıysa güncelle */
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

/* ---- Reklam alanları (JS olmadan görünmez ama yer tutucu stabil) ---- */
.ad-wrap,
.ad-in-article{
  margin: 12px auto;
  max-width: var(--content-max);
}
.ad-wrap ins.adsbygoogle,
.ad-in-article ins.adsbygoogle{
  display:block !important;
  min-height: 120px;          /* TV’de de stabil dursun */
  width: 100% !important;
  background: transparent;
}

/* ---- Footer ---- */
footer{
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 18px 16px;
  text-align: center;
}
footer .social-icons{
  display:flex; gap:14px; justify-content:center; align-items:center;
  margin-bottom: 8px;
}
footer .social-icons i{ font-size: 22px; }
footer p{ margin: 6px 0 0; font-size: clamp(13px, 1.6vw, 15px); }

/* ---- Mobil (≤ 600px) ---- */
@media (max-width: 600px) {
  header{
    min-height: 96px;
    display: flex; flex-direction: column;
  }

  .navbar { align-items: center; }

  /* Mobil menü kapalı iken gizle */
  .nav-links{
    flex-direction: column; align-items: center;
    display: none;
    position: absolute; top: 100%;
    left: 50%; transform: translateX(-50%);
    width: min(92vw, 480px);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border: 1px solid var(--border);
    padding: 10px;
    border-radius: 12px;
  }
  .nav-links.active { display: flex; }

  .menu-toggle{
    display: block;
    position: absolute; right: 16px; top: 10px;
  }

  .nav-links li { margin-right: 0; margin-bottom: 8px; }
  .nav-links li:last-child { margin-bottom: 0; }

  .blog1-header{ font-size: clamp(22px, 6vw, 26px); }
  .blog1-info p { font-size: clamp(15px, 4.2vw, 18px); }

  .autumn{ aspect-ratio: 4 / 3; } /* dikey ekrana daha uygun */
}

/* ---- Tablet (≥ 600px) ---- */
@media (min-width: 600px){
  .container-blog { margin: 28px auto; }
}

/* ---- Tablet Plus (≥ 768px) ---- */
@media (min-width: 768px){
  :root{ --content-max: 860px; }
  .navbar { gap: 10px; }
  .blog1-header{ margin-bottom: 16px; }
}

/* ---- Laptop (≥ 1024px) ---- */
@media (min-width: 1024px){
  :root{ --content-max: 920px; --container-max: 1280px; }
  .navbar { flex-direction: row; justify-content: space-between; align-items: center; }
  .menu-toggle { display: none; }
  .nav-links{
    display: flex !important;
    position: static;
    width: auto; transform: none; background: transparent;
    box-shadow: none; border: 0; padding: 0; border-radius: 0;
  }
}

/* ---- Desktop (≥ 1280px) ---- */
@media (min-width: 1280px){
  :root{ --content-max: 1000px; --container-max: 1360px; }
  .logo{ letter-spacing: .5px; }
}

/* ---- WQHD (≥ 1536px) ---- */
@media (min-width: 1536px){
  :root{ --content-max: 1120px; --container-max: 1440px; }
}

/* ---- 1080p/2K geniş (≥ 1920px) ---- */
@media (min-width: 1920px){
  :root{ --content-max: 1200px; --container-max: 1600px; }
  body { font-size: clamp(18px, 1vw, 20px); } /* TV’de okunabilirlik */
  .blog1-header { font-size: clamp(32px, 2vw, 44px); }
}

/* ---- 4K/TV (≥ 2560px) ---- */
@media (min-width: 2560px){
  :root{ --content-max: 1400px; --container-max: 1800px; }
  body { font-size: clamp(20px, 0.9vw, 22px); }
  .logo { font-size: clamp(42px, 2.2vw, 64px); }
  footer .social-icons i{ font-size: 26px; }
}

/* ---- Yardımcı durumlar ---- */

/* Menü açıldığında scroll kilidi (JS body.nav-open sınıfı ekleyecek) */
body.nav-open { overflow: hidden; }

/* Reklamların etrafında küçük ayrım */
.ad-wrap { padding-top: 8px; }
.ad-in-article { padding: 12px 0; border-top: 1px dashed #e5e5e5; border-bottom: 1px dashed #e5e5e5; }

/* Yazdırma */
@media print {
  .menu-toggle, .nav-links, .ad-wrap, .ad-in-article { display: none !important; }
  body { color: #000; }
}
