/* ============ Sosyal katman ============ */
.feed-view, .discover-view, .notif-view, .work-view, .profile-view, .list-view, .review-view, .admin-view, .legal-view {
  max-width: 1100px; margin: 0 auto; padding: calc(var(--safe-top) + 30px) clamp(16px, 4vw, 48px) 40px;
}
.feed-view, .notif-view, .review-view { max-width: 760px; }

/* ---- Kapaklar ---- */
.w-cover { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 3px 7px 7px 3px; background: var(--bg-3); position: relative; display: block;
  box-shadow: 0 1px 1px rgba(0,0,0,.25), 8px 12px 22px -12px rgba(0,0,0,.7); }
.w-cover.gen { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px; text-align: center; overflow: hidden;
  background: linear-gradient(90deg, rgba(0,0,0,.3), rgba(255,255,255,.06) 4%, transparent 9%), linear-gradient(160deg, hsl(var(--hue) 40% 32%), hsl(var(--hue) 45% 18%)); }
.w-cover.gen span { font-family: var(--font-display); font-weight: 600; color: hsl(var(--hue) 70% 90%); font-size: clamp(11px, 1.2vw, 15px); line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.w-cover.gen small { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--hue) 40% 78%); }
.w-cover.xs { width: 44px; flex-shrink: 0; border-radius: 2px 4px 4px 2px; }
.w-cover.xs.gen { padding: 4px; } .w-cover.xs.gen small { display: none; } .w-cover.xs.gen span { font-size: 7px; }
.w-cover.sm { width: 70px; flex-shrink: 0; }
.w-cover.big { width: clamp(140px, 22vw, 220px); flex-shrink: 0; height: auto; align-self: flex-start; }
.w-cover.big.gen { padding: 24px; }
.w-cover.big.gen span { font-size: clamp(16px, 2vw, 22px); }
.w-cover.sm.gen { padding: 6px; }

