/* ============================================================
   Payas Kültür Atlası — Ana stil dosyası
   Renk dili: Payas Belediyesi logosundan koyu yeşil + altın
   ============================================================ */

:root {
  --green-900: #0f3123;
  --green-800: #1b4a36;
  --green-700: #235c44;
  --green-600: #2e7256;
  --gold-500: #c9a227;
  --gold-400: #e0bf58;
  --gold-100: #f6edd2;
  --sea-500: #2f8f83;
  --cream: #faf7f0;
  --paper: #ffffff;
  --ink: #22302a;
  --ink-soft: #5a6b62;
  --line: #e6e0d2;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(18, 53, 39, .08);
  --shadow-md: 0 6px 24px rgba(18, 53, 39, .12);
  --shadow-lg: 0 16px 48px rgba(18, 53, 39, .18);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection { background: var(--gold-400); color: var(--green-900); }

/* İnce, zarif kaydırma çubuğu */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: #c6bda6; border-radius: 6px; border: 2px solid var(--cream); }
::-webkit-scrollbar-thumb:hover { background: var(--green-600); }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--green-900); line-height: 1.25; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Üst menü ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 244, .88);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(201,162,39,.28);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 2px 14px rgba(18,53,39,.05);
}
/* Üstte incecik altın-yeşil şerit */
.site-header::before {
  content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--green-800), var(--gold-500) 35%, var(--gold-400) 50%, var(--gold-500) 65%, var(--green-800));
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo { height: 46px; width: auto; }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.25;
  padding-left: 14px; border-left: 1px solid rgba(201,162,39,.4);
}
.brand-text strong { font-family: var(--font-head); font-size: 1.06rem; color: var(--green-900); white-space: nowrap; }
.brand-text small { font-size: .66rem; color: var(--gold-500); letter-spacing: .09em; text-transform: uppercase; font-weight: 600; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-size: .9rem; font-weight: 500; color: var(--ink); position: relative;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: background .2s, color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: 1px; width: 0; height: 2px; border-radius: 2px;
  background: var(--gold-500); transition: width .25s;
}
.main-nav a:hover { background: rgba(201,162,39,.1); color: var(--green-800); }
.main-nav a:hover::after { width: 40%; }
.main-nav a.active { color: var(--green-800); font-weight: 700; background: rgba(27,74,54,.06); }
.main-nav a.active::after { width: 40%; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(18,53,39,.12); }
.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--green-700), var(--green-800)); color: #fff;
  padding: 9px 20px; border-radius: 999px; margin-left: 8px;
  font-weight: 600; border: 1px solid rgba(224,191,88,.35);
  box-shadow: 0 3px 12px rgba(18,53,39,.22); transition: box-shadow .2s, transform .2s;
}
.main-nav .nav-cta:hover { background: linear-gradient(135deg, var(--green-600), var(--green-700)); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(18,53,39,.3); }
.main-nav .nav-cta::after { display: none; }

