/*
Theme Name:  Alanya Avukat
Description: Mobil öncelikli minimal tema — AMP gerektirmez
Version:     1.0
Author:      Av. Sibel Demiral
Text Domain: alanyaavukat
*/

/* ── TOKENS ─────────────────────────────────── */
:root {
  --mor:        #7c5cbf;
  --mor-acik:   #c9a6fb;
  --mor-bg:     #f5f0ff;
  --yazi:       #1a1a2e;
  --yazi2:      #5a5a7a;
  --cizgi:      #e8e2f4;
  --bg:         #ffffff;
  --bg2:        #faf8ff;
  --wa:         #25d366;
  --r:          14px;
  --kenar:      18px;
  --max:        640px;
  --hdr:        52px;
}

/* ── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font: 400 16px/1.65 'DM Sans', system-ui, sans-serif;
  color: var(--yazi);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mor); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }

/* ── HEADER ─────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--hdr);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--cizgi);
  display: flex; align-items: center;
  padding: 0 var(--kenar);
}
.header-ic {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

/* Logo */
.logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none;
}
.logo-daire {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--mor), var(--mor-acik));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-daire svg { width: 16px; height: 16px; fill: #fff; }
.logo-ad   { font-size: 15px; font-weight: 700; color: var(--yazi); line-height: 1.1; display: block; }
.logo-alt  { font-size: 10px; color: var(--yazi2); letter-spacing: .05em; display: block; }

/* Header sağ: tel + hamburger */
.header-sag { display: flex; align-items: center; gap: 4px; }

.btn-tel {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; color: var(--yazi);
  transition: background .2s;
}
.btn-tel:hover { background: var(--mor-bg); }
.btn-tel svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.btn-hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: none; padding: 9px;
  transition: background .2s;
}
.btn-hamburger:hover { background: var(--mor-bg); }
.btn-hamburger span {
  display: block; height: 1.5px; border-radius: 2px;
  background: var(--yazi);
  transition: transform .25s, opacity .25s;
}
body.drawer-acik .btn-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.drawer-acik .btn-hamburger span:nth-child(2) { opacity: 0; }
body.drawer-acik .btn-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── NAV DRAWER ─────────────────────────────── */
.nav-drawer {
  position: fixed; inset: var(--hdr) 0 0 0;
  background: var(--bg); z-index: 49;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
body.drawer-acik .nav-drawer { transform: translateX(0); }

.drawer-ic {
  max-width: var(--max); margin: 0 auto;
  padding: 8px var(--kenar) 40px;
}

.nav-list { list-style: none; }
.nav-list > li { border-bottom: 1px solid var(--cizgi); }

.nav-list > li > a,
.nav-acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0;
  font-size: 16px; font-weight: 500; color: var(--yazi);
  background: none; border: none; width: 100%;
  text-decoration: none;
  transition: color .15s;
}
.nav-list > li > a:hover, .nav-acc-btn:hover { color: var(--mor); }

.acc-icon { transition: transform .2s; color: var(--yazi2); }
.nav-acc-btn[aria-expanded="true"] .acc-icon { transform: rotate(180deg); }

.nav-sub {
  list-style: none; display: none; padding-bottom: 8px;
}
.nav-sub.acik { display: block; }
.nav-sub li a {
  display: block; padding: 9px 0 9px 14px;
  font-size: 14px; color: var(--yazi2);
  border-left: 2px solid var(--cizgi);
  text-decoration: none;
  transition: color .15s, border-color .15s;
}
.nav-sub li a:hover { color: var(--mor); border-left-color: var(--mor); }

.drawer-iletisim {
  margin-top: 24px; padding: 18px;
  background: var(--bg2); border-radius: var(--r);
}
.drawer-iletisim p {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--yazi2); margin-bottom: 12px;
}
.drawer-tel {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--yazi) !important;
  margin-bottom: 8px; text-decoration: none;
}
.drawer-tel svg { width: 15px; height: 15px; stroke: var(--mor); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

/* ── SAYFA İSKELETİ ─────────────────────────── */
.site-main {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--kenar) 80px;
}

/* ── HERO (ana sayfa) ───────────────────────── */
.hero {
  padding: 30px 0 26px;
  border-bottom: 1px solid var(--cizgi);
  margin-bottom: 28px;
}
.hero-ust { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.hero-monogram {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mor), var(--mor-acik));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: #fff;
  font-family: Georgia, serif;
}
.hero-isim { font-size: 21px; font-weight: 700; color: var(--yazi); line-height: 1.2; margin-bottom: 3px; }
.hero-unvan { font-size: 13px; color: var(--mor); font-weight: 500; margin-bottom: 3px; }
.hero-konum { font-size: 12px; color: var(--yazi2); display: flex; align-items: center; gap: 3px; }
.hero-konum svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

.hero-acik { font-size: 15px; color: var(--yazi2); line-height: 1.7; margin-bottom: 18px; }

