/* Ahkam Kestim · canlı oturum tasarımı (telefon + perde). Logodaki dil: koyu dokulu zemin, yırtık siyah bant, sarı-beyaz kalın italik yazı. */
:root {
  --kara: #0E0E0E; --kom: #1A1A1A; --bant: #2A2A27; --sari: #F9D10F; --sari-koyu: #A88A00; --beyaz: #FFFFFF; --gri: #9A9A93; --cizgi: #333;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 .95 0 0 0 0 .7 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--kara); background-image: var(--noise), radial-gradient(120% 80% at 50% 0%, #232323 0%, var(--kara) 65%); background-attachment: fixed;
  color: var(--beyaz); font: 17px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }

/* Yırtık bant etiketi */
.bant { position: relative; display: inline-block; background: var(--bant); background-image: var(--noise); color: var(--sari);
  font-family: Anton, Impact, sans-serif; text-transform: uppercase; letter-spacing: .5px; padding: .25em .9em .3em; transform: rotate(-2.5deg);
  clip-path: polygon(1% 8%, 6% 0, 22% 5%, 40% 1%, 63% 6%, 82% 0, 99% 4%, 97% 30%, 100% 56%, 98% 100%, 74% 94%, 52% 100%, 30% 95%, 9% 100%, 0 96%, 2% 62%, 0 34%); }
.dev { font-family: Anton, Impact, sans-serif; font-weight: 400; text-transform: uppercase; font-style: italic; transform: skewX(-6deg); line-height: 1.04;
  text-shadow: 0 .06em .18em rgba(0, 0, 0, .7); overflow-wrap: anywhere; }
.logo-gol { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .8)); }