/* Dil değiştirici */
.lang-switch {
  display: inline-flex; border: 1px solid rgba(201,162,39,.45); border-radius: 999px;
  overflow: hidden; background: var(--paper); box-shadow: var(--shadow-sm);
  margin-left: 10px; padding: 2px;
}
.lang-switch a {
  padding: 5px 12px !important; font-size: .76rem; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); border-radius: 999px !important;
}
.lang-switch a::after { display: none !important; }
.lang-switch a.active { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)) !important; color: var(--green-900) !important; }
.lang-switch a:not(.active):hover { color: var(--green-700); background: transparent !important; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--green-900); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0c2a1e 0%, var(--green-900) 45%, #143d2c 100%);
  color: #fff;
  padding: 100px 0 116px;
}
/* Külliye fotoğrafı: yeşil dokuya gömülü, ışıkla eriyen arka plan */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url('/assets/img/items/sokullu-mehmet-pasa-kulliyesi.jpg');
  background-size: cover; background-position: center 38%;
  opacity: .22; mix-blend-mode: luminosity;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
          mask-image: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.35) 70%, transparent);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(1000px 460px at 88% -12%, rgba(224,191,88,.20), transparent 62%),
    radial-gradient(820px 560px at -8% 112%, rgba(47,143,131,.20), transparent 58%),
    linear-gradient(180deg, rgba(12,42,30,.15), rgba(12,42,30,.65));
}
/* Süzülen ışık küreleri */
.hero-art { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-art .glow {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5;
  animation: drift 16s ease-in-out infinite alternate;
}
.glow-1 { width: 420px; height: 420px; right: -100px; top: -120px; background: radial-gradient(circle, rgba(224,191,88,.4), transparent 70%); }
.glow-2 { width: 360px; height: 360px; left: -120px; bottom: -140px; background: radial-gradient(circle, rgba(47,143,131,.35), transparent 70%); animation-delay: -6s; }
.glow-3 { width: 260px; height: 260px; left: 45%; top: 30%; background: radial-gradient(circle, rgba(46,114,86,.45), transparent 70%); animation-delay: -11s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(46px, -34px) scale(1.14); }
}
/* Altın ışık zerreleri (JS üretir) */
.dust { position: absolute; inset: 0; overflow: hidden; }
.dust i {
  position: absolute; bottom: -12px; display: block; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,200,110,.95), rgba(230,200,110,0) 70%);
  animation: rise linear infinite; opacity: 0;
}
@keyframes rise {
  0%   { transform: translate(0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .85; }
  100% { transform: translate(var(--sway, 24px), -78vh) scale(1.15); opacity: 0; }
}
.hero-inner { position: relative; max-width: 780px; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,191,88,.1); border: 1px solid rgba(224,191,88,.35);
  color: var(--gold-400); font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 16px; border-radius: 999px; margin-bottom: 26px;
  backdrop-filter: blur(6px); box-shadow: 0 0 24px rgba(224,191,88,.12) inset;
}
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 20px; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--gold-500) 20%, #f3dc8e 40%, var(--gold-500) 60%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero p { font-size: 1.12rem; color: rgba(255,255,255,.85); max-width: 640px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
  font-family: var(--font-body);
}
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: var(--green-900); box-shadow: 0 6px 22px rgba(201,162,39,.35); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(201,162,39,.45); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-green { background: var(--green-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn-green:hover { background: var(--green-700); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

/* Hero istatistik şeridi */
.stat-strip {
  position: relative; margin-top: -46px; z-index: 5;
}
.stat-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 26px 30px; border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.stat-cards::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--sea-500), var(--green-700));
}
.stat-card { text-align: center; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--green-800); }
.stat-card span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Fareyi takip eden ışık hüzmesi ---------- */
#cursorGlow {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  opacity: 0; transition: opacity .5s;
  background:
    radial-gradient(70px circle at var(--mx, 50%) var(--my, 50%), rgba(224,191,88,.14), transparent 70%),
    radial-gradient(190px circle at var(--mx, 50%) var(--my, 50%), rgba(224,191,88,.05), transparent 70%);
}
#cursorGlow.on { opacity: 1; }
#cursorDot {
  position: fixed; left: 0; top: 0; width: 7px; height: 7px; border-radius: 50%;
  pointer-events: none; z-index: 61; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle, rgba(243,220,142,.95), rgba(224,191,88,.25) 60%, transparent);
  box-shadow: 0 0 10px 3px rgba(224,191,88,.3);
  transform: translate(-50%, -50%);
}
#cursorDot.on { opacity: .9; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  #cursorGlow, #cursorDot { display: none; }
}

/* ---------- Kaydırınca beliren öğeler ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Bölümler ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head h2::after {
  content: ""; display: block; width: 66px; height: 3px; margin-top: 10px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--sea-500), transparent);
}
.section-head .kicker {
  display: block; color: var(--gold-500); font-family: var(--font-body); font-size: .78rem;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px;
}
.section-head p { color: var(--ink-soft); max-width: 520px; }
.section-alt { background: linear-gradient(180deg, #dfe8d4 0%, #e9eedd 55%, #e3ead6 100%); }

/* ---------- Dalgalı bölüm geçişleri ----------
   Tüm ayraçlar saf CSS/SVG; görünümlerde işaretleme değişikliği gerektirmez.
   İki katman (biri yarı saydam) yumuşak bir derinlik hissi verir. */

