/* ==============================================================
   avare sözlük - tema (inci sözlük esintili)
   sarı üst bar, krem zemin, düz beyaz bloklar, turuncu bağlantılar.
   Emoji yok; ikonlar çizgisel SVG. Karanlık mod: html[data-theme="dark"]
   ============================================================== */
:root {
    --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

    --sari: #f0cc0b;
    --sari-koyu: #d4ae00;
    --sari-yazi: #2b2500;
    --header-bg: #f0cc0b;

    --bg: #F5F3EC;
    --kart: #ffffff;
    --cizgi: #ebe6d4;
    --cizgi-koyu: #ddd5b6;
    --hover: #fff9d9;

    --text: #2d2b26;
    --muted: #8d8878;
    --ozet: #6b6655;
    --ince: #b5af9b;
    --turuncu: #c8650c;
    --yesil: #2e9e4f;
    --kirmizi: #d63b2a;

    --input-bg: #ffffff;
    --btn-bg: #f5f0dc;
    --btn-text: #5c5640;

    --hata-bg: #fdeeea;
    --hata-border: #efb2a7;
    --hata-text: #9a2d1c;
    --basari-bg: #eef8ee;
    --basari-border: #b5dcb6;
    --basari-text: #1f6a34;
    --duyuru-bg: #fff8d6;
}
/* Gece modu: incisözlük'teki gibi gri zemin (#D2D2D2), lacivert üst bar, mavi bağlantılar */
html[data-theme="dark"] {
    --sari: #6b6b6b;
    --sari-koyu: #555555;
    --sari-yazi: #ffffff;
    --header-bg: #2e3a5c;

    --bg: #D2D2D2;
    --kart: #E2E2E2;
    --cizgi: #c6c6c6;
    --cizgi-koyu: #b4b4b4;
    --hover: #d9d9d9;

    --text: #1c1c1c;
    --muted: #6a6a6a;
    --ozet: #3d3d3d;
    --ince: #8c8c8c;
    --turuncu: #1c4e91;
    --yesil: #1f7a3d;
    --kirmizi: #b3261e;

    --input-bg: #efefef;
    --btn-bg: #e9e9e9;
    --btn-text: #2f2f2f;

    --hata-bg: #f3d9d6;
    --hata-border: #d9a39d;
    --hata-text: #7a1f17;
    --basari-bg: #d8ead9;
    --basari-border: #9fc7a2;
    --basari-text: #1d5a2c;
    --duyuru-bg: #e6e2c4;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; scrollbar-width: thin; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 15px/1.5 var(--font);
    -webkit-tap-highlight-color: transparent;
}
a { color: var(--turuncu); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--sari-koyu); outline-offset: 2px; }
form { margin: 0; }
h1, h2 { font-weight: 700; }

.ikon { display: block; flex: 0 0 auto; }

/* ---------------- üst bar ---------------- */
.header-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--header-bg);
    padding-top: env(safe-area-inset-top, 0px);
}
.header-ic {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 14px;
    min-height: 48px;
    display: grid;
    grid-template-columns: 1fr minmax(260px, 520px) 1fr;
    align-items: center;
    column-gap: 14px;
}
.logo-title { justify-self: start; display: flex; align-items: center; line-height: 0; }
.logo-title:hover { text-decoration: none; }
.logo-masaustu { display: block; height: 26px; width: auto; }
.logo-mobil { display: none; height: 34px; width: auto; }

.header-arama { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; }
.header-arama .retro-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 34px;
    padding: 0 36px 0 11px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 3px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%238d8878' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") no-repeat right 9px center;
    color: #2d2b26;
    font-size: 14px;
    box-shadow: none;
}
.header-arama .retro-input:focus { outline: 2px solid rgba(0, 0, 0, 0.25); outline-offset: 0; box-shadow: none; }
.ara-yazi { background: none; border: 0; padding: 4px 2px; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.14); }

.header-nav { justify-self: end; display: flex; align-items: center; gap: 2px; }
.header-nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 9px;
    border-radius: 3px;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}
.header-nav a:hover { background: rgba(255, 255, 255, 0.22); text-decoration: none; }
.header-nav a.nick-link { margin-left: 4px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, 0.85); text-decoration: none; }
.header-nav a.nick-link:hover { background: rgba(255, 255, 255, 0.22); }

.tema-btn { background: none; border: 0; padding: 7px 8px; cursor: pointer; display: flex; align-items: center; }
.tema-btn:hover { background: rgba(255, 255, 255, 0.22); border-radius: 3px; }
.tema-ikon { display: block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%); }

.header-mobil { display: none; }