.etiket-sira { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.etiket {
  display: inline-block; padding: 5px 11px;
  background: var(--bg2); border: 1px solid var(--cizgi);
  border-radius: 20px; font-size: 12px; color: var(--yazi2);
  text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.etiket:hover { background: var(--mor-bg); border-color: var(--mor-acik); color: var(--mor); }

.hero-butonlar { display: flex; gap: 9px; flex-wrap: wrap; }

.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 11px;
  background: var(--wa); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: opacity .15s, transform .15s;
}
.btn-wa:hover { opacity: .88; transform: translateY(-1px); }
.btn-wa svg { width: 17px; height: 17px; fill: #fff; flex-shrink: 0; }

.btn-ara {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 18px; border-radius: 11px;
  background: var(--bg); border: 1.5px solid var(--cizgi);
  color: var(--yazi); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: border-color .15s, background .15s;
}
.btn-ara:hover { border-color: var(--mor); background: var(--mor-bg); }
.btn-ara svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* ── YAZI LİSTESİ ───────────────────────────── */
.yazi-listesi { display: flex; flex-direction: column; }

.yazi-kart {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--cizgi);
  text-decoration: none;
}
.yazi-kart:last-child { border-bottom: none; }

/* Metin sola, resim sağa */
.yazi-metin { flex: 1; min-width: 0; }

.yazi-resim {
  width: 88px; height: 78px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0; background: var(--bg2);
  order: 2;
}
.yazi-resim-yedek {
  width: 88px; height: 78px; border-radius: 10px;
  background: var(--mor-bg); flex-shrink: 0; order: 2;
  display: flex; align-items: center; justify-content: center;
  color: var(--mor-acik);
}
.yazi-resim-yedek svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Meta satırı: KATEGORİ · tarih · okuma — hepsi tek satırda üstte */
.yazi-meta {
  font-size: 11px; color: var(--yazi2);
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 6px; flex-wrap: wrap;
  line-height: 1.2;
}
.yazi-meta > * {
  display: inline-flex; align-items: center;
  line-height: 1; padding: 0; margin: 0;
}
.yazi-konu {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--mor);
}
.yazi-meta-ayrac { opacity: .4; font-weight: 400; letter-spacing: 0; }
.yazi-meta time { color: var(--yazi2); font-weight: 400; letter-spacing: 0; }
.yazi-meta span:not(.yazi-konu):not(.yazi-meta-ayrac) { opacity: .8; font-weight: 400; letter-spacing: 0; }

.yazi-baslik {
  font-size: 16px; font-weight: 600; color: var(--yazi);
  line-height: 1.35; margin-bottom: 6px;
  transition: color .15s;
}
.yazi-kart:hover .yazi-baslik { color: var(--mor); }
.yazi-ozet {
  font-size: 13px; color: var(--yazi2); line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── TEKİL YAZI ─────────────────────────────── */
.tek-baslik-alan { padding: 24px 0 20px; border-bottom: 1px solid var(--cizgi); margin-bottom: 24px; }
.tek-breadcrumb { font-size: 12px; color: var(--yazi2); display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-bottom: 12px; }
.tek-breadcrumb a { color: var(--yazi2); }
.tek-breadcrumb a:hover { color: var(--mor); }
.tek-konu { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--mor); text-decoration: none; display: inline-block; margin-bottom: 8px; }
.tek-konu:hover { text-decoration: underline; }
.tek-baslik { font-size: 24px; font-weight: 700; color: var(--yazi); line-height: 1.25; margin-bottom: 12px; font-family: Georgia, serif; }
.tek-meta { font-size: 12px; color: var(--yazi2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; line-height: 1.2; }
.tek-meta > * { display: inline-flex; align-items: center; line-height: 1; padding: 0; margin: 0; }
.tek-meta-ayrac { opacity: .4; font-weight: 400; letter-spacing: 0; }
.tek-yazar { display: inline-flex; align-items: center; gap: 6px; }
.tek-yazar-mono {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mor-bg); display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700; color: var(--mor);
}

.kapak-resim { width: 100%; border-radius: 12px; margin-bottom: 24px; aspect-ratio: 16/9; object-fit: cover; }

/* Yazi icerigi */
.icerik { font-size: 16px; line-height: 1.8; color: var(--yazi); }
.icerik h2, .icerik h3, .icerik h4 { font-family: Georgia, serif; color: var(--yazi); line-height: 1.3; margin: 1.8em 0 .6em; }
.icerik h2 { font-size: 21px; }
.icerik h3 { font-size: 18px; }
.icerik h4 { font-size: 16px; }
.icerik p  { margin-bottom: 1.1em; }
.icerik ul, .icerik ol { margin: 0 0 1.1em 1.3em; }
.icerik li { margin-bottom: .3em; }
.icerik a  { color: var(--mor); text-decoration: underline; text-underline-offset: 3px; }
.icerik strong { font-weight: 700; }
.icerik blockquote {
  border-left: 3px solid var(--mor-acik); margin: 1.4em 0;
  padding: 14px 18px; background: var(--mor-bg);
  border-radius: 0 10px 10px 0; color: var(--yazi2); font-style: italic;
}
.icerik blockquote p:last-child { margin: 0; }
.icerik img { border-radius: 10px; margin: 1em 0; }
.icerik figure { margin: 1.4em 0; }
.icerik figcaption { font-size: 12px; color: var(--yazi2); text-align: center; margin-top: 6px; font-style: italic; }