/* Koyu hero'dan açık içeriğe geçiş: sonraki bölümün üstüne krem dalga çizilir */
.hero + .section, .page-hero + .section { position: relative; }
/* Anasayfada hero'yu istatistik şeridi izler; dalga şeridin arkasına, hero'nun alt kenarına hizalanır */
.hero + .stat-strip::before {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  width: 100vw; top: -28px; height: 74px; z-index: -1; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' d='M0,34 C180,10 340,58 540,44 C740,30 860,4 1080,22 C1240,35 1350,52 1440,30 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 64px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' fill-opacity='.45' d='M0,20 C200,52 420,6 640,26 C880,48 1080,10 1260,24 C1350,31 1400,40 1440,36 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 74px no-repeat;
}
.hero + .section::before, .page-hero + .section::before {
  content: ""; position: absolute; left: 0; right: 0; top: -73px; height: 74px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' d='M0,34 C180,10 340,58 540,44 C740,30 860,4 1080,22 C1240,35 1350,52 1440,30 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 64px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' fill-opacity='.45' d='M0,20 C200,52 420,6 640,26 C880,48 1080,10 1260,24 C1350,31 1400,40 1440,36 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 74px no-repeat;
}

/* Açık zeminli alternatif bölümün üst ve alt kenarları dalgalı olur */
.section-alt { position: relative; padding-top: 104px; padding-bottom: 104px; }
.section-alt::before, .section-alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 74px; pointer-events: none;
}
.section-alt::before {
  top: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' d='M0,0 L1440,0 L1440,30 C1350,52 1240,35 1080,22 C860,4 740,30 540,44 C340,58 180,10 0,34 Z'/%3E%3C/svg%3E") center top / 100% 64px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' fill-opacity='.45' d='M0,0 L1440,0 L1440,36 C1400,40 1350,31 1260,24 C1080,10 880,48 640,26 C420,6 200,52 0,20 Z'/%3E%3C/svg%3E") center top / 100% 74px no-repeat;
}
.section-alt::after {
  bottom: 0;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' d='M0,34 C180,10 340,58 540,44 C740,30 860,4 1080,22 C1240,35 1350,52 1440,30 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 64px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%23faf7f0' fill-opacity='.45' d='M0,20 C200,52 420,6 640,26 C880,48 1080,10 1260,24 C1350,31 1400,40 1440,36 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 74px no-repeat;
}

/* Açık içerikten koyu yeşil footer'a geçiş */
.site-footer { position: relative; }
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -73px; height: 74px;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%230f3123' d='M0,34 C180,10 340,58 540,44 C740,30 860,4 1080,22 C1240,35 1350,52 1440,30 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 64px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 64' preserveAspectRatio='none'%3E%3Cpath fill='%230f3123' fill-opacity='.4' d='M0,20 C200,52 420,6 640,26 C880,48 1080,10 1260,24 C1350,31 1400,40 1440,36 L1440,64 L0,64 Z'/%3E%3C/svg%3E") center bottom / 100% 74px no-repeat;
}