/* bildirim rozeti + yanıp sönme */
.bildirim-sayac {
    display: inline-block;
    min-width: 18px;
    padding: 0 5px;
    margin-left: 5px;
    border-radius: 9px;
    background: #e0301e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    text-shadow: none;
}
.yanip { animation: yan 1s ease-in-out infinite; }
.yanip .bildirim-sayac { animation: nabiz 1s ease-in-out infinite; }
@keyframes yan { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes nabiz {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(224, 48, 30, 0.7); }
    50% { transform: scale(1.2); box-shadow: 0 0 0 6px rgba(224, 48, 30, 0); }
}

/* ---------------- sekmeler (bugün / yeniler / gündem / popüler) ---------------- */
.sekme-bar {
    max-width: 1060px;
    margin: 0 auto;
    padding: 20px 12px 10px;
    display: flex;
    justify-content: center;
    gap: 36px;
}
.sekme-bar a {
    color: var(--turuncu);
    font-size: 15px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.sekme-bar a:hover { text-decoration: none; border-bottom-color: var(--cizgi-koyu); }
.sekme-bar a.aktif { font-weight: 700; border-bottom-color: var(--turuncu); }
.sekme-sayi { margin-left: 3px; font-size: 12px; color: var(--text); font-weight: 400; }

/* ---------------- iskelet ---------------- */
.page-body {
    max-width: 1060px;
    margin: 0 auto;
    padding: 6px 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}
.main-content { flex: 1 1 auto; min-width: 0; padding: 0; }

.left-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 58px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    scrollbar-width: thin;
    background: var(--kart);
    border: 1px solid var(--cizgi);
    margin-top: 0;
}
.sidebar-search { padding: 8px; border-bottom: 1px solid var(--cizgi); position: relative; }
.sidebar-search .retro-input { width: 100%; font-size: 13px; padding: 6px 9px; }
.sidebar-baslik { padding: 10px 14px; background: var(--hover); border-bottom: 1px solid var(--cizgi); font-size: 14px; font-weight: 700; }
.sidebar-baslik a { color: var(--text); }
.left-sidebar ul { list-style: none; margin: 0; padding: 0; }
.left-sidebar li {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--cizgi);
    font-size: 14px;
    line-height: 1.35;
}
.left-sidebar li:hover { background: var(--hover); }
.left-sidebar li a { color: var(--text); overflow-wrap: anywhere; }
.left-sidebar li a:hover { text-decoration: none; }
.left-sidebar li .entry-count { flex: 0 0 auto; color: var(--muted); font-size: 12px; align-self: center; }
.left-sidebar li.bos { color: var(--muted); }
.sidebar-devam { display: block; padding: 10px 14px; text-align: right; font-size: 13px; font-weight: 700; }

