/* ==========================================================================
   Üyelik, topluluk, profil, bildirim
   ========================================================================== */

/* ---------- üyelik ---------- */
.btn--block { width: 100%; }
.form-foot { margin-top: 1.4rem; text-align: center; }
.legal-note { line-height: 1.55; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r-2); background: var(--bg-2); }
.is-auth .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; }
.form-panel { padding: clamp(1.25rem, 3vw, 2.25rem); }
.input--lg { min-height: 56px; font-size: 1.1rem; }
.input--sm { min-height: 38px; padding: .45rem .75rem; font-size: .9rem; }
.textarea--sm { min-height: 100px; }
.chips--check { gap: .4rem; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; inset: 0; }
.chip-check span { display: inline-flex; min-height: 32px; align-items: center; padding: .2rem .7rem; border: 1px solid var(--line-2); border-radius: 999px; font-size: .8rem; color: var(--text-2); transition: all .2s; }
.chip-check input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-check input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- topluluk listesi ---------- */
.community-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 960px) { .community-layout { grid-template-columns: minmax(0, 1fr); } }
.community-search { margin-bottom: 1rem; }
.community-search .search-input { max-width: none; }
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; overflow-x: auto; }
.tab { position: relative; padding: .75rem 1rem; font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--text); }
.tab.is-active::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 2px; background: var(--accent); }
.active-filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; padding: .8rem 0; }
.community-side { display: grid; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1.5rem); }
@media (max-width: 960px) { .community-side { position: static; } }
.side-block { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r-3); background: var(--surface); }
.side-note { display: flex; gap: .9rem; align-items: flex-start; background: var(--bg-2); }
.side-note img { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); flex: none; }
.side-note p { margin: 0; color: var(--text-2); }
.leaders { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; counter-reset: l; }
.leaders li { display: flex; justify-content: space-between; align-items: center; counter-increment: l; }
.leaders a { display: flex; gap: .6rem; align-items: center; text-decoration: none; font-size: .92rem; }
.leaders a::before { content: counter(l); width: 1.1rem; font-size: .75rem; color: var(--muted); }
.leaders b { font-size: 1.05rem; color: var(--tan); font-weight: 450; }