/* ---------- Kartlar ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.item-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.item-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.item-card-media {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative; overflow: hidden;
}
.item-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(240px 130px at 78% -20%, rgba(255,255,255,.22), transparent 65%);
}
.item-card-media.has-img {
  display: block; background-size: cover; background-position: center;
  transition: transform .5s ease, filter .4s;
}
.item-card-media.has-img::after { display: none; }
.item-card:hover .item-card-media.has-img { filter: brightness(1.07) saturate(1.06); transform: scale(1.05); }
.item-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.item-card h3 { font-size: 1.18rem; margin: 8px 0 8px; }
.item-card h3 a { color: inherit; }
.item-card h3 a:hover { color: var(--green-600); }
.item-card p { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.item-card .card-link { margin-top: 14px; font-weight: 600; font-size: .88rem; color: var(--green-700); }
.item-card .card-link:hover { color: var(--gold-500); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; color: #fff;
}

/* ---------- Kategori filtre şeridi ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; align-items: center; }
.filter-bar a {
  padding: 8px 18px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink);
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.filter-bar a:hover { border-color: var(--green-600); color: var(--green-700); transform: translateY(-1px); }
.filter-bar a.active { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.filter-bar a small {
  font-size: .7rem; font-weight: 700; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: var(--gold-100); color: var(--green-800); vertical-align: 1px;
}
.filter-bar a.active small { background: rgba(255,255,255,.2); color: #fff; }

.search-form { display: flex; gap: 10px; flex: 1; min-width: 240px; max-width: 380px; margin-left: auto; }
.search-form input {
  flex: 1; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font-body); font-size: .9rem; background: var(--paper); outline: none;
}
.search-form input:focus { border-color: var(--green-600); }

/* ---------- Rota kartları ---------- */
.route-card {
  position: relative; border-radius: var(--radius); overflow: hidden; color: #fff;
  padding: 34px 28px; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s;
}
.route-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.route-card h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.route-card p { font-size: .9rem; color: rgba(255,255,255,.85); margin-bottom: 14px; }
.route-card .route-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .8rem; color: var(--gold-400); font-weight: 600; }
.route-theme-tarih  { background: linear-gradient(150deg, #6d4a24, #3f2a12); }
.route-theme-lezzet { background: linear-gradient(150deg, #a83c2b, #5e1d13); }
.route-theme-yasam  { background: linear-gradient(150deg, #2a5d84, #163650); }
.route-theme-doga   { background: linear-gradient(150deg, #2e7d4f, #14402a); }

/* ---------- AI tanıtım bandı ---------- */
.ai-band {
  background:
    radial-gradient(700px 300px at 90% 10%, rgba(201,162,39,.25), transparent 60%),
    linear-gradient(140deg, var(--green-900), var(--green-800));
  border-radius: calc(var(--radius) + 6px); color: #fff;
  padding: 56px 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.ai-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 14px; }
.ai-band p { color: rgba(255,255,255,.82); margin-bottom: 26px; }
.ai-features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ai-feature {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 16px 18px; font-size: .87rem;
}
.ai-feature b { display: block; color: var(--gold-400); margin-bottom: 4px; font-size: .92rem; }

/* ---------- Sayfa başlığı bandı ---------- */
.page-hero {
  background: linear-gradient(150deg, #0c2a1e, var(--green-800) 70%, #1a4c37);
  color: #fff; padding: 60px 0 98px; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 300px at 90% -30%, rgba(224,191,88,.16), transparent 60%),
    radial-gradient(500px 260px at 5% 130%, rgba(47,143,131,.18), transparent 60%);
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); position: relative; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 640px; margin-top: 12px; position: relative; }
.page-hero .kicker {
  display: block; color: var(--gold-400); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; position: relative;
}

/* Kırıntı navigasyonu */
.breadcrumbs {
  position: relative; font-size: .8rem; margin-bottom: 18px; color: rgba(255,255,255,.55);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumbs a { color: rgba(255,255,255,.75); }
.breadcrumbs a:hover { color: var(--gold-400); }
.breadcrumbs b { color: #fff; font-weight: 600; }
.breadcrumbs span { color: rgba(255,255,255,.35); }

/* Başlık altı meta rozetleri */
.meta-badges { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.meta-badges span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.92); font-size: .82rem; font-weight: 500;
  padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* Sonuç bilgisi (atlas) */
.result-info { margin: -12px 0 24px; font-size: .9rem; color: var(--ink-soft); }
.result-info a { margin-left: 10px; font-weight: 600; font-size: .82rem; }

/* ---------- Unsur detay ---------- */
.item-figure { margin: 0 0 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.item-figure img { width: 100%; max-height: 440px; object-fit: cover; }
.item-figure figcaption {
  background: var(--paper); border-top: 1px solid var(--line);
  padding: 8px 16px; font-size: .74rem; color: var(--ink-soft);
}
.item-hero { padding: 64px 0 56px; }
.item-layout { display: grid; grid-template-columns: 1fr 340px; gap: 44px; align-items: start; }
.prose { font-size: 1.02rem; }
.prose p { margin-bottom: 1.2em; }
.prose h2 { margin: 1.6em 0 .6em; font-size: 1.4rem; }

.info-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px;
  transition: box-shadow .25s, transform .25s;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Kültür metinlerine edebi dokunuş: ilk harf süslemesi */
.item-layout .prose > p:first-child::first-letter {
  font-family: var(--font-head); font-size: 3.2em; font-weight: 700; color: var(--green-800);
  float: left; line-height: .85; padding: 4px 10px 0 0;
}
.info-card h3 {
  font-size: .8rem; font-family: var(--font-body); text-transform: uppercase;
  letter-spacing: .1em; color: var(--gold-500); margin-bottom: 16px;
}
.info-card dl { display: grid; gap: 12px; }
.info-card dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.info-card dd { font-weight: 600; font-size: .93rem; }
.info-card ul { list-style: none; }
.info-card li { padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.info-card li:last-child { border-bottom: 0; }
.info-card ol { padding-left: 20px; font-size: .9rem; }
.info-card ol li { padding: 6px 0; border: 0; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag-list span {
  font-size: .76rem; padding: 4px 12px; border-radius: 999px;
  background: var(--gold-100); color: var(--green-800); font-weight: 600;
}

/* ---------- Rota detay: zaman çizelgesi ---------- */
.timeline { position: relative; margin: 20px 0; }
.timeline::before {
  content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px;
  width: 2px; background: linear-gradient(var(--gold-500), var(--green-700));
}
.timeline-stop { position: relative; padding: 0 0 34px 70px; }
.timeline-stop:last-child { padding-bottom: 0; }
.timeline-num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--green-800); color: var(--gold-400); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem;
  border: 3px solid var(--cream); box-shadow: var(--shadow-sm); z-index: 2;
}
.timeline-img {
  width: 100%; max-width: 420px; height: 180px; object-fit: cover;
  border-radius: 12px; box-shadow: var(--shadow-sm); margin-bottom: 12px; display: block;
}
.timeline-stop h3 { font-size: 1.25rem; margin-bottom: 6px; }
.timeline-stop h3 a { color: inherit; }
.timeline-stop h3 a:hover { color: var(--green-600); }
.timeline-note {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold-500);
  border-radius: 0 10px 10px 0; padding: 12px 16px; font-size: .9rem; color: var(--ink-soft); margin-top: 10px;
}

/* ---------- Sohbet asistanı ---------- */
.chat-shell {
  max-width: 820px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-md); overflow: hidden; display: flex; flex-direction: column;
  height: min(72vh, 680px);
}
.chat-head {
  background: linear-gradient(140deg, var(--green-900), var(--green-800)); color: #fff;
  padding: 18px 24px; display: flex; align-items: center; gap: 14px;
}
.chat-head img { height: 38px; }
.chat-head b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.chat-head small { color: rgba(255,255,255,.7); font-size: .78rem; }
.chat-status { margin-left: auto; display: flex; align-items: center; gap: 7px; font-size: .78rem; color: #9fe8c4; }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; }
.chat-popout {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; margin-left: 12px; flex-shrink: 0;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
  color: #fff; cursor: pointer; transition: background .2s, transform .2s;
}
.chat-popout:hover { background: rgba(224,191,88,.35); transform: translateY(-1px); }

/* Bağımsız sohbet penceresi: sohbet kabuğu tüm pencereyi doldurur */
.chat-window-body { background: var(--cream); padding: 12px; min-height: 100vh; display: flex; }
.chat-window-body .chat-shell-window {
  flex: 1; max-width: none; height: auto; min-height: calc(100vh - 24px);
}

.chat-body { flex: 1; overflow-y: auto; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; background: #fbf9f4; }
.msg {
  max-width: 82%; padding: 13px 18px; border-radius: 16px; font-size: .93rem;
  white-space: pre-wrap; word-wrap: break-word;
  animation: msgIn .35s ease both;
}
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.msg-user { align-self: flex-end; background: var(--green-800); color: #fff; border-bottom-right-radius: 4px; }
.msg-bot  { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg-bot .sources { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .76rem; color: var(--ink-soft); }
.msg-error { align-self: center; background: #fdecea; color: #a4322a; border: 1px solid #f5c8c4; font-size: .85rem; }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 24px 12px; background: #fbf9f4; }
.chat-suggest button {
  background: var(--gold-100); border: 1px solid #ecdfb5; color: var(--green-800);
  padding: 7px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; cursor: pointer;
  font-family: var(--font-body); transition: background .2s;
}
.chat-suggest button:hover { background: var(--gold-400); }

.chat-input { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.chat-input textarea {
  flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 16px; font-family: var(--font-body); font-size: .93rem; outline: none; max-height: 120px;
}
.chat-input textarea:focus { border-color: var(--green-600); }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--green-600); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

/* ---------- Rota planlayıcı formu ---------- */
.planner-layout { display: grid; grid-template-columns: 400px 1fr; gap: 36px; align-items: start; }
.planner-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm); position: sticky; top: 96px;
}
.planner-form h3 { margin-bottom: 20px; font-size: 1.2rem; }
.form-group { margin-bottom: 22px; }
.form-group > label { display: block; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 10px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check-pill { position: relative; }
.check-pill input { position: absolute; opacity: 0; }
.check-pill span {
  display: block; text-align: center; padding: 9px 8px; border-radius: 10px; font-size: .84rem;
  border: 1px solid var(--line); background: var(--cream); cursor: pointer; transition: all .18s; font-weight: 500;
}
.check-pill span:hover { border-color: var(--green-600); transform: translateY(-1px); }
.check-pill input:checked + span {
  background: var(--green-800); color: #fff; border-color: var(--green-800);
  box-shadow: 0 4px 12px rgba(27,74,54,.28);
}
.check-pill input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
.form-group select, .form-group input[type="text"], .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem; background: var(--cream); outline: none;
}
.form-group select:focus, .form-group textarea:focus { border-color: var(--green-600); }

.plan-result {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 44px; box-shadow: var(--shadow-sm); min-height: 420px;
}
.plan-placeholder { text-align: center; color: var(--ink-soft); padding: 80px 20px; }
.plan-placeholder .big { font-size: 3.4rem; margin-bottom: 18px; }
.plan-md h1 { font-size: 1.7rem; margin-bottom: 14px; }
.plan-md h2 { font-size: 1.2rem; margin: 1.5em 0 .5em; padding-bottom: 6px; border-bottom: 2px solid var(--gold-100); }
.plan-md p { margin-bottom: 1em; font-size: .95rem; }
.plan-md ul { padding-left: 22px; margin-bottom: 1em; font-size: .95rem; }
.plan-md strong { color: var(--green-800); }

/* ---------- QR anlatıcı sayfası ---------- */
.page-qr main { min-height: 100vh; }
.qr-shell { max-width: 620px; margin: 0 auto; padding: 40px 22px 70px; }
.qr-card {
  background: var(--paper); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; border: 1px solid var(--line);
}
.qr-head { background: linear-gradient(150deg, var(--green-900), var(--green-700)); color: #fff; padding: 36px 30px; text-align: center; }
.qr-head .qr-icon { font-size: 3rem; margin-bottom: 12px; }
.qr-head h1 { color: #fff; font-size: 1.7rem; }
.qr-head p { color: var(--gold-400); font-size: .9rem; margin-top: 6px; }
.qr-img { width: 100%; max-height: 300px; object-fit: cover; }
.qr-content { padding: 30px; }
.qr-content .prose { font-size: .97rem; }
.qr-actions { display: flex; gap: 12px; padding: 0 30px 30px; flex-wrap: wrap; }

/* ---------- Hakkında / zaman çizelgesi ---------- */
.history-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.era-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.era-card .era-date { color: var(--gold-500); font-weight: 700; font-size: .84rem; letter-spacing: .05em; }
.era-card h3 { margin: 8px 0 10px; font-size: 1.15rem; }
.era-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Bildirim / uyarı ---------- */
.notice {
  border-radius: 12px; padding: 16px 20px; font-size: .9rem; margin-bottom: 24px;
  background: var(--gold-100); border: 1px solid #ecdfb5; color: #7a611a;
}
.notice a { font-weight: 700; }

/* ---------- Yönetim paneli ---------- */
.admin-body { background: #f1efe8; }
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-side { background: var(--green-900); color: #fff; padding: 26px 0; }
.admin-side .brand { padding: 0 22px 24px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 18px; }
.admin-side .brand img { height: 40px; background: #fff; border-radius: 8px; padding: 4px; }
.admin-side nav a {
  display: block; padding: 11px 24px; color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 500;
}
.admin-side nav a:hover, .admin-side nav a.active { background: rgba(255,255,255,.08); color: #fff; border-right: 3px solid var(--gold-500); }
.admin-main { padding: 36px 40px; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 26px; }
.admin-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th { text-align: left; padding: 10px 12px; border-bottom: 2px solid var(--line); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:hover td { background: var(--cream); }
.admin-form label { display: block; font-weight: 600; font-size: .86rem; margin: 18px 0 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .92rem; outline: none;
}
.admin-form textarea { min-height: 140px; resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus { border-color: var(--green-600); }
.admin-login { max-width: 400px; margin: 12vh auto; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.admin-stat { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px 24px; }
a.admin-stat { text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
a.admin-stat:hover { border-color: var(--gold, #c9a227); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.admin-stat b { display: block; font-size: 1.7rem; font-family: var(--font-head); color: var(--green-800); }
.admin-stat span { font-size: .8rem; color: var(--ink-soft); }
.flash-ok { background: #e7f6ec; border: 1px solid #b7e2c5; color: #1e6b3a; border-radius: 10px; padding: 12px 18px; margin-bottom: 20px; font-size: .9rem; }
.flash-err { background: #fdecea; border: 1px solid #f5c8c4; color: #a4322a; border-radius: 10px; padding: 12px 18px; margin-bottom: 20px; font-size: .9rem; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }
.btn-danger { background: #b03a2e; color: #fff; }
.btn-danger:hover { background: #922d23; }

/* ---------- Yukarı dön butonu ---------- */
#backTop {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--green-800); color: var(--gold-400); font-size: 1.2rem; font-weight: 700;
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
#backTop.show { opacity: 1; visibility: visible; transform: none; }
#backTop:hover { background: var(--green-700); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); margin-top: 80px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social a {
  display: inline-flex !important; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; padding: 0 !important;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.8); transition: all .2s;
}
.footer-social a:hover { background: var(--gold-500); color: var(--green-900); transform: translateY(-2px); }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 22px 44px;
}
.footer-logo { height: 52px; background: #fff; padding: 6px 10px; border-radius: 10px; margin-bottom: 16px; }
.footer-brand p { font-size: .86rem; }
.site-footer h4 { color: var(--gold-400); font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.site-footer a { display: block; color: rgba(255,255,255,.75); font-size: .88rem; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.footer-contact { font-size: .86rem; line-height: 1.9; }
.footer-contact a { display: inline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .8rem; }

/* ---------- Duyarlı tasarım ---------- */
@media (max-width: 1140px) {
  .brand-text { display: none; }
  .main-nav a { padding: 8px 10px; font-size: .87rem; }
}

@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-band { grid-template-columns: 1fr; padding: 40px 32px; }
  .planner-layout { grid-template-columns: 1fr; }
  .planner-form { position: static; }
  .item-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .admin-shell { grid-template-columns: 200px 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand-text small { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 79px; left: 0; right: 0; background: var(--paper);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: translateY(-130%); transition: transform .3s; z-index: 99;
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav a { padding: 13px 26px; border-radius: 0; font-size: .95rem; }
  .main-nav a::after { display: none; }
  .main-nav .nav-cta { margin: 10px 22px 4px; text-align: center; border-radius: 12px; }
  .lang-switch { margin: 10px 22px 6px; align-self: flex-start; }
  .lang-switch a { padding: 8px 18px; }

  .hero { padding: 64px 0 88px; }
  .card-grid { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(3, 1fr); padding: 18px 14px; gap: 8px; }
  .stat-card b { font-size: 1.4rem; }
  .stat-card span { font-size: .72rem; }
  .ai-features { grid-template-columns: 1fr; }
  .history-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan-result { padding: 26px 22px; }
  .chat-shell { height: 70vh; }
  .msg { max-width: 92%; }
  .section { padding: 52px 0; }
  .section-alt { padding-top: 88px; padding-bottom: 88px; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { padding: 14px 0; }
  .admin-side nav { display: flex; overflow-x: auto; }
  .admin-side nav a { white-space: nowrap; }
  .admin-side .brand { display: none; }
  .admin-main { padding: 24px 18px; }
  .check-grid { grid-template-columns: 1fr 1fr; }
}