/* ---------------- başlıklar ve listeler ---------------- */
.topic-header {
    background: var(--kart);
    border: 1px solid var(--cizgi);
    padding: 16px 18px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.topic-header form { display: inline; margin-left: 8px; }
.topic-header .retro-btn { font-size: 12px; padding: 3px 10px; vertical-align: middle; }
.topic-header .baslik-link { color: inherit; }

.liste-baslik { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 0 2px 8px; font-size: 16px; font-weight: 700; }
.liste-alt { font-size: 12px; font-weight: 400; color: var(--muted); }
.tumu-link { margin-left: auto; font-size: 13px; font-weight: 600; }

.baslik-liste { background: var(--kart); border: 1px solid var(--cizgi); }
.baslik-satir { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px 10px 10px; border-bottom: 1px solid var(--cizgi); color: var(--text); }
.baslik-satir:last-child { border-bottom: 0; }
.baslik-satir:hover { background: var(--hover); }
.bs-oy { flex: 0 0 46px; display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.bs-oy form { display: block; }
.bs-kutu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--sari);
    color: var(--sari-yazi);
    font: inherit;
    line-height: 1.05;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, transform 0.08s ease;
}
.bs-kutu b { font-size: 12px; font-weight: 600; }
.bs-kutu span { font-size: 10px; }
.bs-kutu:hover { background: var(--sari-koyu); text-decoration: none; }
.bs-kutu:active { transform: scale(0.94); }
.bs-kutu.secili { background: var(--sari-koyu); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35); }
.bs-icerik { flex: 1 1 auto; min-width: 0; display: block; color: var(--text); }
.bs-icerik:hover { text-decoration: none; }
.bs-ust { display: flex; align-items: baseline; gap: 14px; }
.bs-baslik { font-size: 19px; line-height: 1.3; overflow-wrap: anywhere; }
.bs-sayi { flex: 0 0 auto; font-size: 14px; color: var(--muted); }
.bs-ozet {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 4px 0 7px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ozet);
    overflow-wrap: anywhere;
}
.bs-alt { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bs-nick, .bs-nokta { color: var(--muted); }

.mini-avatar {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: hsl(var(--h, 40) 32% 62%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
}

/* ---------------- entry kartı ---------------- */
.entry-kart { display: flex; background: var(--kart); border: 1px solid var(--cizgi); margin-bottom: 10px; scroll-margin-top: 70px; }
.entry-kart:target { border-color: var(--sari-koyu); box-shadow: 0 0 0 2px rgba(240, 204, 11, 0.35); }
.entry-oy { position: relative; flex: 0 0 46px; display: flex; flex-direction: column; align-items: center; padding: 12px 0; gap: 1px; }
.entry-oy form { display: block; }
.entry-govde { flex: 1 1 auto; min-width: 0; padding: 14px 16px 9px 4px; }

.entry-item {
    background: var(--kart);
    border: 1px solid var(--cizgi);
    padding: 14px 16px;
    margin-bottom: 4px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.entry-govde .entry-item { background: none; border: 0; padding: 0; margin: 0; font-size: 16px; line-height: 1.65; }
.duzenlendi-etiketi { font-size: 11px; color: var(--muted); font-style: italic; }

.meta-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin: 0 2px 14px;
    padding-top: 6px;
    font-size: 12px;
    color: var(--muted);
}
.entry-govde .meta-info { margin: 12px 0 0; padding: 0; }
.entry-araclar { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.entry-araclar form { display: inline; }
.sil-link { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.arac-ikon { display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; text-decoration: none; transition: color 0.12s ease, background 0.12s ease; }
.arac-ikon:hover { color: var(--turuncu); background: var(--hover); text-decoration: none; }
.favori-link.favorilendi { color: #d6402b; }
.favori-link.favorilendi svg { fill: currentColor; }
.ayar-link { color: var(--ince); }
.sil-link:hover { color: var(--turuncu); text-decoration: underline; }
.admin-sil-link { color: var(--kirmizi); }

.entry-yazar { margin-left: auto; display: flex; align-items: center; justify-content: flex-end; gap: 9px; }
.yazar-metin { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.entry-nick { color: var(--turuncu); font-weight: 600; font-size: 14px; }
.yazar-alt { display: flex; gap: 8px; align-items: baseline; }
.entry-tarih, .entry-no { font-size: 12px; color: var(--muted); }
a.entry-no:hover { color: var(--turuncu); }
.yazar-foto-kap { flex: 0 0 auto; display: block; line-height: 0; }
.yazar-foto-kap .mini-avatar { width: 32px; height: 32px; font-size: 14px; }
.yazar-foto { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--cizgi); }

/* oy okları (yazı gizli, CSS ok) */
.oy-btn {
    position: relative;
    display: block;
    width: 28px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ince);
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.1s ease, color 0.15s ease;
}
.oy-btn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
}
.oy-btn[aria-label="beğen"]::before { transform: translate(-50%, -30%) rotate(-135deg); }
.oy-btn[aria-label="beğenme"]::before { transform: translate(-50%, -70%) rotate(45deg); }
.oy-btn:hover { color: var(--text); text-decoration: none; }
.oy-btn:active { transform: scale(0.8); }
.oy-btn.aktif-oy-pozitif { color: var(--yesil); }
.oy-btn.aktif-oy-negatif { color: var(--kirmizi); }
.oy-skor { font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.2; min-width: 20px; text-align: center; }

.miss-flash {
    position: absolute;
    left: calc(100% - 4px);
    top: 42px;
    z-index: 5;
    padding: 2px 10px;
    border-radius: 3px;
    background: var(--sari);
    color: var(--sari-yazi);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    animation: missGit 2.4s ease forwards;
}
@keyframes missGit {
    0% { opacity: 0; transform: translateX(-4px); }
    12% { opacity: 1; transform: none; }
    70% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

/* bkz, resim, araç çubuğu */
.bkz { color: var(--turuncu); border-bottom: 1px dotted currentColor; }
.bkz:hover { text-decoration: none; border-bottom-style: solid; }
.entry-resim-kap { display: block; margin: 10px 0; }
.entry-resim { display: block; max-width: 100%; max-height: 560px; height: auto; border: 1px solid var(--cizgi); }
.resim-yok { color: var(--muted); font-style: italic; }
.entry-arac-cubugu { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.entry-arac-cubugu .retro-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 4px 10px; }
.arac-durum { font-size: 12px; color: var(--muted); }
.arac-durum.hata { color: var(--hata-text); }

/* ---------------- düğmeler ve formlar ---------------- */
.retro-btn {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid var(--cizgi-koyu);
    border-radius: 3px;
    background: var(--btn-bg);
    color: var(--btn-text) !important;
    font: 600 13px/1.3 var(--font);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}
.retro-btn:hover { background: var(--sari); border-color: var(--sari-koyu); color: var(--sari-yazi) !important; text-decoration: none; }
.retro-btn:active { transform: translateY(1px); }
.retro-btn.aktif-sayfa, .btn-ana, form .retro-btn[type="submit"] { background: var(--sari); border-color: var(--sari-koyu); color: var(--sari-yazi) !important; }
.btn-ana:hover, form .retro-btn[type="submit"]:hover { background: var(--sari-koyu); }
form .retro-btn[type="submit"] { padding: 8px 20px !important; }
.takip-btn.takip-ediliyor { background: var(--btn-bg); border-color: var(--cizgi-koyu); color: var(--btn-text) !important; }
.admin-btn { color: var(--kirmizi) !important; }

.retro-input, textarea, select, input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], input[type="date"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--cizgi-koyu);
    border-radius: 3px;
    background: var(--input-bg);
    color: var(--text);
    font: 15px/1.4 var(--font);
}
.retro-input:focus, textarea:focus, select:focus, input:focus { outline: none; border-color: var(--sari-koyu); box-shadow: 0 0 0 3px rgba(240, 204, 11, 0.3); }
textarea { min-height: 140px; line-height: 1.6; resize: vertical; }
input[type="file"] { width: auto; max-width: 100%; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 600; color: var(--ozet); }

.entry-form-box, .retro-table-box, .registration-box {
    background: var(--kart);
    border: 1px solid var(--cizgi);
    padding: 16px 18px;
    margin-top: 14px;
}
.retro-table-box, .registration-box { max-width: 460px; margin-left: auto; margin-right: auto; }

.notice-msg { padding: 10px 14px; margin-bottom: 12px; border: 1px solid var(--basari-border); background: var(--basari-bg); color: var(--basari-text); font-size: 14px; }
.notice-msg.hata { border-color: var(--hata-border); background: var(--hata-bg); color: var(--hata-text); }
.notice-msg.duyuru { border-color: var(--sari-koyu); background: var(--duyuru-bg); color: var(--text); }

.rozet { display: inline-block; padding: 1px 7px; border-radius: 2px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.rozet.yesil { background: var(--basari-bg); color: var(--basari-text); }
.rozet.kirmizi { background: var(--hata-bg); color: var(--hata-text); }
.rozet.mor { background: var(--hover); color: var(--ozet); border: 1px solid var(--cizgi); }

.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; }
.online-dot.yesil { background: var(--yesil); }
.online-dot.gri { background: var(--ince); }

.stats-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.stats-table td { padding: 5px 4px; border-bottom: 1px solid var(--cizgi); }
.stats-table tr:last-child td { border-bottom: 0; }

/* arama önerileri */
.oneri-kutusu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    max-height: 280px;
    overflow-y: auto;
    background: var(--kart);
    border: 1px solid var(--cizgi-koyu);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.oneri-kutusu a { display: block; padding: 8px 12px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--cizgi); }
.oneri-kutusu a:last-child { border-bottom: 0; }
.oneri-kutusu a:hover { background: var(--hover); text-decoration: none; }
.header-arama .oneri-kutusu { right: 48px; }

/* ---------------- sayfalama ---------------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 16px 0 22px; }
.pager .retro-btn { min-width: 36px; padding: 5px 10px; }
.pager-bosluk { padding: 0 4px; color: var(--muted); }
.sayfaya-git { display: inline-flex; gap: 4px; margin-left: 8px; }
.sayfaya-git input { width: 72px; padding: 5px 8px; }
.sayfaya-git .retro-btn { padding: 5px 12px !important; }

/* ---------------- profil ---------------- */
.profil-kart { background: var(--kart); border: 1px solid var(--cizgi); margin-bottom: 14px; overflow: hidden; }
.profil-kapak { height: 84px; background: var(--sari) repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0 14px, transparent 14px 28px); }
.profil-ust { display: flex; align-items: flex-start; gap: 16px; padding: 0 20px 16px; }
.profile-avatar, .profile-avatar-foto {
    flex: 0 0 auto;
    width: 92px;
    height: 92px;
    margin-top: -46px;
    border: 4px solid var(--kart);
    border-radius: 50%;
    background: #ead98a;
    color: #5b4a00;
    font-size: 38px;
    font-weight: 700;
    display: grid;
    place-items: center;
    object-fit: cover;
}
.profil-bilgi { flex: 1 1 auto; min-width: 0; padding-top: 12px; }
.profile-name { margin: 0; font-size: 26px; line-height: 1.2; overflow-wrap: anywhere; }
.nesil-etiketi {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 8px;
    border: 1px solid #ecd978;
    border-radius: 2px;
    background: #fbf1b8;
    color: #7a6500;
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}
.nesil-etiketi.oglul { background: #2d2b26; border-color: #2d2b26; color: var(--sari); }
.profile-sub, .profil-takip-sayi { margin-top: 5px; font-size: 13px; color: var(--muted); }
.profil-takip-sayi b { color: var(--text); }
.ayrac { margin: 0 6px; color: var(--ince); }
.admin-rozet { margin-left: 6px; background: #2d2b26; color: var(--sari); }
html[data-theme="dark"] .admin-rozet { background: #2e3a5c; color: #fff; }
.profil-aksiyon { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.engel-btn.engelli { background: var(--hata-bg); border-color: var(--hata-border); color: var(--hata-text) !important; }
.profil-bilgi .ayar-link { vertical-align: middle; margin-left: 4px; }
.profil-aksiyon { margin-left: auto; padding-top: 12px; }
.profil-istatistik { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--cizgi); }
.stat-box { padding: 14px 8px; text-align: center; border-right: 1px solid var(--cizgi); }
.stat-box:last-child { border-right: 0; }
.stat-box .sayi { font-size: 24px; font-weight: 700; line-height: 1.2; }
.stat-box .sayi.eksi { color: var(--kirmizi); }
.stat-box .etiket { font-size: 12px; color: var(--muted); }
.foto-degistir { background: var(--kart); border: 1px solid var(--cizgi); margin-bottom: 14px; padding: 10px 16px; }
.foto-degistir summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--turuncu); }
.foto-degistir form { padding-top: 10px; }
.foto-degistir p { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.profile-section-title { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 8px; font-size: 17px; font-weight: 700; }
.profil-entry { background: var(--kart); border: 1px solid var(--cizgi); padding: 14px 16px 10px; margin-bottom: 10px; }
.profil-entry-baslik { display: block; margin-bottom: 6px; color: var(--text); font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.profil-entry-baslik:hover { color: var(--turuncu); text-decoration: none; }
.profil-entry .entry-item { background: none; border: 0; padding: 0; margin: 0; font-size: 15.5px; line-height: 1.65; }
.profil-entry .meta-info { margin: 10px 0 0; padding: 0; }

/* ---------------- alt bilgi, yukarı çık ---------------- */
.footer { margin-top: 36px; padding: 26px 12px 30px; text-align: center; font-size: 12px; color: var(--muted); }
.footer-linkler { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 10px; font-size: 13px; }
.yukari-btn {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 80;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--sari);
    color: var(--sari-yazi);
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.yukari-btn.goster { opacity: 1; transform: none; pointer-events: auto; }
.alt-nav { display: none; }

/* ---------------- yönetim paneli ---------------- */
.admin-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px 16px; background: #2d2b26; color: var(--sari); }
.admin-topbar-baslik { font-size: 14px; font-weight: 700; }
.admin-topbar-kullanici { margin-right: 8px; font-size: 12px; opacity: 0.8; }
.admin-topbar .retro-btn { padding: 4px 10px; }
.admin-tabs { display: flex; overflow-x: auto; background: var(--kart); border-bottom: 1px solid var(--cizgi); scrollbar-width: none; }
.admin-tabs a { flex: 0 0 auto; padding: 11px 16px; color: var(--text); font-size: 13px; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.admin-tabs a:hover { background: var(--hover); text-decoration: none; }
.admin-tabs a.aktif { border-bottom-color: var(--sari-koyu); color: var(--turuncu); }
.admin-content { max-width: 1060px; margin: 0 auto; padding: 18px 14px 10px; }
.admin-panel { background: var(--kart); border: 1px solid var(--cizgi); padding: 14px 18px; margin-bottom: 14px; }
.admin-panel h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--cizgi); font-size: 15px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 7px 8px; border-bottom: 1px solid var(--cizgi); text-align: left; vertical-align: top; }
.admin-table th { background: var(--hover); font-size: 12px; }
.admin-table td.sag { text-align: right; }
.admin-table td.uzun { max-width: 420px; white-space: normal; overflow-wrap: anywhere; }
.admin-table tr:hover td { background: var(--hover); }
.tablo-kaydir { overflow-x: auto; }
.admin-filtre-formu { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.admin-filtre-formu .form-row { margin-bottom: 0; }
.admin-filtre-formu input, .admin-filtre-formu select { min-width: 150px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
.admin-stat-grid .stat-box { background: var(--kart); border: 1px solid var(--cizgi); }
.admin-stat-grid .stat-box.uyari .sayi { color: var(--kirmizi); }
.admin-iki-kolon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hizli-erisim { display: flex; flex-wrap: wrap; gap: 8px; }
.grafik { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding-top: 34px; }
.cubuk-kap { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cubuk { width: 100%; background: var(--sari); }
.cubuk.ikinci { background: var(--turuncu); }
.cubuk-sayi { font-size: 10px; color: var(--muted); line-height: 1.6; }
.cubuk-gun { font-size: 10px; color: var(--muted); line-height: 1.6; }
.resim-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 12px; }
.resim-kart { border: 1px solid var(--cizgi); padding: 8px; background: var(--kart); }
.resim-kart img { display: block; width: 100%; height: 130px; object-fit: cover; }
.resim-bilgi { display: flex; flex-direction: column; margin: 6px 0; font-size: 11px; color: var(--muted); }
.resim-bilgi b { color: var(--text); }

/* ---------------- mobil ---------------- */
@media (max-width: 700px) {
    body { font-size: 16px; padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
    html { scroll-padding-top: 62px; }

    /* üst bar (incisözlük mantığı): logo + arama aynı satırda, sağda ikonlar, menü açılınca yatay link satırı */
    .header-ic { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; padding: 6px 4px 6px 12px; min-height: 52px; }
    .logo-title { flex: 0 0 auto; }
    .logo-masaustu { display: none; }
    .logo-mobil { display: block; }
    .header-arama { display: flex; flex: 1 1 0; min-width: 0; margin: 0; }
    .header-arama .retro-input { height: 36px; font-size: 16px; padding-right: 32px; }
    .ara-yazi { display: none; }
    .header-arama .oneri-kutusu { right: 0; }
    .header-mobil { display: flex; flex: 0 0 auto; align-items: center; }
    .ikon-btn { position: relative; display: grid; place-items: center; width: 38px; height: 42px; background: none; border: 0; color: #fff; cursor: pointer; }
    .ikon-btn:active { background: rgba(255, 255, 255, 0.2); }
    .zil-btn .bildirim-sayac { position: absolute; top: 3px; right: -1px; margin: 0; }

    .header-nav { display: none; order: 5; flex: 0 0 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 2px; margin: 0; padding: 2px 4px 10px 0; background: none; border: 0; }
    .header-bar.menu-acik .header-nav { display: flex; }
    .header-nav a { padding: 9px 11px; border: 0; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12); font-size: 15px; }
    .header-nav a:hover { background: rgba(255, 255, 255, 0.22); }
    .header-nav a .bildirim-sayac { float: none; }
    .header-nav a.nick-link { margin-left: 6px; padding: 8px 12px; }
    .tema-btn { padding: 9px 11px; }
    .tema-btn::after { content: none; }
    .tema-ikon { border-color: #fff; background: linear-gradient(90deg, #fff 50%, transparent 50%); }

    .sekme-bar { padding: 14px 8px 8px; gap: 0; justify-content: space-around; overflow-x: auto; }
    .sekme-bar a { padding: 6px 8px; font-size: 15px; }

    .page-body { display: block; padding: 4px 0 0; }
    .left-sidebar { display: none; }
    .main-content { padding: 0; }

    .liste-baslik, .profile-section-title { padding-left: 12px; padding-right: 12px; }
    .topic-header { margin-left: 0; margin-right: 0; border-left: 0; border-right: 0; padding: 14px 14px; font-size: 21px; }
    .baslik-liste, .entry-item, .entry-form-box, .profil-kart, .profil-entry, .foto-degistir, .notice-msg { border-left: 0; border-right: 0; }
    .baslik-satir { padding: 14px 12px 12px 8px; gap: 10px; }
    .bs-oy { flex-basis: 44px; }
    .bs-kutu { width: 44px; height: 42px; }
    .bs-kutu b { font-size: 13px; }
    .bs-kutu span { font-size: 11px; }
    .bs-baslik { font-size: 18px; }
    .bs-ozet { font-size: 14.5px; }

    .entry-kart { border-left: 0; border-right: 0; margin-bottom: 8px; }
    .entry-oy { flex-basis: 40px; padding-top: 10px; }
    .entry-govde { padding: 12px 12px 9px 0; }
    .entry-govde .entry-item { font-size: 16.5px; line-height: 1.6; }
    .oy-btn { width: 34px; height: 30px; }
    .oy-skor { font-size: 13px; }
    .sil-link { font-size: 13px; padding: 4px 0; }
    .entry-nick { font-size: 14px; }
    .entry-tarih, .entry-no { font-size: 12px; }
    .miss-flash { left: 38px; }

    .entry-item { padding: 13px 14px; font-size: 16px; }
    .meta-info { margin-left: 12px; margin-right: 12px; }
    .entry-form-box { padding: 14px; margin-top: 10px; }
    textarea, .retro-input, input[type="text"], input[type="password"], input[type="email"], input[type="search"], select { font-size: 16px; }
    .retro-btn { padding: 9px 14px; min-height: 38px; }

    .profil-kapak { height: 64px; }
    .profil-ust { flex-wrap: wrap; padding: 0 14px 14px; gap: 10px 14px; }
    .profile-avatar, .profile-avatar-foto { width: 76px; height: 76px; margin-top: -38px; font-size: 32px; }
    .profil-bilgi { flex: 1 1 calc(100% - 100px); padding-top: 8px; }
    .profile-name { font-size: 22px; }
    .profil-aksiyon { flex: 0 0 100%; margin-left: 0; padding-top: 0; }
    .profil-aksiyon .retro-btn { width: 100%; }
    .profil-istatistik { grid-template-columns: repeat(2, 1fr); }
    .profil-istatistik .stat-box:nth-child(2) { border-right: 0; }
    .profil-istatistik .stat-box:nth-child(-n+2) { border-bottom: 1px solid var(--cizgi); }
    .profil-entry { padding: 13px 14px 10px; }

    .pager .retro-btn { min-width: 40px; }
    .sayfaya-git { margin: 8px 0 0; width: 100%; }
    .sayfaya-git input { flex: 1; width: auto; }

    .retro-table-box, .registration-box { margin-left: 10px; margin-right: 10px; }
    .footer { padding-bottom: 20px; }

    .alt-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 70;
        background: var(--kart);
        border-top: 1px solid var(--cizgi-koyu);
        padding: 3px 0 calc(3px + env(safe-area-inset-bottom, 0px));
    }
    .alt-nav a, .alt-nav button {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 7px 0 5px;
        background: none;
        border: 0;
        color: var(--muted);
        font: 600 11px/1.1 var(--font);
        cursor: pointer;
        text-decoration: none;
    }
    .alt-nav a.aktif { color: var(--turuncu); }
    .alt-nav .orta .orta-ikon {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        margin-top: -20px;
        border-radius: 50%;
        background: var(--sari);
        color: var(--sari-yazi);
        box-shadow: 0 0 0 4px var(--kart), 0 2px 8px rgba(0, 0, 0, 0.25);
    }
    .alt-nav .ikon-kap { position: relative; display: block; }
    .alt-nav .bildirim-sayac { position: absolute; top: -6px; right: -12px; margin: 0; }
    .alt-nav .yanip { animation: none; }
    .alt-nav .yanip .ikon { animation: yan 1s ease-in-out infinite; }
    .yukari-btn { right: 12px; bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

    .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-iki-kolon { grid-template-columns: 1fr; }
    .admin-content { padding: 12px 10px; }
    .admin-panel { padding: 12px; }
    .admin-table { display: block; overflow-x: auto; }
    .admin-table td.uzun { min-width: 200px; }
}

@media (min-width: 701px) and (max-width: 940px) {
    .left-sidebar { flex-basis: 210px; }
    .header-nav a { padding: 7px 6px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .miss-flash, .oy-btn, .yukari-btn { transition: none; }
}

/* ---------------- mobil klavye deneyimi ---------------- */
a, button, input, select, textarea, label, summary { touch-action: manipulation; }

@media (max-width: 700px) {
    /* iOS/Android: 16px altındaki alanlara odaklanınca tarayıcı sayfayı yakınlaştırır; bunu tamamen engelle */
    input, textarea, select { font-size: 16px !important; }
    textarea { scroll-margin-top: 90px; scroll-margin-bottom: 20px; min-height: 120px; max-height: 55vh; }

    /* klavye açıkken alt gezinme ve yukarı çık düğmesi klavyenin üstünde gezmesin */
    body.klavye-acik { padding-bottom: 0; }
    body.klavye-acik .alt-nav,
    body.klavye-acik .yukari-btn { display: none; }
}

/* ---------------- olan biten ---------------- */
.ob-form { background: var(--kart); border: 1px solid var(--cizgi); padding: 12px 14px; margin-bottom: 12px; }
.ob-form textarea { min-height: 96px; }
.ob-form-alt { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin-top: 8px; }
.ob-form-alt .retro-btn { padding: 6px 22px !important; }
.ob-ipucu { font-size: 12px; color: var(--muted); }
.ob-liste { background: var(--kart); border: 1px solid var(--cizgi); }
.ob-satir { display: flex; border-bottom: 1px solid var(--cizgi); }
.ob-satir:last-child { border-bottom: 0; }
.ob-satir:target { background: var(--hover); }
.ob-nick { flex: 0 0 130px; padding: 12px 12px; border-right: 1px solid var(--cizgi); background: var(--hover); font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.ob-govde { flex: 1 1 auto; min-width: 0; padding: 12px 16px 8px; }
.ob-metin { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.ob-islem { white-space: nowrap; font-size: 13px; }
.ob-islem form { display: inline; }
.ob-islem .sil-link { color: var(--turuncu); font-size: 13px; }
.ob-tarih { margin-top: 12px; padding-top: 6px; border-top: 1px solid var(--cizgi); text-align: right; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
    .ob-liste, .ob-form { border-left: 0; border-right: 0; }
    .ob-satir { flex-direction: column; }
    .ob-nick { flex-basis: auto; padding: 8px 14px; border-right: 0; border-bottom: 1px solid var(--cizgi); }
    .ob-govde { padding: 10px 14px 8px; }
    .ob-metin { font-size: 16px; }
}

/* ---------------- engellenen yazar ---------------- */
.engelli-not { display: none; width: 100%; padding: 12px 16px; font-size: 13px; color: var(--muted); }
.entry-kart.entry-engelli { flex-wrap: wrap; }
.entry-kart.entry-engelli .engelli-not { display: flex; align-items: center; gap: 10px; }
.entry-kart.entry-engelli .entry-oy, .entry-kart.entry-engelli .entry-govde { display: none; }
.engelli-goster { color: var(--turuncu); font-size: 13px; font-weight: 600; }

/* ---------------- yükleniyor göstergesi (aşağı çekince yenile) ---------------- */
.ptr { height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--header-bg); transition: height 0.2s ease; }
.ptr.cekiliyor { transition: none; }
.ptr-spin { width: 26px; height: 26px; border: 3px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; border-radius: 50%; opacity: 0; }
.ptr.yukleniyor .ptr-spin { opacity: 1; animation: ptrDon 0.7s linear infinite; }
@keyframes ptrDon { to { transform: rotate(360deg); } }
body { overscroll-behavior-y: contain; }

/* ---------------- küçük bildirim (toast) ---------------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 120; transform: translate(-50%, 12px); padding: 9px 18px; border-radius: 3px; background: #2d2b26; color: #fff; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.goster { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- istatistik sayfası (incisözlük düzeni) ---------------- */
.ist-secim { margin-bottom: 10px; }
.ist-secim select { width: 100%; padding: 10px 12px; font-size: 15px; background: var(--kart); }
.ist-kutu { background: var(--kart); border: 1px solid var(--cizgi); padding: 14px 14px 22px; }
.ist-not { margin-bottom: 8px; font-size: 11px; color: var(--muted); }
.ist-tablo { width: 100%; border-collapse: collapse; border: 1px solid var(--cizgi); }
.ist-tablo td { padding: 9px 10px; border: 1px solid var(--cizgi); vertical-align: top; font-size: 14px; }
.ist-tablo td.no { width: 36px; color: var(--ozet); }
.ist-tablo td.ad { color: var(--turuncu); }
.ist-tablo td.ad a { color: var(--turuncu); }
.ist-tablo td.deger { width: 34%; white-space: nowrap; }
.ist-ozet { font-size: 12px; color: var(--muted); }
.ist-cubuk { display: inline-block; height: 10px; background: var(--sari); vertical-align: middle; }

/* ---------------- yönetim: yazar sayfası, modlog ---------------- */
.yazar-bilgi { width: 100%; border-collapse: collapse; }
.yazar-bilgi th, .yazar-bilgi td { padding: 9px 10px; border-bottom: 1px solid var(--cizgi); text-align: left; font-size: 14px; }
.yazar-bilgi th { width: 190px; background: var(--hover); font-weight: 700; }
.yazar-baglar { display: flex; gap: 18px; margin-top: 12px; font-size: 14px; }
.mudahale-formu .retro-input { max-width: 560px; }
.mudahale-butonlar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.mudahale-butonlar .retro-btn { padding: 7px 14px !important; }
.sureli-ban { display: inline-flex; gap: 6px; align-items: center; }
.sureli-ban select { width: auto; padding: 7px 8px; }
.yetki-butonlari { padding-top: 10px; border-top: 1px dashed var(--cizgi-koyu); }
.modlog-tablo td, .modlog-tablo th { white-space: nowrap; }
.modlog-tablo td.uzun { white-space: normal; min-width: 180px; }
.modlog-tablo i { font-style: italic; }

@media (max-width: 700px) {
    .ist-kutu { border-left: 0; border-right: 0; padding: 12px 10px 20px; }
    .ist-tablo td { padding: 9px 8px; font-size: 14px; }
    .ist-tablo td.deger { width: auto; }
    .yazar-bilgi th { width: 120px; }
    .yazar-foto-kap .mini-avatar, .yazar-foto { width: 30px; height: 30px; }
    .entry-yazar { gap: 8px; }
}
