/*
Theme Name: Sade TR
Theme URI: https://example.com
Description: Sade, hızlı, 1300px genişlikte, mobil uyumlu ve SEO odaklı Türkçe WordPress teması.
Author: Geliştirici
Version: 1.1.1
Text Domain: sade-tr
*/

:root {
  --bg: #ffffff;
  --text: #18181b;
  --muted: #52525b;
  --surface: #f4f4f5;
  --border: #e4e4e7;
  --accent: #0f172a;
  --drawer-bg: #f5f1e8; /* Mevcut renk #f5f1e8 Açılır mobil menünün yeni arka plan rengi */
  --drawer-line: #ede7e2;
  --drawer-accent: #c2410c; /* Mobil menü yazılarının ve ok işaretlerinin hover rengi */
  --drawer-arrow: #b59d93;
  --max-w: 1300px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.kapsayici {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Üst Kısım ve Menü */
.site-ust {
  border-bottom: 1px solid var(--border);
  background: #f5f1e8; /* <-- BURASI (Örn: #f5f1e8 yapın) */
  position: sticky; /* relative yerine sticky yapın */
  top: 0;           /* Ekranın en üstüne yapışmasını sağlar */
  z-index: 900;     /* Sayfa içeriklerinin ve kartların üstünde kalmasını sağlar (mobil çekmece 999'dur) */
}

.ust-ic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.marka-alani {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.marka-alani .site-logo {
  display: inline-flex;
  align-items: center;
}

.marka-alani .site-logo img {
  width: 190px; /* 230px yerine istediğiniz küçüklükte bir değer yazın (örn: 180px veya 160px) */
  max-width: 100%;
  height: auto; /* 39px yerine auto yazarsanız logo basıklaşmadan orantılı küçülür */
  object-fit: contain;
}

.ana-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  flex-wrap: nowrap; /* Menü öğelerinin asla 2. satıra kırılmasını engeller */
  gap: clamp(12px, 1.6vw, 22px); /* Ekran daraldıkça aradaki boşluğu otomatik yumuşatır */
}

.ana-menu a {
  font-size: 0.95rem; /* Büyütmek için örn: 1.05rem veya 17px; küçültmek için 0.85rem veya 14px yapın */
  font-weight: 500;
  color: #000000; /* Normal menü yazı rengi */
}

.ana-menu a:hover,
.ana-menu .current-menu-item > a {
  color: #c2410c; /* Üzerine gelince ve aktif sayfa yazı rengi */
  text-decoration: none;
}

/* Mobil Sağ İkonlar (Masaüstünde gizli) */
.mobil-aksiyonlar {
  display: none;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.mobil-ikon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #272324;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.mobil-ikon-btn:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* 1. ikon (Telefon) hover rengi */
.mobil-aksiyonlar a:nth-child(1):hover {
  color: #12a64a;
  background: rgba(194, 65, 12, 0.1);
  border-radius: 5px;
}

/* 2. ikon (WhatsApp) hover rengi */
.mobil-aksiyonlar a:nth-child(2):hover {
  color: #c2410c;
  background: rgba(18, 166, 74, 0.12);
  border-radius: 5px;
}

.hamburger-cizgiler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4.5px;
  width: 20px;
}

.hamburger-cizgiler span {
  display: block;
  width: 100%;
  height: 1.6px;
  background-color: #272324;
  border-radius: 2px;
}

/* Mobil Açılır Çekmece Menü */
.mobil-arka-plan {
  position: fixed;
  inset: 0;
  background: rgba(24, 20, 21, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 998;
}

.mobil-cekmece {
  position: fixed;
  top: 0;
  right: 0;
  width: calc(100% - 34px);
  max-width: 420px;
  height: 100dvh;
  background: var(--drawer-bg);
  z-index: 999;
  padding: 18px 24px 32px;
  overflow-y: auto;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.28s;
}

.mobil-cekmece.acik {
  transform: translateX(0);
  visibility: visible;
}

.cekmece-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--drawer-line);
}

.cekmece-ust .site-logo img {
  width: 150px; /* Varsayılan 190px */
  height: auto;
  max-height: 36px;
}

.cekmece-kapat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid #e6dada;
  background: transparent;
  color: var(--drawer-accent);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease;
}

.cekmece-kapat-btn:hover {
  background: rgba(122, 62, 77, 0.06);
}

.cekmece-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cekmece-liste li {
  border-bottom: 1px solid var(--drawer-line);
}

.cekmece-liste li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 2px;
  font-size: 1rem;
  font-weight: 600;
  color: #2c2224;
  text-decoration: none;
}

.cekmece-liste li a:hover {
  color: var(--drawer-accent);
  text-decoration: none;
}

.cekmece-ok {
  display: inline-flex;
  align-items: center;
  color: var(--drawer-arrow);
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.cekmece-liste li a:hover .cekmece-ok {
  transform: translate(2px, -2px);
  color: var(--drawer-accent);
}

/* Ana İçerik ve Izgara */
.site-ana {
  padding: 40px 0 64px;
}

.yazi-listesi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.kart {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.kart-icerik {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.kart-baslik {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
}

.kart-ozet {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tekil-yazi {
  max-width: 100%; /* 860px yerine 100% yapın ki 1300px kapsayıcıyı tam doldursun */
}

.tekil-baslik {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 12px;
	color: #c2410c; /* Buraya istediğiniz renk kodunu yazın (örn: #c2410c turuncu veya #7a3e4d bordo) */
	transform: translateY(-20px);
}

/* Alt Kısım */
.site-alt {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.alt-ic {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

/* Tablet */
@media (max-width: 1024px) {
  .yazi-listesi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobil Görünüm (960px ve altı) */
@media (max-width: 960px) {
  .tekil-baslik {
    transform: translateY(-2px); /* Başlığı mobilde üst menüden uzaklaştırır (0px yaparsanız biraz daha aşağı iner) */
  }

  .ust-ic {
    min-height: 66px;
    padding: 10px 16px;
    gap: 10px;
  }

  .marka-alani .site-logo img {
    width: 160px; /* Varsayılan 175px */
    height: auto;
    max-height: 32px;
  }

  .ana-menu {
    display: none;
  }

  .mobil-aksiyonlar {
    display: flex;
  }
  
  .mobil-aksiyonlar a:last-of-type { /* <-- YENİ EKLEYECEĞİNİZ SATIR */
    margin-right: 16px;
  }
}

/* Çok Küçük Ekranlar */
@media (max-width: 380px) {
  .marka-alani .site-logo img {
    width: 150px;
  }

  .mobil-aksiyonlar {
    gap: 8px;
  }
}

/* Küçük Telefon */
@media (max-width: 640px) {
  .yazi-listesi {
    grid-template-columns: 1fr;
  }

  .site-ana {
    padding: 18px 0 48px;
  }
}
