/* Bizim Köşemiz — 2026-10-05 eklenen ekranlar ve WhatsApp tarzı sohbet. Renkler tema değişkenlerinden. */

/* ---- Başlık avatarı (profil fotoğrafı) ---- */
.avatar { cursor: pointer; overflow: visible; }
.avatar.foto img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.on::after { border-color: var(--card); }
.p-status.yaziyor-yazi { color: var(--pink-d); font-weight: 800; }
.av-img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.av-emoji { display: grid; place-items: center; width: 100%; height: 100%; }

/* ---- Alttan açılan sayfa (menü, oyun içi sohbet, görev seçimi) ---- */
.modal.alt-sayfa { place-items: end center; padding: 0; }
.modal.alt-sayfa .modal-card { border-radius: 24px 24px 0 0; max-width: 520px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); animation: altan .22s ease-out; }
@keyframes altan { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---- Sohbet: WhatsApp tarzı ---- */
.chat { position: relative; }
.msg { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: background .3s; }
.msg .bubble { user-select: text; -webkit-user-select: text; }
.msg.parla .bubble { box-shadow: 0 0 0 3px var(--pink), 0 1px 4px rgba(0, 0, 0, .1); }
.kaydir-ok { position: absolute; left: -34px; top: 50%; transform: translateY(-50%) scale(.6); opacity: 0; transition: opacity .15s, transform .15s; font-size: 1.1rem; }
.msg.kaydir-hazir .kaydir-ok { opacity: 1; transform: translateY(-50%) scale(1); }
.bubble.silindi { font-style: italic; color: var(--muted); background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }
.msg.mine .bubble.silindi { background: transparent; color: var(--muted); }
.alinti { display: block; border-left: 4px solid var(--lilac); background: rgba(0, 0, 0, .05); border-radius: 8px; padding: 5px 8px; margin: 0 0 6px; font-size: .82rem; cursor: pointer; max-width: 100%; }
.alinti.benim { border-left-color: var(--pink-d); }
.msg.mine .alinti { background: rgba(255, 255, 255, .2); border-left-color: #fff; }
.alinti b { display: block; font-size: .75rem; color: var(--pink-d); }
.msg.mine .alinti b { color: #fff; }
.alinti span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; opacity: .9; }
.tepkiler { display: flex; gap: 2px; margin: -8px 8px 0; z-index: 1; }
.tepkiler span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0 5px; font-size: .95rem; box-shadow: 0 1px 4px rgba(0, 0, 0, .1); }
.tepkiler span.benim { cursor: pointer; }
.bubble.ses { min-width: 200px; }
.ses-satir { display: flex; align-items: center; gap: 8px; }
.ses-oynat { width: 36px; height: 36px; flex: none; border: 0; border-radius: 50%; background: var(--pink-l); color: var(--pink-d); font-size: .95rem; font-weight: 900; }
.msg.mine .ses-oynat { background: rgba(255, 255, 255, .25); color: #fff; }
.ses-cubuk { flex: 1; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.msg.mine .ses-cubuk { background: rgba(255, 255, 255, .35); }
.ses-cubuk i { display: block; height: 100%; width: 0; background: var(--pink-d); transition: width .2s linear; }
.msg.mine .ses-cubuk i { background: #fff; }
.ses-sure { font-size: .75rem; font-weight: 800; min-width: 32px; text-align: right; }
.yaziyor { display: flex; gap: 4px; padding: 12px 14px; }
.yaziyor i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: zipla 1.2s infinite; }
.yaziyor i:nth-child(2) { animation-delay: .15s; } .yaziyor i:nth-child(3) { animation-delay: .3s; }
@keyframes zipla { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.asagi-git { position: absolute; right: 14px; bottom: 76px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: var(--shadow); font-size: 1.3rem; z-index: 3; color: var(--pink-d); }
.yanit-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px 0; background: var(--card); border-top: 1px solid var(--line); }
.yanit-bar .alinti { flex: 1; margin: 0; cursor: default; }
.yanit-kapat { border: 0; background: var(--pink-l); width: 30px; height: 30px; border-radius: 50%; flex: none; }
.send-btn.mic { background: var(--pink-l); color: var(--pink-d); }
.kayit-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line); }
.kayit-bar small { flex: 1; color: var(--muted); }
.kayit-iptal { border: 0; background: transparent; font-size: 1.3rem; }
.kayit-nokta { width: 12px; height: 12px; border-radius: 50%; background: #ef4444; animation: beat 1s infinite; }
.mm-tepkiler { display: flex; justify-content: space-between; gap: 4px; margin-bottom: 12px; }
.mm-tepkiler button { border: 0; background: var(--pink-l); border-radius: 50%; width: 42px; height: 42px; font-size: 1.35rem; transition: transform .1s; }
.mm-tepkiler button:active { transform: scale(1.25); }
.mm-tepkiler button.secili { background: var(--pink); }
.mm-onizleme { background: var(--bg); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; font-size: .9rem; color: var(--muted); max-height: 80px; overflow: hidden; }
.mm-liste { display: flex; flex-direction: column; margin-bottom: 10px; }
.mm-liste button { border: 0; background: transparent; text-align: left; padding: 13px 6px; font-weight: 800; font-size: 1rem; border-bottom: 1px solid var(--line); }
.mm-liste button:last-child { border-bottom: 0; }
.mm-liste .kirmizi { color: #e11d48; }

/* ---- Mesaj önizleme şeridi ---- */
.onizleme { position: fixed; left: 10px; right: 10px; top: calc(10px + env(safe-area-inset-top)); z-index: 130; background: var(--card); border-radius: 18px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22); display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; animation: asagidan .25s ease-out; cursor: pointer; max-width: 520px; margin: 0 auto; border: 1px solid var(--line); }
.onizleme.gidiyor { animation: yukari .3s forwards; }
@keyframes asagidan { from { transform: translateY(-120%); } to { transform: none; } }
@keyframes yukari { to { transform: translateY(-130%); opacity: 0; } }
.oz-av { width: 40px; height: 40px; border-radius: 50%; background: var(--pink-l); flex: none; display: grid; place-items: center; font-size: 1.4rem; overflow: hidden; }
.oz-yazi { flex: 1; min-width: 0; }
.oz-yazi b { display: block; font-size: .85rem; color: var(--pink-d); }
.oz-yazi span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; }
.oz-kapat { border: 0; background: transparent; color: var(--muted); font-size: 1rem; width: 30px; height: 30px; flex: none; }

/* ---- Oyun: üst çubuk, hile, sohbet ---- */
.game-top { flex-wrap: nowrap; }
.game-top > b { flex: 1; font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-ust-dug { display: flex; gap: 6px; flex: none; }
.g-ust-dug .btn { position: relative; padding: .4em .6em; }
.g-ust-dug .badge { top: -6px; right: -6px; }
.btn.hile-acik { background: #312e81; color: #fff; border: 2px solid #312e81; }
.g-hile { background: linear-gradient(135deg, #312e81, #6d28d9); color: #fff; border-radius: 14px; padding: 9px 12px; margin: -4px 0 12px; font-size: .88rem; font-weight: 700; box-shadow: var(--shadow); }
.g-hile b { color: #fde68a; }
.hile-cizim { display: block; width: 100%; max-width: 260px; margin: 8px auto 0; border-radius: 10px; background: #fff; }
.xox button.hile-ipucu { box-shadow: 0 0 0 3px #7c3aed, var(--shadow); animation: hileParla 1.2s infinite; }
.c4 button.hile-sutun { background: rgba(124, 58, 237, .18); }
@keyframes hileParla { 50% { box-shadow: 0 0 0 6px rgba(124, 58, 237, .35), var(--shadow); } }
.memory button { position: relative; }
.hile-kart { position: absolute; right: 4px; bottom: 2px; font-size: .75rem; opacity: .75; }
.os-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.os-liste { max-height: 42dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 6px 2px; }
.os-msg { max-width: 80%; align-self: flex-start; }
.os-msg span { display: inline-block; background: var(--pink-l); padding: 7px 11px; border-radius: 16px 16px 16px 6px; word-break: break-word; }
.os-msg.mine { align-self: flex-end; }
.os-msg.mine span { background: var(--bubble-me); color: #fff; border-radius: 16px 16px 6px 16px; }
.os-form { display: flex; gap: 8px; margin-top: 10px; }
.os-form input { flex: 1; border: 2px solid var(--line); border-radius: 22px; padding: .6em .9em; background: var(--card); outline: none; }
.spin-k { text-align: center; color: var(--muted); padding: 20px; }

/* ---- Şip Şak ---- */
.ss-kahraman { text-align: center; background: linear-gradient(160deg, #1e1b4b, #831843); color: #fff; border-radius: 26px; padding: 22px 16px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.ss-baslik { font-family: 'Pacifico', cursive; font-size: 2rem; }
.ss-kahraman p { opacity: .85; margin: 6px 6px 16px; font-size: .92rem; }
.ss-cek { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; margin: 0 auto 12px; border-radius: 50%; background: radial-gradient(circle, #fff 0 54%, rgba(255, 255, 255, .25) 55%); color: #831843; font-weight: 900; font-size: .78rem; cursor: pointer; box-shadow: 0 0 0 6px rgba(255, 255, 255, .15); transition: transform .1s; }
.ss-cek:active { transform: scale(.94); }
.ss-cek span { font-size: 2.3rem; }
.ss-galeri { color: #fff !important; border-color: rgba(255, 255, 255, .4) !important; display: inline-block; cursor: pointer; }
.ss-alt { margin: 18px 4px 10px; display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.ss-alt .badge { position: static; }
.ss-satir { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 10px; width: 100%; text-align: left; border: 0; font: inherit; color: inherit; }
.ss-satir b { display: block; }
.ss-satir small { color: var(--muted); font-size: .8rem; }
.ss-satir > div:nth-child(2) { flex: 1; }
.ss-satir.yeni { background: linear-gradient(135deg, #fde68a, #fbcfe8); color: #4a2338; cursor: pointer; animation: beat 2.4s infinite; }
.ss-satir.yeni small { color: #7a4560; }
.ss-satir.acildi { opacity: .6; }
.ss-ikon { width: 44px; height: 44px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.ss-ok { font-size: 1.6rem; font-weight: 900; }

/* ---- Seviye, görevler ---- */
.seviye { display: flex; align-items: center; gap: 12px; }
.sv-rozet { flex: none; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, #facc15, #f59e0b); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.05rem; box-shadow: 0 4px 12px rgba(245, 158, 11, .35); }
.seviye.buyuk .sv-rozet { width: 64px; height: 64px; font-size: 1.25rem; }
.sv-bilgi { flex: 1; min-width: 0; }
.sv-bilgi small { color: var(--muted); font-size: .78rem; }
.sv-cubuk, .gv-cubuk { height: 9px; border-radius: 6px; background: var(--pink-l); overflow: hidden; margin: 5px 0 3px; }
.sv-cubuk i { display: block; height: 100%; background: linear-gradient(90deg, #facc15, #f59e0b); border-radius: 6px; transition: width .6s; }
.gv-cubuk i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--pink-d)); border-radius: 6px; transition: width .6s; }
#gorevVer { margin: 4px 0 6px; }
.gorev { padding: 14px; margin-bottom: 10px; }
.gorev.tamam { background: linear-gradient(135deg, var(--card), rgba(34, 197, 94, .1)); }
.gorev.kacti, .gorev.iptal { opacity: .55; }
.gv-ust { display: flex; gap: 10px; align-items: flex-start; }
.gv-ust b { flex: 1; font-size: .95rem; }
.gv-kat { font-size: 1.3rem; }
.gv-puan { background: linear-gradient(135deg, #facc15, #f59e0b); color: #fff; font-weight: 900; font-size: .78rem; padding: 2px 8px; border-radius: 999px; flex: none; }
.gv-alt { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.gv-alt small { color: var(--muted); font-weight: 700; }
.gv-alt span { display: flex; gap: 6px; }
.gorev-ana { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.gorev-ana b { display: block; } .gorev-ana small { color: var(--muted); font-size: .82rem; }
.gorev-ana > div:nth-child(2) { flex: 1; }
.ga-ikon { width: 48px; height: 48px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.gk-kat { display: flex; gap: 6px; overflow-x: auto; margin: 10px 0; padding-bottom: 4px; }
.gk-liste { max-height: 52dvh; overflow-y: auto; }
.gk-satir { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.gk-satir > span { font-size: 1.3rem; }
.gk-satir > div { flex: 1; min-width: 0; }
.gk-satir b { display: block; font-size: .9rem; }
.gk-satir small { color: var(--muted); font-size: .75rem; }
.gk-satir.verildi { opacity: .6; }

/* ---- Profil ---- */
.profil-kart { text-align: center; padding: 22px 16px 16px; margin-bottom: 14px; }
.profil-kart h2 { margin: 10px 0 14px; }
.profil-kart .seviye { text-align: left; }
.profil-kart.karsi { opacity: .95; }
.pr-av { width: 112px; height: 112px; margin: 0 auto; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; font-size: 3.4rem; position: relative; box-shadow: 0 0 0 5px var(--card), 0 0 0 8px var(--pink); cursor: pointer; }
.profil-kart.karsi .pr-av { width: 84px; height: 84px; font-size: 2.6rem; box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--lilac); cursor: default; }
.pr-kalem { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--pink-d); color: #fff; display: grid; place-items: center; font-size: 1rem; border: 3px solid var(--card); }
.pr-sayilar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.pr-sayilar b { display: block; font-size: 1.35rem; color: var(--pink-d); }
.pr-sayilar small { color: var(--muted); font-size: .72rem; }

/* ---- Ayarlar ---- */
.ay-profil { display: flex; align-items: center; gap: 14px; width: 100%; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ay-profil .ay-av { width: 58px; height: 58px; border-radius: 50%; background: var(--pink-l); font-size: 2rem; flex: none; }
.ay-profil b { display: block; font-size: 1.1rem; } .ay-profil small { color: var(--muted); }
.tema-sec { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tema-btn { border: 2px solid var(--line); background: var(--card); border-radius: 16px; padding: 10px 4px 8px; font-weight: 800; font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tema-btn.on { border-color: var(--pink-d); box-shadow: 0 0 0 2px var(--pink-d); }
.tema-onizleme { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; }
.t-pembe { background: linear-gradient(135deg, #ff6fa8, #e1306c); }
.t-koyu { background: linear-gradient(135deg, #3a2030, #150c13); }
.t-sade { background: linear-gradient(135deg, #e6efff, #93c5fd); }
.t-lavanta { background: linear-gradient(135deg, #c4b5fd, #7c3aed); }
.ay-liste { padding: 4px 16px; }
.ay-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border: 0; border-bottom: 1px solid var(--line); width: 100%; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.ay-liste > .ay-satir:last-child, .ay-liste > #izinListe:last-child { border-bottom: 0; }
.ay-satir b { display: block; font-size: .95rem; } .ay-satir small { color: var(--muted); font-size: .78rem; }
.ay-ok { color: #16a34a; font-weight: 900; font-size: 1.2rem; }
.ay-cikis { margin-top: 20px; color: #e11d48; border-color: rgba(225, 29, 72, .3); }
.anahtar { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.anahtar::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); transition: transform .2s; }
.anahtar:checked { background: var(--pink-d); }
.anahtar:checked::after { transform: translateX(20px); }

/* ---- Koyu temada sabit renkli parçalar ---- */
html[data-tema="koyu"] .modal { background: rgba(0, 0, 0, .6); }
html[data-tema="koyu"] .alinti { background: rgba(255, 255, 255, .06); }
html[data-tema="koyu"] input, html[data-tema="koyu"] textarea, html[data-tema="koyu"] select { background: var(--card); color: var(--text); }

.g-hile.g-hile-ek { background: transparent; padding: 0; box-shadow: none; margin: -4px 0 12px; }
.giris { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: .65em .9em; background: var(--card); outline: none; }
.giris:focus { border-color: var(--pink); }
.modal-card textarea { border: 2px solid var(--line); border-radius: 14px; padding: .65em .9em; background: var(--card); outline: none; }
.pr-av .av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ay-profil .ay-av, .oz-av { overflow: hidden; }

/* ---- Aramalar ---- */
.ar-ozet { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.ar-ozet .card { text-align: center; padding: 14px 8px; margin: 0; }
.ar-ozet b { display: block; font-size: 1.3rem; color: var(--pink-d); }
.ar-ozet small { color: var(--muted); font-size: .78rem; }
.ar-gun { margin: 16px 4px 8px; font-weight: 800; color: var(--muted); font-size: .85rem; }
.ar-satir { display: flex; align-items: center; gap: 12px; padding: 12px 12px; margin-bottom: 8px; }
.ar-ikon { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--pink-l); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.ar-ikon i { position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #fff; font-style: normal; font-size: .75rem; display: grid; place-items: center; font-weight: 900; border: 2px solid var(--card); }
.ar-satir.kacan .ar-ikon i { background: #ef4444; }
.ar-yazi { flex: 1; min-width: 0; }
.ar-yazi b { display: block; font-size: .95rem; }
.ar-yazi small { color: var(--muted); font-size: .78rem; }
.ar-sure { font-weight: 900; font-size: .88rem; color: var(--pink-d); white-space: nowrap; }
.ar-sure.kirmizi { color: #e11d48; }
.ar-geri { border: 0; background: var(--pink-l); width: 38px; height: 38px; border-radius: 50%; font-size: 1rem; flex: none; }
.gv-cubuk.sinir i { background: linear-gradient(90deg, #22c55e, #f59e0b); }
.gv-cubuk.sinir.asildi i { background: #ef4444; }

/* ---- Alt sayfalarda geri düğmesi ---- */
.sayfa-baslik { display: flex; align-items: center; gap: 8px; }
.geri-btn { flex: none; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; color: var(--pink-d); font-weight: 900; padding-bottom: 3px; }
/* Mesaj önizleme şeridi başlığın ALTINDA (üst düğmeleri kapatmasın) */
.onizleme { top: auto; bottom: calc(82px + env(safe-area-inset-bottom)); animation: alttan2 .25s ease-out; }
.onizleme.gidiyor { animation: asagi2 .3s forwards; }
@keyframes alttan2 { from { transform: translateY(140%); } to { transform: none; } }
@keyframes asagi2 { to { transform: translateY(160%); opacity: 0; } }