/* ---------- soru sayfası ---------- */
.page-head--q { padding-bottom: 1.5rem; }
.qpage__title { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: 26ch; }
.qpage__meta { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .85rem; }
.post { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.post--q { border-top: 0; padding-top: .5rem; }
.post__side { display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.post__body { min-width: 0; }
.post__body .prose { max-width: none; }
.post__body .prose p, .post__body .prose li { color: var(--text); }
.post__tags { margin-top: 1.2rem; }
.post__tags .chip { white-space: normal; max-width: 100%; }
.post__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.2rem; }
.post.is-best { position: relative; }
.post.is-best::before { content: ""; position: absolute; inset: .6rem -1.2rem; border: 1px solid rgba(244, 213, 0, .35); border-radius: var(--r-3); background: rgba(244, 213, 0, .035); pointer-events: none; }
.post.is-hidden { opacity: .55; }
.best-label { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .6rem; }
.best-mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); }
.best-mark svg { width: 18px; height: 18px; }
.author { display: flex; gap: .6rem; align-items: center; text-decoration: none; padding: .35rem .7rem .35rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.author span { display: grid; line-height: 1.2; }
.author b { font-weight: 600; font-size: .88rem; }
.author small { font-size: .74rem; color: var(--muted); }
.vote { display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.vote__btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: all .2s var(--ease); }
.vote__btn svg { width: 20px; height: 20px; }
.vote__btn:hover:not([disabled]) { border-color: var(--text); color: var(--text); transform: translateY(-1px); }
.vote__btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vote__btn[disabled] { opacity: .35; cursor: not-allowed; }
.vote__count { font-family: var(--f-display); font-size: 1.25rem; }
.answers-title { font-size: 1.4rem; margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comments { margin-top: 1rem; padding-left: 1rem; border-left: 1px solid var(--line); display: grid; gap: .4rem; }
.comment { margin: 0; font-size: .9rem; color: var(--text-2); }
.comment-add summary { cursor: pointer; list-style: none; font-size: .84rem; color: var(--muted); }
.comment-add summary::-webkit-details-marker { display: none; }
.comment-add summary:hover { color: var(--text); }
.comment-form { display: flex; gap: .5rem; margin-top: .5rem; }
.report { position: relative; }
.report summary { list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report__form { position: absolute; z-index: 5; left: 0; top: calc(100% + 6px); display: grid; gap: .5rem; width: 280px; padding: .9rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-3); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.answer-form { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-q { margin-top: 3.5rem; }
@media (max-width: 620px) { .post { grid-template-columns: 44px minmax(0, 1fr); gap: .8rem; } .vote__btn { width: 38px; height: 38px; } .post.is-best::before { inset: .4rem -.6rem; } }

/* ---------- profil ---------- */
.member-head { display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; }
.member-head h1 { margin-bottom: .4rem; }
.member-head .avatar--xl { border-width: 2px; }
@media (max-width: 760px) { .member-head { grid-template-columns: minmax(0, 1fr); gap: 1rem; } }
.badges-row { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.medal { display: flex; gap: .6rem; align-items: center; padding: .55rem .9rem .55rem .6rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); }
.medal svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.medal span { display: grid; line-height: 1.2; }
.medal b { font-size: .86rem; }
.medal small { font-size: .72rem; color: var(--muted); }
.answer-list { list-style: none; padding: 0; margin: 0; }
.answer-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.answer-list a { font-weight: 500; text-decoration: none; }
.answer-list p { margin: .3rem 0; }
.ok { color: var(--accent); }

/* ---------- bildirimler ---------- */
.notif-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.notif { border-bottom: 1px solid var(--line); }
.notif__btn { width: 100%; display: grid; grid-template-columns: 40px 1fr auto; gap: 1rem; align-items: center; padding: 1rem .5rem; background: none; border: 0; text-align: left; cursor: pointer; color: var(--text-2); border-radius: var(--r-2); }
.notif__btn:hover { background: var(--surface); }
.notif.is-unread .notif__btn { color: var(--text); }
.notif__ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.notif__ico svg { width: 18px; height: 18px; }
.notif.is-unread .notif__ico { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.notif__time { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.link-quiet { color: var(--muted); }

/* ---------- yasal ---------- */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); }
.legal-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; border-left: 1px solid var(--line); }
.legal-nav a { display: block; padding: .4rem 0 .4rem 1rem; margin-left: -1px; border-left: 1px solid transparent; font-size: .9rem; color: var(--muted); text-decoration: none; }
.legal-nav a[aria-current="page"], .legal-nav a:hover { color: var(--text); border-left-color: var(--accent); }
.legal-draft { display: flex; gap: .8rem; align-items: center; padding: .9rem 1.1rem; border: 1px dashed var(--tan); border-radius: var(--r-2); color: var(--tan); font-size: .9rem; margin-bottom: 2rem; }
.legal-body h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.legal-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1rem 0; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.legal-body th { background: var(--bg-2); color: var(--text-2); font-weight: 600; }
@media (max-width: 860px) { .legal-layout { grid-template-columns: minmax(0, 1fr); } .legal-nav { display: none; } }

/* ---------- avatar oluşturucu: renk örnekleri (app/lib/avatar.php ile aynı renkler) ---------- */
.swatch--t-kahve { background: #814E00; }
.swatch--t-acik { background: #A0662B; }
.swatch--t-koyu { background: #5C3A12; }
.swatch--t-kizil { background: #9C4A1A; }
.swatch--t-altin { background: #B8862B; }
.swatch--t-gri { background: #77716B; }
.swatch--t-siyah { background: #33291F; }
.swatch--c-muz { background: #F4D500; }
.swatch--c-krem { background: #F7F2E6; }
.swatch--c-ten { background: #D58D52; }
.swatch--c-kahve { background: #814E00; }
.swatch--c-gece { background: #1C2A48; }
.swatch--c-siyah { background: #16110c; }
.swatch--p-krem { background: #F7F2E6; }
.swatch--p-muz { background: #F4D500; }
.swatch--p-ten { background: #E8B888; }
.swatch--p-gece { background: #1C2A48; }
.swatch--p-kursun { background: #343D4A; }
.swatch--p-antrasit { background: #23262C; }
.swatch--p-beyaz { background: #FFFFFF; }

/* ---------- avatar seçici ---------- */
.avatar-field legend { margin-bottom: .8rem; }
.avatar-sub { font-size: .8rem; color: var(--muted); margin: 0 0 .6rem; }
.avatar-own { margin-top: 1.2rem; padding: 1rem; border: 1px solid var(--line-2); border-radius: var(--r-3); background: var(--bg-2); }
.avatar-own__head { display: flex; gap: 1rem; align-items: center; cursor: pointer; }
.avatar-own__head input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.avatar-own__preview { width: 112px; height: 112px; border-radius: 50%; flex: none; border: 2px solid var(--line); transition: border-color .2s, transform .2s; }
.avatar-own__head input:checked ~ .avatar-own__preview { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(244, 213, 0, .18); }
.avatar-own__head input:focus-visible ~ .avatar-own__preview { outline: 2px solid var(--accent); outline-offset: 3px; }
.avatar-own__head span { display: grid; gap: .2rem; }
.avatar-own__head small { color: var(--muted); font-size: .82rem; }
.avatar-own__groups { display: grid; gap: .7rem; margin-top: 1rem; }
.avatar-group { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: .6rem; align-items: center; }
.avatar-group__label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.avatar-group__opts { display: flex; flex-wrap: wrap; gap: .35rem; }
.avatar-group .chip-check span { min-height: 30px; font-size: .78rem; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch__dot { display: block; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); transition: transform .2s, box-shadow .2s; }
.swatch--none .swatch__dot { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line-2) 4px 6px); }
.swatch input:checked + .swatch__dot { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent); transform: scale(1.06); }
.swatch input:focus-visible + .swatch__dot { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 520px) { .avatar-group { grid-template-columns: minmax(0, 1fr); gap: .3rem; } }

/* ---------- Google ile giriş ---------- */
.btn--google { background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 600; margin-top: .5rem; }
.btn--google:hover { background: #f2f2f2; color: #1f1f1f; border-color: #c6c6c6; }
.or-line { display: flex; align-items: center; gap: .8rem; margin: 1.4rem 0; color: var(--muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