/* ---- Avatar ve kullanıcı ---- */
.avatar-img { border-radius: 50%; object-fit: cover; flex-shrink: 0; display: inline-grid; place-items: center; background: var(--bg-3); }
.avatar-img.gen { background: linear-gradient(135deg, hsl(var(--hue) 55% 55%), hsl(var(--hue) 50% 35%)); color: #fff; font-weight: 700; }
.user-link { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ul-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.ul-text b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ul-text small { font-size: 12px; color: var(--faint); }

/* ---- Yıldızlar ---- */
.stars { display: inline-flex; gap: 1px; --s: 15px; vertical-align: middle; }
.stars i, .rating-input i { width: var(--s); height: var(--s); display: inline-block; background: var(--line-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/></svg>") center/contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l2.9 6.6 7.1.6-5.4 4.7 1.6 7L12 17.3 5.8 21l1.6-7L2 9.2l7.1-.6z'/></svg>") center/contain no-repeat; }
.stars i.st-full, .rating-input i.st-full { background: #f2b33d; }
.stars i.st-half, .rating-input i.st-half { background: linear-gradient(90deg, #f2b33d 50%, var(--line-2) 50%); }
.rating-input { display: inline-flex; gap: 3px; --s: 34px; cursor: pointer; touch-action: none; padding: 4px 0; border-radius: 8px; }
.rating-input i { transition: transform .15s var(--ease-spring); }
.rating-input:hover i { transform: scale(1.06); }

/* ---- Ortak kontroller ---- */
.vis-select { height: 38px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); outline: none; }
.vis-select option { background: var(--bg-2); }
.vis-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.vis-hint { font-size: 11.5px; }
.vis-chip { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.vis-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vis-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.vis-opt small { color: var(--muted); font-size: 12px; }
.vis-opt.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.note-q { margin: 8px 0; padding: 8px 12px; border-left: 4px solid var(--hl-solid); font-family: var(--font-read); font-style: italic; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; cursor: pointer; }
.radio-row input { accent-color: var(--accent); width: 18px; height: 18px; }
.report-reasons { display: flex; flex-direction: column; margin: 8px 0 12px; }
.action-sheet { display: flex; flex-direction: column; }
.action-row { text-align: left; padding: 14px 8px; font-size: 16px; font-weight: 550; border-bottom: 1px solid var(--line); }
.action-row:last-child { border: 0; }
.more-btn { width: 34px; height: 34px; color: var(--faint); margin-left: auto; }
.sheet-title { font-size: 22px; margin-bottom: 14px; }
.inline-form.left { justify-content: flex-start; }
.pending-badge { display: inline-block; padding: 4px 10px; border-radius: 99px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); font-size: 12.5px; font-weight: 600; margin: 6px 0; }
.eyebrow + h3 { margin-top: 2px; }

/* ---- Günlük düzenleyici ---- */
.log-sheet { display: flex; flex-direction: column; gap: 14px; }
.log-head { display: flex; gap: 14px; align-items: center; }
.log-head h3 { font-size: 20px; }
.log-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.log-row > span { font-weight: 550; font-size: 14px; }
.log-row .input { width: auto; height: 40px; }
.log-checks { display: flex; gap: 20px; flex-wrap: wrap; }
.review-area { min-height: 130px; height: auto; padding: 12px 14px; resize: vertical; line-height: 1.55; font-family: var(--font-read); font-size: 16px; }

/* ---- Kitap seçici ---- */
.picker-sheet { max-width: 620px; }
.picker .input { margin-bottom: 10px; }
.picker-results { display: flex; flex-direction: column; gap: 2px; max-height: 58vh; overflow: auto; margin: 0 -8px; }
.picker-row { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px; border-radius: 12px; }
.picker-row:hover { background: var(--surface-2); }
.pr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-text b { font-size: 14.5px; }
.pr-text span { font-size: 12.5px; color: var(--muted); }
.pr-src { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.picker-add { display: flex; align-items: center; gap: 8px; padding: 14px 8px; color: var(--accent); font-weight: 600; }
.add-work { display: flex; flex-direction: column; gap: 12px; }
.add-work .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---- Izgaralar ---- */
.work-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 22px 16px; }
@media (max-width: 520px) { .work-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }
.work-card { display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; }
.work-card .w-cover { transition: transform .35s var(--ease-out); }
.work-card:hover .w-cover { transform: translateY(-4px); }
.wc-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wc-meta b { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wc-meta span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-scroll .work-card { width: 100%; }

/* ---- İnceleme kartı ---- */
.review-list { display: flex; flex-direction: column; gap: 12px; transition: opacity .3s; }
.review-list.refetch { opacity: .5; }
.review-card { display: flex; gap: 14px; padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: rise .5s var(--ease-out) both; }
.rv-work .w-cover.xs { width: 64px; }
.rv-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rv-tag { font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.rv-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; }
.rv-body { font-family: var(--font-read); font-size: 16px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rv-body.spoiler { filter: blur(6px); cursor: pointer; user-select: none; }
.rv-foot { display: flex; align-items: center; gap: 18px; }
.rv-like, .rv-comments { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.rv-like.on { color: #ec6f8c; }
.rv-like.on svg { fill: currentColor; }
@media (max-width: 520px) { .rv-work { display: none; } }

/* ---- Kitap sayfası ---- */
.wk-hero { position: relative; display: flex; align-items: flex-start; gap: clamp(20px, 4vw, 40px); padding: clamp(20px, 4vw, 36px); border-radius: 28px; overflow: hidden; isolation: isolate; border: 1px solid var(--line); margin-bottom: 18px; }
.wk-bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center; filter: blur(50px) saturate(1.2) brightness(.45); transform: scale(1.2); }
:root[data-ui="gunduz"] .wk-bg { filter: blur(50px) brightness(1.2) opacity(.5); }
.wk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wk-info h1 { font-size: clamp(26px, 4vw, 40px); }
.wk-author { font-size: 16px; }
.wk-stats { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin: 12px 0; }
.wk-avg { display: flex; flex-direction: column; gap: 2px; }
.wk-avg b { font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.wk-avg small { color: var(--muted); font-size: 12px; }
.wk-hist { display: flex; align-items: flex-end; gap: 2px; height: 46px; width: 130px; }
.wk-hist i { flex: 1; background: color-mix(in srgb, #f2b33d 75%, transparent); border-radius: 2px 2px 0 0; min-height: 3px; }
.wk-counts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.wk-counts b { color: var(--text); }
.wk-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.wk-shelf { display: flex; gap: 8px; flex-wrap: wrap; }
.wk-rate { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.like-toggle { color: var(--muted); }
.like-toggle.on { color: #ec6f8c; }
.like-toggle.on svg { fill: currentColor; }
.wk-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.fav-slots { display: flex; gap: 8px; margin: 14px 0; }
.wk-body { display: flex; flex-direction: column; gap: 16px; }
.wk-desc { line-height: 1.65; color: var(--muted); white-space: pre-wrap; margin: 8px 0; }
.my-diary { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.md-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; text-align: left; }
.md-row:hover { background: var(--surface-2); }
.md-rev { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.friends-row { display: flex; gap: 16px; overflow-x: auto; padding: 8px 2px; }
.friend { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 60px; font-size: 11px; color: var(--muted); text-align: center; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 8px; }
.quote-item { margin: 0; padding: 16px; border-radius: 16px; background: color-mix(in srgb, var(--hl) 22%, var(--surface)); border-left: 4px solid var(--hl-solid); display: flex; flex-direction: column; gap: 10px; }
.quote-item blockquote { margin: 0; font-family: var(--font-read); font-style: italic; line-height: 1.55; }
.quote-item figcaption { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.list-pick { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; max-height: 40vh; overflow: auto; }
.list-pick small { margin-left: auto; }
@media (max-width: 640px) {
  .wk-hero { flex-direction: column; align-items: center !important; text-align: center; }
  .w-cover.big { align-self: center; }
  .wk-stats, .wk-shelf, .wk-btns, .wk-rate, .wk-counts { justify-content: center; }
  .wk-hero > .more-btn { position: absolute; top: 12px; right: 12px; }
}

/* ---- Profil ---- */
.preview-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 16px; border-radius: 14px; margin-bottom: 18px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 600; font-size: 14px; }
.preview-banner .btn { margin-left: auto; }
.pf-top { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.pf-id { flex: 1; min-width: 200px; }
.pf-id h1 { font-size: clamp(26px, 4vw, 36px); }
.follows-you { margin-left: 8px; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); }
.pf-bio { margin-top: 8px; max-width: 560px; line-height: 1.5; }
.pf-actions { display: flex; gap: 8px; align-items: center; }
.pf-counts { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 12px; }
.pf-count { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 82px; }
.pf-count b { font-size: 19px; font-weight: 700; }
.pf-count span { font-size: 12px; color: var(--muted); }
a.pf-count:hover { background: var(--surface-2); }
.pf-shortcuts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.pf-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 14px 0 20px; position: sticky; top: 0; z-index: 10; background: var(--bg); padding-top: var(--safe-top); }
.pf-tabs::-webkit-scrollbar { display: none; }
.pf-tab { padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.pf-tab.active { color: var(--text); border-color: var(--accent); }
.pf-body { display: flex; flex-direction: column; gap: 22px; }
.pf-section h2 { font-size: 19px; margin-bottom: 12px; }
.fav-row { display: grid; grid-template-columns: repeat(4, minmax(0, 150px)); gap: 16px; }
.reading-row, .recent-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 16px; }
.reading-item, .recent-item { display: flex; flex-direction: column; gap: 6px; position: relative; font-size: 12px; color: var(--muted); }
.ri-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.ri-bar i { display: block; height: 100%; background: var(--accent); }
.has-review { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; font-size: 11px; }
.diary-row .has-review { position: static; background: var(--surface-2); color: var(--muted); }
.locked { padding-top: 40px; }
.lock-big { font-size: 48px; }
.small-empty { padding: 30px 10px; }
.diary-table { display: flex; flex-direction: column; }
.diary-month { font-family: var(--font-display); font-size: 18px; font-weight: 600; padding: 18px 4px 8px; border-bottom: 1px solid var(--line); }
.diary-row { display: flex; align-items: center; gap: 14px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.diary-row:hover { background: var(--surface); }
.dr-day { width: 28px; text-align: center; font-size: 20px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.dr-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-title b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-title small { font-size: 12px; color: var(--muted); }
.people-list { display: flex; flex-direction: column; gap: 6px; }
.person-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 14px; background: var(--surface); }
.req-btns { display: flex; gap: 6px; }
@media (max-width: 520px) { .fav-row { grid-template-columns: repeat(4, 1fr); gap: 8px; } .pf-count { min-width: 70px; padding: 6px 10px; } }

/* ---- Listeler ---- */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.list-card { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: background .2s; }
.list-card:hover { background: var(--surface-2); }
.lc-covers { position: relative; height: 112px; }
.lc-covers > * { position: absolute; top: 0; left: calc(var(--i) * 17%); width: auto; height: 112px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 4px 0 10px -2px rgba(0,0,0,.6); z-index: calc(10 - var(--i)); }
.lc-covers .w-cover.gen { padding: 6px; } .lc-covers .w-cover.gen span { font-size: 9px; } .lc-covers .w-cover.gen small { display: none; }
.lc-empty { background: var(--bg-3); }
.lc-meta { display: flex; flex-direction: column; gap: 2px; }
.lc-meta b { font-size: 15px; }
.list-head { margin-bottom: 20px; display: flex; flex-direction: column; gap: 10px; }
.list-head h1 { font-size: clamp(26px, 4vw, 38px); }
.list-by { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.list-desc { line-height: 1.6; color: var(--muted); max-width: 680px; white-space: pre-wrap; }
.list-actions { display: flex; gap: 8px; align-items: center; }
.list-items { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.list-items li { display: flex; flex-direction: column; gap: 8px; position: relative; }
.li-rank { position: absolute; top: -8px; left: -8px; z-index: 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 13px; }
.li-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.li-meta b { font-size: 13.5px; }
.li-note { font-size: 13px; color: var(--muted); font-style: italic; }
.list-editor { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.list-title-in { font-family: var(--font-display); font-size: 22px; height: 54px; }
.edit-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.edit-items li { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 14px; background: var(--surface); }
.edit-items .li-rank { position: static; width: 26px; height: 26px; }
.edit-items .li-meta { flex: 1; }
.small-in { height: 34px; font-size: 13px; margin-top: 4px; }
.li-tools { display: flex; }
.li-tools .icon-btn { width: 36px; height: 36px; }

/* ---- Yorumlar ---- */
.comments { display: flex; flex-direction: column; gap: 14px; margin: 10px 0 16px; }
.comment { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.comment p { flex-basis: 100%; padding-left: 38px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment.is-hidden p { color: var(--faint); font-style: italic; }
.comment-form { display: flex; gap: 8px; align-items: flex-end; }
.comment-form .input { height: auto; min-height: 44px; padding: 10px 14px; resize: vertical; }
.review-view .card { margin-top: 16px; }

/* ---- Akış ve keşfet ---- */
.head-tools { display: flex; align-items: center; gap: 8px; }
.bell { position: relative; }
.count-badge, .nav-badge { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #e2735f; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.nav-tab { position: relative; }
.nav-badge { top: 2px; right: 6px; }
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-card { padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; animation: rise .5s var(--ease-out) both; }
.feed-card.compact { flex-direction: row; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-text { flex: 1; min-width: 160px; font-size: 14px; color: var(--muted); }
.fc-text b { color: var(--text); }
.fc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-card.quote-card { background: color-mix(in srgb, var(--hl) 16%, var(--surface)); border-left: 4px solid var(--hl-solid); }
.feed-card.quote-card blockquote { margin: 0; font-family: var(--font-read); font-style: italic; font-size: 17px; line-height: 1.55; }
.fc-book { font-size: 13.5px; color: var(--muted); margin-right: auto; }
.feed-empty { padding-top: 30px; }
.feed-empty .people-list { width: 100%; max-width: 460px; margin-top: 10px; }
.big-search { margin-bottom: 22px; max-width: 640px; }
.big-search input { height: 50px; font-size: 16px; padding-left: 46px; }
.discover-body, .search-results-page { display: flex; flex-direction: column; gap: 26px; }
.notif-list { display: flex; flex-direction: column; gap: 2px; margin-top: 12px; }
.notif { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; font-size: 14.5px; }
.notif span { flex: 1; min-width: 0; }
.notif.unread { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.notif:hover { background: var(--surface-2); }

/* ---- Kitaplık detayında kitap kaydı ---- */
.work-link { display: flex; flex-direction: column; gap: 10px; }
.wl-row { display: flex; align-items: center; gap: 12px; }
.wl-row > div { display: flex; flex-direction: column; }
.avatar-edit { display: flex; align-items: center; }
.terms-row { font-size: 13px; color: var(--muted); align-items: flex-start; }
.terms-row a { color: var(--accent); text-decoration: underline; }
.shared-chip { color: var(--accent); }

/* ---- Yasal ve yönetim ---- */
.legal { max-width: 720px; margin: 0 auto; line-height: 1.7; }
.legal h1 { font-size: 34px; margin: 14px 0 4px; }
.legal h2 { font-size: 19px; margin: 24px 0 6px; }
.legal p { color: var(--muted); }
.legal-links { margin-top: 26px; font-size: 13.5px; }
.legal-links a { color: var(--accent); }
.draft-banner { margin: 14px 0; padding: 12px 16px; border-radius: 14px; background: color-mix(in srgb, #e2735f 18%, transparent); color: #f0a090; font-size: 14px; }
.admin-body { display: flex; flex-direction: column; gap: 12px; }
.report-row, .work-row { display: flex; flex-direction: column; gap: 10px; }
.report-text { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); white-space: pre-wrap; max-height: 200px; overflow: auto; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Keşfet: günün kitabı ve seçki rafları ---- */
.dc-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.dc-head h2 { margin: 0; }
.dc-free { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--accent); }
.wc-meta em.faint { font-style: normal; font-size: 11.5px; }
.dc-authors { flex-wrap: nowrap; padding-bottom: 4px; }
.dc-authors .chip { white-space: nowrap; }
.dc-hero { position: relative; display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); padding: clamp(22px, 4vw, 40px);
  border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff;
  background: radial-gradient(120% 140% at 0% 0%, hsl(var(--hue) 45% 30%), hsl(var(--hue) 40% 12%)); }
.dc-hero-bg { position: absolute; inset: -40px; z-index: -1; background-size: cover; background-position: center;
  filter: blur(36px) saturate(1.3) brightness(.45); transform: scale(1.1); }
.dc-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 70%); }
.dc-hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 560px; }
.dc-hero h2 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 40px); line-height: 1.05; margin: 0; color: #fff; }
.dc-hero-by { opacity: .78; font-size: 14.5px; margin: 0; }
.dc-hero-note { font-size: clamp(14px, 1.6vw, 16px); line-height: 1.55; opacity: .92; margin: 4px 0 8px; }
.dc-hero .btn { align-self: flex-start; }
@media (max-width: 560px) {
  .dc-hero { flex-direction: column; text-align: center; }
  .dc-hero-text { align-items: center; }
  .dc-hero .btn { align-self: center; }
}

/* ---- 3D kitap (kitap sayfası ve günün kitabı) ---- */
.b3d { --bw: 200px; --bh: calc(var(--bw) * 1.5); --spine: hsl(var(--hue) 35% 22%); --paper: #efe4cc; --paper-2: #d8c8a6;
  position: relative; flex-shrink: 0; width: var(--bw); height: var(--bh); perspective: 1400px; touch-action: pan-y; cursor: grab; }
.b3d.b3d-big { --bw: clamp(150px, 21vw, 216px); }
.b3d.b3d-hero { --bw: clamp(118px, 16vw, 172px); }
.b3d.held { cursor: grabbing; }
.b3d-obj { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, 30deg)); transition: transform .6s var(--ease-out); }
.b3d.intro .b3d-obj { transform: rotateX(0deg) rotateY(-6deg) translateY(14px); transition: none; }
.b3d:not(.intro) .b3d-obj { transition: transform 1.1s var(--ease-spring); }
.b3d:hover .b3d-obj, .b3d.held .b3d-obj { transition: transform .25s var(--ease-out); }
.b3d-face { position: absolute; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.b3d-front { inset: 0; transform: translateZ(calc(var(--t) / 2)); border-radius: 1px 4px 4px 1px; overflow: hidden; }
.b3d-front::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(255,255,255,.18) 2.2%, rgba(0,0,0,.12) 4%, transparent 9%),
              linear-gradient(115deg, rgba(255,255,255,.14), transparent 40%); }
.b3d-front .w-cover { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.b3d-front .w-cover.gen { padding: calc(var(--bw) * .1); }
.b3d-front .w-cover.gen span { font-size: calc(var(--bw) * .1); }
.b3d-front .w-cover.gen small { font-size: calc(var(--bw) * .045); }
.b3d-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--t) / 2)); background: var(--spine); border-radius: 4px 1px 1px 4px; }
.b3d-spine { top: 0; height: 100%; width: var(--t); left: calc(50% - var(--t) / 2); display: grid; place-items: center; overflow: hidden;
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2)); background: var(--spine);
  background-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.14) 45%, rgba(0,0,0,.3)); }
.b3d-spine span { writing-mode: vertical-rl; font-family: var(--font-display); font-weight: 600; color: rgba(255,248,235,.88);
  font-size: clamp(9px, calc(var(--t) * .36), 14px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 86%; }
.b3d-edge { top: 3px; height: calc(100% - 6px); width: calc(var(--t) - 4px); left: calc(50% - (var(--t) - 4px) / 2);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 3px));
  background: linear-gradient(90deg, rgba(0,0,0,.18), transparent 30%, transparent 70%, rgba(0,0,0,.18)),
              repeating-linear-gradient(90deg, var(--paper) 0 1px, var(--paper-2) 1px 2px); }
.b3d-top, .b3d-bottom { left: 0; width: calc(100% - 3px); height: calc(var(--t) - 4px); top: calc(50% - (var(--t) - 4px) / 2);
  background: repeating-linear-gradient(0deg, var(--paper) 0 1px, var(--paper-2) 1px 2px); }
.b3d-top { transform: rotateX(90deg) translateZ(calc(var(--bh) / 2 - 3px)); }
.b3d-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bh) / 2 - 3px)); }
.b3d-shadow { position: absolute; left: 6%; right: -10%; bottom: -18px; height: 30px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.6), transparent); filter: blur(5px); transition: transform .6s var(--ease-out); }
.b3d.intro .b3d-shadow { transform: scaleX(.8); }
@media (prefers-reduced-motion: reduce) { .b3d-obj, .b3d:not(.intro) .b3d-obj { transition: none; } }

.dc-note { font-family: var(--font-hand); font-size: 26px; font-weight: 600; line-height: 1; color: #f3c98f; transform: rotate(-3deg); transform-origin: left; margin: 0 0 4px; }
.dc-hero .b3d { margin: 0 8px 14px; }
@media (max-width: 560px) { .dc-note { transform-origin: center; } }

/* ---- Profil sekmeleri: kayan çizgi, yerinde içerik değişimi ---- */
.pf-tabs { position: sticky; }
.pf-tab.active { border-color: transparent; }
.pf-ink { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; border-radius: 2px; background: var(--accent); pointer-events: none; }
.pf-tabs.ready .pf-ink { transition: transform .38s var(--ease-out), width .38s var(--ease-out); }
.pf-tab { transition: color .2s; }
.pf-body { position: relative; min-height: 200px; }
.pf-body-inner.pending { position: absolute; inset: 0 0 auto 0; visibility: hidden; pointer-events: none; }