/* ---------------- Telefon ---------------- */
.tel { max-width: 520px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 0 18px calc(24px + env(safe-area-inset-bottom)); }
.tel-ust { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 6px; min-height: 64px; }
.tel-ust img { width: 108px; height: auto; }
.tel-ust small { font: 400 14px Anton, Impact, sans-serif; color: var(--gri); letter-spacing: 1px; margin-left: auto; margin-right: 14px; }
.cik { font: 400 14px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--beyaz); text-decoration: none; border: 1.5px solid #555; padding: 5px 10px; border-radius: 3px; }
.cik-alt { font: 400 16px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--beyaz); text-decoration: none; border-bottom: 2px solid var(--sari); padding-bottom: 2px; margin-top: 8px; }
.tel-gov { flex: 1; display: flex; flex-direction: column; padding-top: 8px; }
.tel-gov > .bant { align-self: flex-start; font-size: 14px; }
.tel .soru { font-size: clamp(26px, 8vw, 34px); margin: 16px 0 20px; }
.ortala { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 18px; padding: 24px 0 48px; }
.ortala .buyuklogo { width: min(100%, 360px); height: auto; }
.ortala p { margin: 0; color: #ddd; }
.ortala .bant { font-size: 19px; }
.sec { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: 600 17px Inter, system-ui, sans-serif; color: var(--beyaz);
  background: var(--kom); border: 2px solid var(--cizgi); padding: 14px 16px; margin: 0 0 12px; cursor: pointer; border-radius: 4px; min-height: 58px;
  transition: transform .12s, background .12s; -webkit-tap-highlight-color: transparent; }
.sec .h { font: 400 20px Anton, Impact, sans-serif; color: var(--kara); background: var(--beyaz); width: 32px; height: 32px; display: grid; place-items: center; transform: rotate(-4deg); flex: none; }
.sec[aria-pressed="true"] { background: var(--sari); color: var(--kara); border-color: var(--sari); transform: rotate(-1deg); }
.sec[aria-pressed="true"] .h { background: var(--kara); color: var(--sari); }
.sec:active { transform: scale(.98); }
.olcek { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.olcek .sec { justify-content: center; font: 400 30px Anton, Impact, sans-serif; padding: 0; min-height: 72px; margin: 0; }
.olcek-uc { display: flex; justify-content: space-between; font-size: 13px; color: var(--gri); margin: 8px 2px 0; }
.girdi { width: 100%; font: 600 19px Inter, system-ui, sans-serif; padding: 15px 16px; border: 2px solid var(--sari); background: var(--kom); color: var(--beyaz); border-radius: 4px; margin: 0 0 12px; }
.girdi::placeholder { color: #777; }
.girdi:disabled { border-color: var(--cizgi); }
.dug { width: 100%; font: 400 23px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; background: var(--sari); color: var(--kara); border: 0;
  padding: 13px; border-radius: 4px; transform: rotate(-1deg); box-shadow: 0 6px 0 var(--sari-koyu); cursor: pointer; }
.dug:active { transform: rotate(-1deg) translateY(4px); box-shadow: 0 2px 0 var(--sari-koyu); }
.dug:disabled { background: #555; color: #999; box-shadow: 0 6px 0 #333; }
.etiketler { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.etiketler span { background: var(--beyaz); color: var(--kara); font: 400 15px Anton, Impact, sans-serif; padding: 5px 10px; text-transform: uppercase; transform: rotate(-2deg); }
.etiketler span:nth-child(even) { transform: rotate(1.5deg); }
.not { font-size: 14px; color: var(--gri); margin: 10px 0 0; }
.durum { min-height: 24px; margin: 14px 0 0; text-align: center; font: 400 15px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: var(--sari); }
.durum.hata { color: #FF7A6B; }
.kod-gir { text-align: center; font: 400 44px Anton, Impact, sans-serif; letter-spacing: 10px; padding: 10px; }
.tel-alt { text-align: center; font-size: 12px; color: #6f6f69; margin-top: 18px; }
.bekle-nokta { display: flex; gap: 8px; justify-content: center; }
.bekle-nokta span { width: 10px; height: 10px; background: var(--sari); transform: rotate(45deg); animation: zipla 1.2s infinite; }
.bekle-nokta span:nth-child(2) { animation-delay: .2s; } .bekle-nokta span:nth-child(3) { animation-delay: .4s; }
@keyframes zipla { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------------- Perde (16:9, her şey vw/vh ile ölçeklenir) ---------------- */
.perde { position: fixed; inset: 0; overflow: hidden; container-type: size; }
.perde .ic { position: absolute; inset: 0; padding: 4.2cqh 4.5cqw; display: flex; flex-direction: column; }
.kapak { flex: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 4cqw; align-items: center; }
.kapak .logo { width: 100%; height: auto; }
.kapak .alt { margin-top: 3cqh; font-size: min(1.7cqw, 3cqh); color: var(--gri); letter-spacing: .3cqw; text-transform: uppercase; }
.qrkutu { background: var(--beyaz); padding: min(1.6cqw, 2.8cqh); border-radius: .6cqw; transform: rotate(2deg); box-shadow: 0 1.4cqw 3cqw rgba(0, 0, 0, .6); justify-self: center; position: relative; }
.qrkutu .qr { width: min(24cqw, 50cqh); aspect-ratio: 1; }
.qrkutu .qr img, .qrkutu .qr canvas { width: 100% !important; height: 100% !important; display: block; }
.qrkutu > .bant { position: absolute; top: -2.4cqh; left: 50%; translate: -50% 0; font-size: min(1.7cqw, 3cqh); white-space: nowrap; }
.adres { margin-top: 1.6cqh; text-align: center; color: var(--kara); font: 800 min(1.7cqw, 3.1cqh) Inter, system-ui, sans-serif; }
.adres b { display: block; font: 400 min(3.6cqw, 6.4cqh) Anton, Impact, sans-serif; letter-spacing: .4cqw; color: var(--kara); }
.perde-alt { display: flex; justify-content: space-between; align-items: flex-end; gap: 2cqw; min-height: 5cqh; }
.kose-adres { font: 400 min(1.5cqw, 2.7cqh) Anton, Impact, sans-serif; letter-spacing: .15cqw; color: var(--gri); text-transform: uppercase; }
.kose-adres b { color: var(--beyaz); font-weight: 400; }
.sayac { font: 400 min(1.6cqw, 2.9cqh) Anton, Impact, sans-serif; color: var(--sari); letter-spacing: .2cqw; text-transform: uppercase; white-space: nowrap; }
.sayac b { color: var(--beyaz); font-weight: 400; font-size: 1.6em; margin-right: .3em; }
.kapali-etiket { font-size: .9em; margin-left: .8em; }

.soruust { display: flex; justify-content: space-between; align-items: flex-start; }
.soruust .bant { font-size: min(1.8cqw, 3.2cqh); }
.minilogo { width: 11cqw; height: auto; }
.perde .soru { font-size: min(4.4cqw, 8cqh); margin: 3cqh 0 4cqh; max-width: 82%; }
.perde .soru.ortada { text-align: center; max-width: none; }
.gorsel { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; justify-content: center; }

.cubuklar { display: grid; gap: min(1.8cqh, 1cqw); align-content: center; }
.cubuk { display: grid; grid-template-columns: minmax(0, 28cqw) 1fr 8cqw; align-items: center; gap: 1.6cqw; font-size: min(2cqw, 3.6cqh); font-weight: 600; }
.cubuk-ad { display: flex; align-items: center; gap: .7em; min-width: 0; }
.cubuk-ad .h { font: 400 1.1em Anton, Impact, sans-serif; color: var(--kara); background: var(--beyaz); width: 1.6em; height: 1.6em; display: grid; place-items: center; transform: rotate(-4deg); flex: none; }
.cubuk-ad span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cubuk .yol { height: min(3.8cqw, 6.4cqh); background: rgba(255, 255, 255, .06); position: relative; }
.cubuk .dolu { position: absolute; inset: 0 auto 0 0; width: 0; background: #e8e8e0; background-image: var(--noise); transition: width .8s cubic-bezier(.2, .8, .2, 1);
  clip-path: polygon(0 4%, 100% 0, 99% 50%, 100% 100%, 0 96%); }
.cubuk.lider .dolu { background-color: var(--sari); }
.cubuk .yuzde { font: 400 min(3cqw, 5.4cqh) Anton, Impact, sans-serif; color: var(--sari); text-align: right; }
.cubuk:not(.lider) .yuzde { color: var(--beyaz); }

.bulut { position: relative; width: 100%; height: 100%; }
.bulut .kelime { position: absolute; font-family: Anton, Impact, sans-serif; text-transform: uppercase; line-height: 1; white-space: nowrap; opacity: 0; transition: opacity .5s, left .6s, top .6s, font-size .6s; }
.bulut .kelime.gorunur { opacity: 1; }
.bulut .kelime.k1 { color: var(--sari); }
.bulut .kelime.k2 { color: var(--beyaz); }
.bulut .kelime.k3 { color: #d8d8d0; }
.bulut .kelime.k4 { color: var(--gri); }

.olcek-kap { display: grid; grid-template-columns: auto 1fr; gap: 5cqw; align-items: end; height: 100%; padding-bottom: 1cqh; }
.ortalama { text-align: center; }
.ortalama b { display: block; font: 400 min(13cqw, 24cqh) Anton, Impact, sans-serif; line-height: .9; color: var(--sari); }
.ortalama span { font: 400 min(1.8cqw, 3.2cqh) Anton, Impact, sans-serif; letter-spacing: .2cqw; color: var(--gri); text-transform: uppercase; }
.sutunlar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2cqw; height: 100%; align-items: end; }
.sutun { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 1cqh; }
.sutun-sayi { font: 400 min(2.2cqw, 4cqh) Anton, Impact, sans-serif; }
.sutun-dolu { width: 100%; height: 0; min-height: .6cqh; background: #e8e8e0; background-image: var(--noise); transition: height .8s cubic-bezier(.2, .8, .2, 1);
  clip-path: polygon(0 2%, 50% 0, 100% 3%, 100% 100%, 0 100%); }
.sutun.lider .sutun-dolu { background-color: var(--sari); }
.sutun-no { font: 400 min(2.6cqw, 4.6cqh) Anton, Impact, sans-serif; color: var(--kara); background: var(--beyaz); padding: 0 .5em; transform: rotate(-3deg); }

.gizli-kap { text-align: center; }
.gizli-kap b { display: block; font: 400 min(14cqw, 26cqh) Anton, Impact, sans-serif; line-height: .9; color: var(--sari); }
.gizli-kap .bant { font-size: min(2cqw, 3.6cqh); }

.bitis { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4cqh; }
.bitis .logo { width: min(46cqw, 60cqh); height: auto; }
.bitis .bant { font-size: min(3.4cqw, 6cqh); }
.bitis p { margin: 0; font-size: min(2cqw, 3.6cqh); color: #ddd; }

/* Fareyle görünen kumanda */
.kumanda { position: fixed; left: 50%; bottom: 14px; translate: -50% 0; display: flex; gap: 6px; background: rgba(20, 20, 20, .92); border: 1px solid #333;
  padding: 6px; border-radius: 8px; opacity: 0; transition: opacity .25s; z-index: 5; }
.kumanda.gorunur { opacity: 1; }
.kumanda button { font: 600 13px Inter, system-ui, sans-serif; color: var(--beyaz); background: #2a2a2a; border: 0; padding: 8px 11px; border-radius: 5px; cursor: pointer; }
.kumanda button:hover { background: var(--sari); color: var(--kara); }

/* ---------------- Ana sayfa (ahkamkesenadam.com) ---------------- */
.ana-kap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.ana-foto { margin: 0; position: relative; height: 62vh; height: 62svh; overflow: hidden; }
.ana-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; display: block; }
.ana-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,14,14,0) 55%, var(--kara) 100%); }
.ana-icerik { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 0 22px calc(28px + env(safe-area-inset-bottom)); margin-top: -18vh; }
.ana-logo { width: min(86%, 420px); height: auto; }
.ana-kim { margin: -6px 0 6px; font: 400 18px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; color: #ddd; }
.ana-kim .bant { font-size: 22px; margin-right: 6px; }
.ana-canli { display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: min(100%, 380px); text-decoration: none; padding: 15px 20px; font-size: 24px; }
.canli-isik { width: 12px; height: 12px; border-radius: 50%; background: #E0281B; box-shadow: 0 0 0 0 rgba(224,40,27,.7); animation: canli-nabiz 1.4s infinite; }
@keyframes canli-nabiz { 70% { box-shadow: 0 0 0 10px rgba(224,40,27,0); } 100% { box-shadow: 0 0 0 0 rgba(224,40,27,0); } }
.ana-not { margin: 0; font-size: 14px; color: var(--gri); }
.ana-sosyal { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.ana-sosyal a { display: inline-flex; align-items: center; gap: 8px; color: var(--beyaz); text-decoration: none; font: 400 17px Anton, Impact, sans-serif; letter-spacing: 1px; text-transform: uppercase; border: 1.5px solid #555; padding: 10px 16px; border-radius: 3px; min-height: 46px; }
.ana-sosyal a:hover, .ana-sosyal a:focus-visible { border-color: var(--sari); color: var(--sari); }
.ana-sosyal svg { width: 20px; height: 20px; fill: currentColor; }
.ana-alt { margin-top: auto; padding-top: 28px; font-size: 12px; color: #6f6f69; }
.ana-canli:focus-visible, .ana-sosyal a:focus-visible { outline: 3px solid var(--beyaz); outline-offset: 3px; }
/* Geniş ya da yatay ekran (bilgisayar, yatay telefon/tablet): fotoğraf solda, logo yüzün üstüne binmez */
@media (min-width: 900px), (orientation: landscape) and (min-width: 520px) {
  .ana-kap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: none; }
  .ana-foto { height: 100vh; position: sticky; top: 0; }
  .ana-foto::after { background: linear-gradient(90deg, rgba(14,14,14,0) 60%, var(--kara) 100%); }
  .ana-icerik { margin-top: 0; justify-content: center; padding: 48px 6vw; gap: clamp(8px, 2.2vh, 16px); }
  .ana-alt { padding-top: 12px; }
  .ana-logo { width: min(100%, 520px, 70vh); }
}
@media (prefers-reduced-motion: reduce) { .canli-isik { animation: none; } }