/* Etiketler bölümü */
.tek-etiketler { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cizgi); }
.tek-etiketler-baslik { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--yazi2); margin-bottom: 10px; }

/* Önceki / Sonraki */
.yazi-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cizgi); }
.yazi-nav-link {
  display: flex; flex-direction: column;
  padding: 13px; background: var(--bg2); border-radius: 11px;
  text-decoration: none; transition: background .15s;
}
.yazi-nav-link:hover { background: var(--mor-bg); }
.nav-yon { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--yazi2); margin-bottom: 4px; display: flex; align-items: center; gap: 3px; }
.yazi-nav-link.sonraki { text-align: right; }
.yazi-nav-link.sonraki .nav-yon { justify-content: flex-end; }
.nav-baslik { font-size: 13px; font-weight: 600; color: var(--yazi); line-height: 1.3; }

/* Benzer yazılar */
.benzer { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--cizgi); }
.bolum-baslik { font-size: 16px; font-weight: 700; color: var(--yazi); margin-bottom: 14px; font-family: Georgia, serif; }
.benzer-link {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 13px 0; border-bottom: 1px solid var(--cizgi);
  text-decoration: none;
}
.benzer-link:last-child { border-bottom: none; }
.benzer-no { font-size: 20px; font-weight: 700; color: var(--cizgi); line-height: 1; flex-shrink: 0; padding-top: 1px; font-family: Georgia, serif; }
.benzer-baslik { font-size: 14px; font-weight: 600; color: var(--yazi); line-height: 1.3; margin-bottom: 3px; transition: color .15s; }
.benzer-link:hover .benzer-baslik { color: var(--mor); }
.benzer-tarih { font-size: 11px; color: var(--yazi2); }

/* Yazar kutusu */
.yazar-kutusu {
  margin-top: 28px; padding: 18px;
  background: var(--bg2); border-radius: var(--r);
  display: flex; gap: 13px;
}
.yazar-mono {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--mor), var(--mor-acik));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; color: #fff;
  font-family: Georgia, serif;
}
.yazar-adi   { font-size: 14px; font-weight: 700; color: var(--yazi); margin-bottom: 1px; }
.yazar-unvan { font-size: 12px; color: var(--mor); margin-bottom: 7px; }
.yazar-bio   { font-size: 13px; color: var(--yazi2); line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────── */
.site-footer { border-top: 1px solid var(--cizgi); background: var(--bg2); padding: 28px var(--kenar) 22px; }
.footer-ic { max-width: var(--max); margin: 0 auto; }
.footer-logo { display: flex; align-items: center; gap: 9px; text-decoration: none; margin-bottom: 12px; }
.footer-acik { font-size: 13px; color: var(--yazi2); line-height: 1.6; margin-bottom: 16px; }
.footer-bilgi { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.footer-satir { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--yazi2); text-decoration: none; }
.footer-satir svg { width: 13px; height: 13px; stroke: var(--mor); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; opacity: .7; }
.footer-linkler { display: flex; flex-wrap: wrap; gap: 7px 14px; padding: 14px 0; border-top: 1px solid var(--cizgi); margin-bottom: 14px; }
.footer-linkler a { font-size: 13px; color: var(--yazi2); text-decoration: none; }
.footer-linkler a:hover { color: var(--mor); }
.footer-alt { font-size: 11px; color: var(--yazi2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; }

/* ── WHATSAPP SABİT ─────────────────────────── */
.wa-fixed {
  position: fixed; bottom: 18px; right: 18px; z-index: 48;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.38);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.wa-fixed:hover { transform: scale(1.07); box-shadow: 0 6px 24px rgba(37,211,102,.48); }
.wa-fixed svg { width: 26px; height: 26px; fill: #fff; }

/* ── SAYFALAMA ──────────────────────────────── */
.sayfalama {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 5px; padding: 28px 0 4px;
}
.sayfalama .navigation { display: contents; }
.sayfalama .nav-links  { display: contents; }
.sayfalama a,
.sayfalama span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 6px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--yazi2);
  text-decoration: none; transition: background .15s; line-height: 1;
}
.sayfalama a:hover               { background: var(--mor-bg); color: var(--mor); }
.sayfalama span.current          { background: var(--mor); color: #fff; }
.sayfalama span.dots             { background: none; }

/* ── ARŞİV BAŞLIĞI ──────────────────────────── */
.arsiv-baslik {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--cizgi);
  margin-bottom: 24px;
}
.arsiv-acik {
  font-size: 14px;
  color: var(--yazi2);
  line-height: 1.6;
  margin-top: 8px;
}
