/* Tüm sayfalarda ortak: temel, üst menü, düğmeler, pencere, formlar. Ana sayfa: yolculuk.css */
:root {
  --gece: #07090f;
  --panel: rgba(18, 23, 37, .74);
  --yazi: #ece6d8;
  --soluk: #9ba2b5;
  --altin: #d6b06a;
  --altin-acik: #f6dfa6;
  --kizil: #a9121d;
  --cizgi: rgba(214, 176, 106, .24);
  --baslik: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --govde: "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--gece); color: var(--yazi); font: 16px/1.65 var(--govde); overflow-x: hidden; }
img, video { max-width: 100%; display: block; }
a { color: var(--altin-acik); }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--altin-acik); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--baslik); font-weight: 600; line-height: 1.2; }
.soluk { color: var(--soluk); }
.alt p.soluk { font-weight: 700; }

/* ---------- Üst menü ---------- */
.ust { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 10px clamp(16px, 4vw, 48px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.ust.dolu, .ust.acik { background: rgba(7, 9, 15, .9); backdrop-filter: blur(12px); border-color: var(--cizgi); }
.marka img { width: 112px; height: auto; }
.menu { display: flex; gap: 26px; margin-inline: auto; }
.menu a { color: var(--yazi); text-decoration: none; font-family: var(--baslik); letter-spacing: .04em; text-shadow: 0 1px 8px #000; }
.menu a:hover { color: var(--altin-acik); }
.menu-hesap { display: flex; align-items: stretch; gap: 8px; min-height: 36px; }
.menu-ac { display: none; background: none; border: 1px solid var(--cizgi); border-radius: 6px; width: 40px; height: 36px; cursor: pointer; }

/* ---------- İndir / Sıralama / WhatsApp ---------- */
.ust-ek { display: flex; gap: 8px; margin-left: auto; }
/* Ana sayfada WhatsApp butonu tam ortada */
@media (min-width: 1880px) { .ana .ust-ek { position: absolute; left: 50%; translate: -50% 0; margin: 0; } .ana .menu-hesap { margin-left: auto; } }
.ust-buton { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--altin); border-radius: 3px; background: rgba(10, 13, 22, .8); color: var(--altin-acik); font: .92rem var(--baslik); letter-spacing: .04em; text-decoration: none; white-space: nowrap; transition: transform .2s, box-shadow .2s, filter .2s; }
.ust-buton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ust-buton:hover { transform: translateY(-2px); filter: brightness(1.15); box-shadow: 0 8px 22px rgba(214, 176, 106, .3); }
.ust-buton.indir { background: linear-gradient(180deg, #d9a441, #8a5a12); border-color: #ffe3a0; color: #fff8e6; }
.ust-buton.whatsapp { background: linear-gradient(180deg, #1faa59, #0d6b35); border-color: #8ff0b5; color: #fff; }

/* ---------- Düğmeler ve rozet ---------- */
.dugme { display: inline-block; padding: 13px 30px; border: 1px solid var(--altin); border-radius: 3px; background: rgba(10, 13, 22, .7); color: var(--altin-acik); font-family: var(--baslik); font-size: 1.02rem; letter-spacing: .06em; text-decoration: none; text-align: center; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.dugme:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(214, 176, 106, .25); }
.dugme.ana-dugme { background: linear-gradient(180deg, #c81d28, #7c0b13); border-color: #e7bd74; color: #fff3d6; }
.dugme.ana-dugme:hover { filter: brightness(1.14); box-shadow: 0 8px 28px rgba(200, 29, 40, .45); }
.dugme.kucuk { padding: 6px 16px; font-size: .92rem; }
.dugme.pasif { opacity: .55; cursor: default; pointer-events: none; }
.dugme:disabled { opacity: .55; cursor: wait; transform: none; }
.dugmeler { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.rozet { display: inline-block; padding: 2px 12px; border: 1px solid var(--cizgi); border-radius: 20px; background: rgba(169, 18, 29, .3); color: var(--altin-acik); font-size: .8rem; }

/* ---------- Pencere ---------- */
.pencere { margin: auto; width: min(900px, calc(100% - 32px)); max-height: 90vh; padding: 28px; color: var(--yazi); background: #0e1320; border: 1px solid var(--altin); border-radius: 10px; }
.pencere::backdrop { background: rgba(3, 4, 8, .85); backdrop-filter: blur(6px); }
.pencere[open] { animation: acil .35s ease-out; }
@keyframes acil { from { opacity: 0; transform: perspective(900px) rotateX(18deg) scale(.92); } }
.pencere h3 { color: var(--altin-acik); font-size: 1.5rem; margin: 6px 0; }
.pencere ul { margin: 14px 0 0 20px; }
.pencere-gorsel { width: 100%; max-height: 65vh; object-fit: contain; margin-bottom: 12px; }
.kapat { float: right; margin: -16px -12px 0 8px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; }

.alt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px; border-top: 1px solid var(--cizgi); text-align: center; font-size: .9rem; }
.alt img { width: 160px; height: auto; }
.alt-hukuk { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 4px 0; }
.alt-hukuk a { padding: 5px 16px; border: 1px solid var(--altin); border-radius: 20px; background: rgba(8, 10, 18, .82); color: var(--altin-acik); font: 600 .86rem var(--baslik); text-decoration: none; transition: background .2s, box-shadow .2s; }
.alt-hukuk a:hover { background: linear-gradient(180deg, #c81d28, #6d0810); box-shadow: 0 0 16px rgba(255, 70, 60, .45); }
@media (max-width: 600px) { .alt-hukuk { gap: 6px; } .alt-hukuk a { padding: 4px 9px; font-size: .74rem; } }

/* ---------- Kayıt / giriş / hesap ---------- */
.form-sayfa main { overflow-x: clip; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; padding: 100px 16px 56px; perspective: 1200px; background: linear-gradient(rgba(5, 7, 12, .55), rgba(5, 7, 12, .85)), var(--arka) center / cover fixed; }
.kayit-sayfa { --arka: url("/assets/img/saman.jpg"); }
.giris-sayfa { --arka: url("/assets/img/savasci.jpg"); }
.hesap-sayfa { --arka: url("/assets/img/kopru.jpg"); }
.kutu { min-width: 0; width: min(460px, 100%); padding: clamp(24px, 5vw, 40px); background: rgba(12, 16, 27, .84); backdrop-filter: blur(14px); border: 1px solid var(--cizgi); border-radius: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .65); animation: acil .6s ease-out; }
.kutu.genis { width: min(760px, 100%); }
.kutu h1 { text-align: center; color: var(--altin-acik); font-size: 1.9rem; }
.kutu h2 { margin: 30px 0 8px; font-size: 1.25rem; color: var(--altin-acik); }
.kutu > p { text-align: center; color: var(--soluk); margin: 6px 0 18px; }
.alan { margin-top: 14px; }
.alan label { display: block; margin-bottom: 5px; font-size: .9rem; }
.alan input { width: 100%; padding: 11px 13px; background: rgba(4, 6, 11, .75); border: 1px solid var(--cizgi); border-radius: 5px; }
.alan textarea { width: 100%; min-height: 120px; padding: 11px 13px; background: rgba(4, 6, 11, .75); color: var(--yazi); border: 1px solid var(--cizgi); border-radius: 5px; font: inherit; resize: vertical; }
.alan textarea:focus { border-color: var(--altin); outline: none; box-shadow: 0 0 0 3px rgba(214, 176, 106, .2); }
.alan input:focus { border-color: var(--altin); outline: none; box-shadow: 0 0 0 3px rgba(214, 176, 106, .2); }
.alan small { display: block; margin-top: 4px; color: var(--soluk); font-size: .8rem; }
.alan-cift { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.alan-cift .alan { min-width: 0; }
.kutu form .dugme { width: 100%; margin-top: 22px; }
.mesaj { margin-top: 14px; padding: 10px 14px; border-radius: 5px; font-size: .92rem; }
.mesaj:empty { display: none; }
.mesaj.hata { background: rgba(169, 18, 29, .3); border: 1px solid #c4414a; }
.mesaj.basari { background: rgba(35, 130, 80, .3); border: 1px solid #4fb57f; }
.tuzak { position: absolute; left: -9999px; }
.kutu .alt-baglanti { margin: 18px 0 0; }
.bilgi-satir { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.bilgi-satir span:first-child { color: var(--soluk); }
.noscript { position: fixed; inset: auto 0 0; padding: 12px; text-align: center; background: var(--kizil); z-index: 99; }

@media (max-width: 1760px) {
  .menu-ac { display: block; }
  .menu { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 14px; padding: 18px 24px; background: rgba(7, 9, 15, .97); border-bottom: 1px solid var(--cizgi); }
  .ust.acik .menu { display: flex; }
}
.menu + .ust-ek { margin-left: 0; }
@media (max-width: 1760px) { .menu + .ust-ek { margin-left: auto; } }
/* Dar ekran: İndir, Sıralama ve WhatsApp ikinci satıra iner */
@media (max-width: 760px) {
  .ust { flex-wrap: wrap; gap: 8px 6px; }
  .ust::after { content: ""; order: 4; width: 100%; margin-top: -8px; }
  .menu-hesap { display: contents; }
  .menu-hesap .dugme { order: 1; }
  .menu-hesap .dugme:first-of-type { margin-left: auto; }
  .menu-ac { order: 3; }
  .ust-buton { order: 5; flex: 1 1 0; min-width: 0; overflow: hidden; justify-content: center; gap: 5px; padding: 5px 4px; font-size: .76rem; }
  .ust .ust-ek { order: 6; flex: 1.5 1 0; min-width: 0; margin: 0; }
  .ust-ek .ust-buton { flex: 1; }
  .ust-buton svg { width: 15px; height: 15px; }
  .form-sayfa main { padding-top: 140px; }
}

/* ---------- WhatsApp duyuru afişi ---------- */
.duyuru { margin: auto; padding: 0; border: 0; background: transparent; overflow: visible; width: min(560px, 92vw, 86vh); max-width: none; max-height: none; }
.duyuru::backdrop { background: rgba(3, 4, 8, .82); backdrop-filter: blur(5px); }
.duyuru[open] { animation: acil .4s ease-out; }
.duyuru-afis { display: block; border-radius: 10px; overflow: hidden; box-shadow: 0 0 50px rgba(40, 220, 110, .35), 0 30px 60px rgba(0, 0, 0, .7); transition: transform .2s, filter .2s; }
.duyuru-afis:hover { transform: scale(1.015); filter: brightness(1.08); }
.duyuru-afis img { width: 100%; height: auto; }
.duyuru-kapat { position: absolute; top: -14px; right: -14px; z-index: 1; width: 42px; height: 42px; border-radius: 50%; border: 2px solid #ffe3a0; background: linear-gradient(#e0242f, #8d0b14); color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: 0 6px 16px rgba(0, 0, 0, .6); }
.duyuru-kapat:hover { filter: brightness(1.2); }

@media (max-width: 520px) {
  .ust { gap: 10px; padding-inline: 12px; }
  .marka img { width: 82px; }
  .menu-hesap .dugme { padding: 5px 9px; font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Kopyalama / sürükleme / yakınlaştırma kapalı; form alanları normal çalışır */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img, video, canvas, svg { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* Üst menü düğmeleri hiçbir genişlikte kırılmaz ve üst üste binmez */
.menu-hesap .dugme { white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1000px) {
  .ust { gap: 10px; padding-inline: 14px; }
  .marka img { width: 84px; }
  .menu-hesap, .ust-ek { gap: 6px; }
  .ust-buton { gap: 5px; padding: 5px 8px; font-size: .8rem; }
  .menu-hesap .dugme { padding: 5px 9px; font-size: .8rem; }
}

/* ---------- Site dili ---------- */
html.dil-bekle body { visibility: hidden; }
html[lang="ar"] :is(h1, h2, h3, h4, p, li, dt, dd, span, small, strong, label, a, button) { unicode-bidi: plaintext; }
.dil-sec { position: relative; display: flex; }
.ust-buton.dil { cursor: pointer; justify-content: center; }
.dil-liste { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; display: grid; grid-template-columns: repeat(2, minmax(128px, 1fr)); gap: 4px; width: max-content; max-width: calc(100vw - 24px); padding: 8px; border: 1px solid var(--altin); border-radius: 8px; background: rgba(10, 13, 22, .97); box-shadow: 0 18px 40px rgba(0, 0, 0, .65), 0 0 22px rgba(214, 176, 106, .35); }
.dil-liste[hidden] { display: none; }
.dil-liste button { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--altin-acik); font-size: .86rem; text-align: left; cursor: pointer; }
.dil-liste button:hover { border-color: var(--altin); }
.dil-liste button[aria-pressed="true"] { background: linear-gradient(180deg, #c81d28, #7c0b13); border-color: #e7bd74; color: #fff3d6; }
.dil-liste b { min-width: 22px; font-size: .74rem; opacity: .75; }
@media (max-width: 760px) {
  .dil-sec { order: 5; flex: 0 0 auto; }
  .dil-sec .ust-buton { flex: none; padding-inline: 7px; }
  .dil-liste { left: 0; right: auto; }
  .dil-liste button { padding: 6px 8px; font-size: .82rem; }
}
/* Uzun dillerde üst düğmeler: dar telefonda simge gizlenir, yazı iki satıra inebilir */
@media (max-width: 520px) {
  .ust-buton:not(.dil) svg { display: none; }
  .ust-buton:not(.dil) { font-size: .7rem; letter-spacing: 0; padding-inline: 2px; }
  .ust-buton:not(.dil) span { min-width: 0; white-space: normal; line-height: 1.15; text-align: center; hyphens: auto; overflow-wrap: break-word; }
  .ust-buton.siralama { flex-grow: 1.25; }
  .ust .ust-ek { flex-grow: 1.3; }
}

/* ---------- Ön Kayıt düğmesi, şifre gücü, isteğe bağlı seçim ---------- */
.ust-buton[hidden] { display: none; }
.ust-buton.onkayit { background: linear-gradient(180deg, #c81d28, #7c0b13); border-color: #ffe3a0; color: #fff3d6; }
.alan label em { color: var(--soluk); font-style: normal; font-size: .82em; }
.alan select { width: 100%; padding: 11px 13px; background: #070911; color: var(--yazi); border: 1px solid var(--cizgi); border-radius: 5px; font: inherit; cursor: pointer; }
.alan select:focus { border-color: var(--altin); outline: none; box-shadow: 0 0 0 3px rgba(214, 176, 106, .2); }
.alan option { background: #0c101b; color: var(--yazi); }
.guc { margin-top: 7px; }
.guc-cubuk { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.guc-cubuk i { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); transition: background .25s, box-shadow .25s; }
.guc[data-seviye="1"] { --guc: #e5484d; }
.guc[data-seviye="2"] { --guc: #f0a030; }
.guc[data-seviye="3"] { --guc: #cfd84a; }
.guc[data-seviye="4"] { --guc: #46d17f; }
.guc:not([data-seviye="0"]) small { color: var(--guc); }
.guc:not([data-seviye="0"]) i:nth-child(1), .guc:is([data-seviye="2"], [data-seviye="3"], [data-seviye="4"]) i:nth-child(2), .guc:is([data-seviye="3"], [data-seviye="4"]) i:nth-child(3), .guc[data-seviye="4"] i:nth-child(4) { background: var(--guc); box-shadow: 0 0 10px -1px var(--guc); }
/* Ön Kayıt düğmesiyle orta genişlikte yer daralır: simgeler gizlenir, gerekirse ikinci satıra iner */
@media (min-width: 761px) and (max-width: 1180px) {
  .ust { flex-wrap: wrap; row-gap: 6px; }
  .menu-hesap { flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
  .ust-buton:not(.dil) svg { display: none; }
}

/* Uzun dillerde (ör. Almanca) kelime ortasından bölünmez: düğme en uzun kelime kadar yer alır, sığmazsa alt satıra geçer */
@media (max-width: 760px) {
  .ust .ust-buton:not(.dil) { min-width: min-content; overflow: visible; }
  .ust .ust-ek { flex-wrap: wrap; min-width: min-content; }
  .ust .ust-buton:not(.dil) span { overflow-wrap: normal; hyphens: manual; }
}
@media (max-width: 380px) {
  .ust { column-gap: 4px; }
  .ust .ust-ek { gap: 4px; }
  .ust .ust-buton:not(.dil) { font-size: .66rem; padding-inline: 1px; }
  .ust .dil-sec .ust-buton { padding-inline: 5px; }
}
/* Rumence çok dar telefonda üst menü üç satıra iner: sayfa içeriği altında kalmasın */
@media (max-width: 380px) { html[lang="ro"] body:not(.ana) main { margin-top: 22px; } }
