/* ==========================================================
   Bebek Rehberi — Yönetim paneli stilleri
   ========================================================== */
:root {
    /* Pudra pembesi, krem, beyaz ve koyu lacivert */
    --pink: #f0607a; --pink-d: #de4865; --pink-l: #fdeef1; --pink-xl: #fff6f7;
    --blue: #3b7fd4; --blue-l: #eef5ff;
    --ink: #1f2a4d; --soft: #4f5877; --muted: #6f7591; --line: #f0e6e8;
    --bg: #fdf8f6; --cream: #fff9f3; --white: #fff;
    --ok: #15803d; --ok-l: #e2f6e9; --warn: #b45309; --warn-l: #fff1dc; --bad: #d61f45; --bad-l: #ffe8ec;
    --radius: 16px; --shadow: 0 6px 22px rgba(31, 42, 77, .06); --shadow-lg: 0 14px 34px rgba(31, 42, 77, .1);
    --font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "Baloo 2", "Nunito", sans-serif;
}
.tone-pink   { --tone-bg: #ffe3ec; --tone-fg: #d6246e; }
.tone-coral  { --tone-bg: #ffe6dc; --tone-fg: #c2410c; }
.tone-blue   { --tone-bg: #dcecff; --tone-fg: #1d6fd8; }
.tone-peach  { --tone-bg: #ffecd6; --tone-fg: #c05600; }
.tone-lilac  { --tone-bg: #ece4ff; --tone-fg: #7c3aed; }
.tone-mint   { --tone-bg: #d5f7f0; --tone-fg: #0b7d72; }
.tone-yellow { --tone-bg: #fff3c4; --tone-fg: #a86400; }
.tone-teal   { --tone-bg: #d9f5ec; --tone-fg: #087a54; }
.tone-red    { --tone-bg: #ffe1e6; --tone-fg: #d61f45; }

*, *::before, *::after { box-sizing: border-box; }
body.admin { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--pink); }
h1, h2, h3 { font-family: var(--display); margin: 0 0 .5em; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(59, 127, 212, .4); outline-offset: 2px; border-radius: 6px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon--xs { width: 15px; height: 15px; }
.icon--sm { width: 18px; height: 18px; }
.icon--xl { width: 44px; height: 44px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .82rem; margin: 6px 0 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--blue-l); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* ---------- Kabuk ---------- */
.admin-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar { background: linear-gradient(180deg, #fff 0%, #fff9f8 100%); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 22px 20px 18px; color: var(--pink); font-family: var(--display); font-weight: 800; font-size: 1.45rem; line-height: 1; }
.admin-brand:hover { color: var(--pink-d); }
.admin-brand small { display: block; font-family: var(--font); color: var(--ink); font-size: .8rem; font-weight: 700; margin-top: 4px; }
.admin-brand img { width: 52px; }
.admin-menu { list-style: none; margin: 0; padding: 4px 14px; display: grid; gap: 3px; }
.admin-menu a { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 12px; color: var(--ink); font-weight: 600; transition: background .2s, color .2s; }
.admin-menu a .icon { color: #d6246e; stroke-width: 2; }
.admin-menu a:focus-visible { outline: 3px solid #ffb3cc; outline-offset: 1px; }
.admin-menu a:hover { background: var(--pink-l); color: var(--pink-d); }
.admin-menu a:hover .icon { color: var(--pink-d); }
.admin-menu a.is-active { background: linear-gradient(135deg, #ff5c8d, #d6246e); color: #fff; box-shadow: 0 8px 18px rgba(214, 36, 110, .28); }
.admin-menu a.is-active .icon { color: #fff; }
.admin-menu__sep { height: 1px; background: var(--line); margin: 8px 12px; }
.admin-badge { margin-left: auto; font-style: normal; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 800; padding: 0 7px; border-radius: 99px; line-height: 19px; }
.admin-menu a.is-active .admin-badge { background: #fff; color: var(--pink); }
.admin-sidebar__art { margin-top: auto; padding: 20px 22px 26px; text-align: center; }
.admin-sidebar__art img { width: 100%; max-width: 190px; margin: 0 auto 6px; opacity: .95; }
.admin-sidebar__art p { margin: 0; font-family: "Segoe Print", "Bradley Hand", cursive; color: var(--soft); font-size: .95rem; line-height: 1.4; }

.admin-main { min-width: 0; }
.admin-topbar { display: flex; align-items: center; gap: 16px; padding: 14px 28px; background: rgba(255, 252, 251, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.admin-search { position: relative; flex: 1; max-width: 400px; display: flex; align-items: center; }
.admin-search .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.admin-search input { width: 100%; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 0 14px 0 42px; }
.admin-search input:focus { outline: none; border-color: #f6b9c4; box-shadow: 0 0 0 4px var(--pink-l); }
.admin-topbar__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.maintenance-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-l); color: var(--warn); font-weight: 800; font-size: .82rem; padding: 8px 14px; border-radius: 99px; white-space: nowrap; }
.maintenance-pill:hover { color: var(--warn); filter: brightness(.97); }
.maintenance-pill .icon { width: 18px; height: 18px; }

.dropdown { position: relative; }
.dropdown summary { list-style: none; cursor: pointer; }
.dropdown summary::-webkit-details-marker { display: none; }
.icon-button { position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.icon-button:hover { background: var(--pink-l); }
.dot-badge { position: absolute; top: 4px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--pink); color: #fff; font-style: normal; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center; border: 2px solid #fff; box-sizing: content-box; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 99px; font-weight: 700; }
.user-chip:hover { background: var(--pink-l); }
.user-chip__avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #f7889a, var(--pink)); color: #fff; display: grid; place-items: center; }
.user-chip .icon:last-child { width: 16px; height: 16px; color: var(--muted); }
.dropdown__panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 40; display: grid; gap: 2px; }
.dropdown__title { margin: 4px 10px 8px; font-weight: 800; display: grid; }
.dropdown__title small { font-weight: 600; color: var(--muted); font-size: .8rem; }
.dropdown__panel a, .dropdown__panel button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .9rem; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.dropdown__panel a:hover, .dropdown__panel button:hover { background: var(--pink-l); color: var(--pink-d); }
.dropdown__panel form { margin: 0; border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.dropdown__panel .icon { width: 18px; height: 18px; color: var(--soft); }

.admin-menu-toggle { display: grid; place-items: center; background: none; border: 0; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; color: var(--ink); }
.admin-menu-toggle:hover { background: var(--pink-l); }
.admin-content { padding: 26px 30px 50px; max-width: 1480px; }

.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head__icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--pink); }
.page-head__icon .icon { width: 40px; height: 40px; }
.page-head__text { flex: 1; min-width: 220px; }
.page-head__text p { margin: 2px 0 0; color: var(--soft); }
.admin-title { font-size: 1.75rem; margin: 0; color: var(--ink); }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Paneller ---------- */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel__head h2, .panel__title { font-size: 1.12rem; margin: 0 0 14px; }
.panel__head h2 { margin: 0; }
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.admin-grid-2--wide-left { grid-template-columns: 1.4fr 1fr; }
.stack > .panel:last-child { margin-bottom: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .muted { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters input, .filters select { height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; }

/* ---------- İstatistik kartları ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 6px 0 22px; }
.stat-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); transition: transform .2s; }
.stat-card:hover { transform: translateY(-3px); color: var(--ink); }
.stat-card__icon { grid-row: span 2; width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); }
.stat-card__value { font-family: var(--display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card__label { color: var(--muted); font-size: .85rem; font-weight: 700; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fcfbfe; }
.table .num { text-align: right; }
.table a.strong { font-weight: 800; color: var(--ink); }
.table a.strong:hover { color: var(--pink); }
.actions-col { text-align: right !important; }
.actions { display: flex; justify-content: flex-end; gap: 4px; white-space: nowrap; }
td.actions { display: table-cell; text-align: right; vertical-align: middle; }
td.actions > * + * { margin-left: 4px; }
td.actions .inline-form { display: inline-block; vertical-align: middle; }
td.actions > .icon-action { vertical-align: middle; }
.inline-form { display: inline; margin: 0; }
/* İşlem ikonları: her işlemin sabit rengi (düzenle mavi, görüntüle teal, yayımla yeşil, sil kırmızı) */
.icon-action { --ia: #4f5877; --ia-l: #f0eef4; width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: var(--ia-l); color: var(--ia); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; }
.icon-action:hover { background: var(--ia); color: #fff; }
.icon-action:active { transform: scale(.94); }
.icon-action:focus-visible { outline: 3px solid color-mix(in srgb, var(--ia) 45%, transparent); outline-offset: 2px; }
.icon-action .icon { width: 18px; height: 18px; stroke-width: 2; }
.icon-action--edit    { --ia: #1d6fd8; --ia-l: #e6f0ff; }
.icon-action--view    { --ia: #0b7d72; --ia-l: #dcf6f1; }
.icon-action--publish { --ia: #15803d; --ia-l: #e2f6e9; }
.icon-action--ok      { --ia: #15803d; --ia-l: #e2f6e9; }
.icon-action--warn    { --ia: #b45309; --ia-l: #fff1dc; }
.icon-action--danger  { --ia: #d61f45; --ia-l: #ffe8ec; }
.icon-action--neutral { --ia: #4f5877; --ia-l: #f2eff5; }
.with-thumb { display: flex; align-items: center; gap: 10px; }
.with-thumb img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--blue-l); }
.cat-dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--tone-bg); color: var(--tone-fg); vertical-align: middle; }
.cat-art { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--tone-bg); flex-shrink: 0; }
.cat-art img { width: 30px; height: 30px; }
.cat-cell { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; margin-left: 6px; font-size: .7rem; font-weight: 800; padding: 1px 8px; border-radius: 99px; background: var(--warn-l); color: var(--warn); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status--published { background: var(--ok-l); color: var(--ok); }
.status--draft { background: #f0eef4; color: var(--soft); }

.simple-list { list-style: none; margin: 0; padding: 0; display: grid; }
.simple-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.simple-list li:last-child { border-bottom: 0; }
.simple-list span { color: var(--muted); white-space: nowrap; font-size: .82rem; }
.simple-list .is-unread a { font-weight: 800; }
ol.simple-list { counter-reset: n; }

/* ---------- Formlar ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: .86rem; margin-bottom: 6px; }
.field input:not([type=checkbox]):not([type=file]), .field select, .field textarea {
    width: 100%; border: 1px solid #e0dbe6; border-radius: 10px; padding: 10px 12px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.field [aria-invalid="true"] { border-color: var(--bad) !important; }
.field__error { color: var(--bad); font-size: .82rem; font-weight: 700; margin: 6px 0 0; }
.field--check { display: flex; align-items: center; gap: 8px; }
.field--check input { width: 18px; height: 18px; accent-color: var(--pink); margin: 0; }
.field--check label { margin: 0; font-weight: 700; }
.field--align { padding-top: 26px; }
.field input[type=file] { font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6; }
.counter { display: block; text-align: right; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.counter.is-over { color: var(--bad); }
.input-prefix { display: flex; border: 1px solid #e0dbe6; border-radius: 10px; overflow: hidden; }
.input-prefix span { padding: 10px 10px; background: var(--bg); color: var(--muted); font-size: .8rem; white-space: nowrap; max-width: 45%; overflow: hidden; text-overflow: ellipsis; align-self: stretch; display: flex; align-items: center; }
.input-prefix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }

.article-form { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.article-form__side { position: sticky; top: 84px; }
.cover-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg); margin-bottom: 12px; border: 1px solid var(--line); }
.cover-preview--hero { aspect-ratio: auto; max-height: 180px; object-fit: contain; }
.thumb-preview { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; margin-bottom: 8px; }

.editor-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; background: var(--bg); border: 1px solid #e0dbe6; border-bottom: 0; border-radius: 10px 10px 0 0; }
.editor-toolbar button { border: 1px solid transparent; background: #fff; border-radius: 7px; padding: 4px 10px; font-size: .82rem; font-weight: 700; cursor: pointer; }
.editor-toolbar button:hover { border-color: var(--line); color: var(--pink); }
.editor-toolbar button.is-active { background: var(--ink); color: #fff; }
.editor-toolbar + textarea { border-radius: 0 0 10px 10px !important; }
.editor-preview { border: 1px solid #e0dbe6; border-radius: 0 0 10px 10px; padding: 16px 20px; min-height: 300px; background: #fff; }
.editor-preview h2 { font-size: 1.4rem; margin-top: 1em; }
.editor-preview li::marker { color: var(--pink); }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 800; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, #ff5c8d, #d6246e); color: #fff; box-shadow: 0 6px 14px rgba(214, 36, 110, .25); }
.btn--primary:hover { color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--pink); color: var(--pink); }
.btn--danger { background: var(--bad-l); color: var(--bad); }
.btn--sm { height: 34px; padding: 0 12px; font-size: .82rem; }
.btn--block { width: 100%; margin-top: 8px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- Uyarılar ---------- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 700; font-size: .9rem; }
.alert--success { background: var(--ok-l); color: #1e7059; }
.alert--error { background: var(--bad-l); color: #a83333; }
.alert--info { background: var(--blue-l); color: #2c5f9e; }

/* ---------- Sayfalama ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.pagination__item { min-width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; font-weight: 800; color: var(--ink); background: #fff; }
.pagination__item.is-active { background: var(--pink); border-color: var(--pink); color: #fff; }

/* ---------- Medya ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px; border: 2px dashed #e0d2e2; border-radius: var(--radius); text-align: center; color: var(--soft); cursor: pointer; margin-bottom: 14px; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.is-drag { background: var(--pink-l); border-color: var(--pink); }
.dropzone .icon--xl { color: var(--pink); }
.dropzone input { margin-top: 8px; }
.media-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.media-item img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg); }
.media-item__info { padding: 8px 10px 0; display: grid; font-size: .82rem; }
.media-item__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-item__actions { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 10px; gap: 6px; }

/* ---------- Mesajlar ---------- */
.message-list { list-style: none; margin: 0; padding: 0; }
.message-list li a { display: grid; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.message-list li a span { color: var(--muted); font-size: .82rem; }
.message-list li a strong { font-weight: 600; }
.message-list li.is-unread a strong { font-weight: 800; }
.message-list li.is-unread a::before { content: ""; }
.message-list li.is-current a, .message-list li a:hover { background: var(--pink-l); }
.message-body { background: var(--bg); border-radius: 10px; padding: 16px; white-space: normal; line-height: 1.7; }

/* ---------- Giriş ---------- */
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 20% 20%, #ffe9ec, transparent 45%), radial-gradient(circle at 80% 80%, #e4efff, transparent 45%), #fbf8fb; }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px 30px; box-shadow: 0 20px 50px rgba(44, 49, 80, .12); text-align: center; }
.login-card__logo { margin: 0 auto 10px; width: 84px; }
.login-card h1 { font-size: 1.6rem; margin-bottom: 4px; }
.login-card form { text-align: left; margin-top: 18px; }
.login-card__back { display: inline-block; margin-top: 18px; font-size: .88rem; font-weight: 700; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-grid-2, .admin-grid-2--wide-left { grid-template-columns: 1fr; }
    .article-form { grid-template-columns: 1fr; }
    .article-form__side { position: static; }
}
@media (max-width: 860px) {
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-105%); transition: transform .25s; box-shadow: 0 10px 40px rgba(0, 0, 0, .15); }
    body.sidebar-open .admin-sidebar { transform: none; }
    body.sidebar-open::after { content: ""; position: fixed; inset: 0; background: rgba(44, 49, 80, .35); z-index: 50; }
    .admin-menu-toggle { display: grid; }
    .admin-topbar { padding: 12px 16px; }
    .admin-title { font-size: 1.2rem; }
    .admin-user { display: none; }
    .admin-content { padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .field--align { padding-top: 0; }

    /* Tablolar kart görünümüne geçer */
    .table thead { display: none; }
    .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
    .table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
    .table td { border: 0; padding: 6px 10px; text-align: left !important; }
    .table td[data-label]::before { content: attr(data-label); display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 800; }
    .actions { justify-content: flex-start; }
    .table td.actions { display: block; text-align: left !important; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 12px; grid-template-columns: 1fr; }
    .stat-card__icon { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
    .panel { padding: 16px; }
}

/* ==========================================================
   v2 — Site Ana Sayfası, ana sayfa düzenleyici, yorumlar, sayfalar
   ========================================================== */
body.admin { background: var(--bg); }
.panel { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow); }
.panel--warn { border-color: #f5cf8f; background: #fffaf0; }
.panel__title--icon { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; margin: 0; }
.panel > .panel__title--icon { margin-bottom: 16px; }
.panel__title--icon .icon { color: var(--pink); width: 22px; height: 22px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; color: var(--pink); font-weight: 800; font-size: .84rem; white-space: nowrap; }
.empty { color: var(--muted); padding: 14px 0; margin: 0; }
.ok-text { color: var(--ok); }
.warn-text { color: var(--warn); }

/* Butonlar */
.btn--outline { background: #fff; border: 1.5px solid #f3c3cd; color: var(--ink); }
.btn--outline:hover { border-color: var(--pink); color: var(--pink-d); }
.btn--outline .icon { color: var(--pink); }
.btn--ok { background: var(--ok-l); color: var(--ok); }
.btn--ok:hover { color: var(--ok); filter: brightness(.97); }
.btn--primary .icon { color: #fff; }

/* İstatistik kartları */
.stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0 0 22px; }
.stat-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 18px; background: linear-gradient(135deg, #fff 0%, #fff 55%, var(--tone-bg) 220%); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); grid-template-columns: none; }
.stat-card__icon { width: 58px; height: 58px; border-radius: 16px; background: var(--tone-bg); color: var(--tone-fg); display: grid; place-items: center; flex-shrink: 0; grid-row: auto; }
.stat-card__icon .icon { width: 28px; height: 28px; }
.stat-card__body { display: grid; flex: 1; min-width: 0; }
.stat-card__value { font-family: var(--display); font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-card__label { color: var(--soft); font-size: .92rem; font-weight: 600; margin-top: 4px; }
.stat-card__go { width: 28px; height: 28px; border-radius: 50%; background: var(--tone-bg); color: var(--tone-fg); display: grid; place-items: center; transform: rotate(-90deg); }
.stat-card__go .icon { width: 16px; height: 16px; }

/* Izgara */
.site-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.site-grid__main, .site-grid__side { display: grid; gap: 20px; min-width: 0; }
.site-grid .panel { margin-bottom: 0; }
.site-grid .admin-grid-2 { gap: 20px; }

/* Önizleme */
.preview__tools { display: flex; align-items: center; gap: 6px; }
.segmented { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.segmented button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: var(--soft); cursor: pointer; }
.segmented button.is-active { background: #fff; color: var(--pink-d); box-shadow: 0 2px 8px rgba(31, 42, 77, .08); }
.preview__frame { position: relative; height: 520px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, #fdf6f4, #fdf6f4 12px, #fbf0ee 12px, #fbf0ee 24px); }
.preview__frame iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: 0 0; background: #fff; }
.preview__frame[data-device="mobile"] iframe { left: 50%; width: 390px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.preview .hint { margin-top: 10px; }

.section-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: sec; }
.section-chips li { counter-increment: sec; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--pink-xl); border: 1px solid var(--line); font-weight: 700; font-size: .88rem; }
.section-chips li::before { content: counter(sec); width: 22px; height: 22px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font-size: .72rem; }
.section-chips small { color: var(--ok); font-weight: 700; }
.section-chips .is-off { opacity: .55; }
.section-chips .is-off small { color: var(--muted); }

/* Hızlı işlemler */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px 6px; border-radius: 14px; background: var(--tone-bg); color: var(--tone-fg); text-align: center; font-size: .8rem; font-weight: 700; line-height: 1.25; transition: transform .2s, box-shadow .2s; }
.quick-action:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(31, 42, 77, .08); color: var(--tone-fg); }
.quick-action .icon { width: 28px; height: 28px; }
.quick-action span { color: var(--ink); }

/* Listeler */
.row-list { list-style: none; margin: 0; padding: 0; }
.row-list li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row-list li:last-child { border-bottom: 0; }
.row-list img { width: 52px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--bg); }
.row-list__title { color: var(--ink); font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-list__meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.row-list__views { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .8rem; min-width: 46px; justify-content: flex-end; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.rank-list li:last-child { border-bottom: 0; }
.rank-list__n { width: 28px; height: 28px; border-radius: 50%; background: var(--pink-l); color: var(--pink-d); font-weight: 800; display: grid; place-items: center; flex-shrink: 0; font-size: .82rem; }
.rank-list li:nth-child(2) .rank-list__n { background: var(--warn-l); color: var(--warn); }
.rank-list li:nth-child(3) .rank-list__n { background: var(--blue-l); color: var(--blue); }
.rank-list a { flex: 1; color: var(--ink); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-list__v { color: var(--muted); font-size: .82rem; }
.status-list { list-style: none; margin: 0 0 16px; padding: 0; }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.status-list li .icon { color: var(--soft); }
.status-list li span { flex: 1; color: var(--soft); }
.status-list strong { font-weight: 700; text-align: right; }
.state-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; padding: 5px 10px; border-radius: 99px; }
.state-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.state-pill--ok { background: var(--ok-l); color: var(--ok); }
.state-pill--warn { background: var(--warn-l); color: var(--warn); }

/* Ana sayfa düzenleyici */
.tabs { position: sticky; top: 72px; z-index: 15; display: flex; gap: 6px; overflow-x: auto; padding: 8px; margin-bottom: 18px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 14px; scrollbar-width: none; }
.tabs a { white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--soft); }
.tabs a:hover, .tabs a.is-active { background: var(--pink-l); color: var(--pink-d); }
.home-editor .panel { scroll-margin-top: 140px; }
.editor-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.image-field { background: var(--cream); border: 1px dashed #f0d4d9; border-radius: 14px; padding: 14px; }
.cover-preview--contain { object-fit: contain; background: #fff; aspect-ratio: 16 / 10; }
.form-row--3 { grid-template-columns: repeat(3, 1fr); }
.order-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.order-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: background .2s; }
.order-item:hover { background: var(--pink-xl); }
.order-item .switch { flex: 1; }
.order-item__text { display: grid; }
.order-item__text small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.order-item__btns { display: flex; gap: 2px; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track { width: 42px; height: 24px; border-radius: 99px; background: #e4dde3; position: relative; flex-shrink: 0; transition: background .2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.switch input:checked + .switch__track { background: var(--pink); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(240, 96, 122, .35); outline-offset: 2px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.check-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; font-size: .9rem; }
.check-card:has(input:checked) { border-color: #f3b3c0; background: var(--pink-xl); }
.check-card input { width: 18px; height: 18px; accent-color: var(--pink); }
.check-card.is-muted { opacity: .6; }
.serp { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; max-width: 640px; }
.serp__url { color: #1a7f37; font-size: .8rem; }
.serp__title { color: #1a0dab; font-size: 1.1rem; font-family: Arial, sans-serif; }
.serp__desc { color: #4d5156; font-size: .85rem; font-family: Arial, sans-serif; }
.save-bar { position: sticky; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 18px; margin: 10px -4px 0; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 -6px 20px rgba(31, 42, 77, .06); }
.save-bar .hint { margin: 0 auto 0 0; }

/* Yorumlar */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs a { padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: .86rem; color: var(--soft); background: #fff; border: 1px solid var(--line); }
.filter-tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-tabs em { font-style: normal; opacity: .7; margin-left: 4px; }
.bulk-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.bulk-bar label { display: flex; align-items: center; gap: 8px; margin-right: auto; font-weight: 700; font-size: .88rem; }
.comment-admin-list { list-style: none; margin: 0; padding: 0; }
.comment-admin { display: flex; gap: 12px; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.comment-admin.is-pending { background: linear-gradient(90deg, var(--warn-l), transparent 40%); }
.comment-admin > input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--pink); }
.comment-admin__body { flex: 1; min-width: 0; }
.comment-admin__meta { margin: 0 0 6px; font-size: .84rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.comment-admin__meta strong { color: var(--ink); }
.comment-admin__text { margin: 0 0 6px; white-space: normal; }
.comment-admin__article { margin: 0; font-size: .82rem; color: var(--muted); }
.comment-admin__actions { display: flex; gap: 2px; align-items: flex-start; }
.status--pending { background: var(--warn-l); color: var(--warn); }
.status--approved { background: var(--ok-l); color: var(--ok); }
.status--spam { background: var(--bad-l); color: var(--bad); }

/* Kenar menü daraltma (masaüstü) */
body.sidebar-collapsed .admin-shell { grid-template-columns: 0 1fr; }
body.sidebar-collapsed .admin-sidebar { visibility: hidden; }

@media (max-width: 1280px) {
    .site-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .site-grid { grid-template-columns: 1fr; }
    .editor-cols { grid-template-columns: 1fr; }
    .preview__frame { height: 440px; }
}
@media (max-width: 860px) {
    .admin-topbar { gap: 8px; padding: 10px 12px; }
    .admin-search { max-width: none; }
    .user-chip__name, .user-chip > .icon:last-child, .maintenance-pill span { display: none; }
    .maintenance-pill { padding: 8px; }
    .admin-title { font-size: 1.4rem; }
    .page-head__icon { display: none; }
    .page-head__actions { width: 100%; }
    .page-head__actions .btn { flex: 1; }
    .form-row--3 { grid-template-columns: 1fr; }
    .row-list li { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .row-list__meta, .row-list__views { display: none; }
    .tabs { top: 64px; }
    .save-bar { flex-wrap: wrap; }
    .save-bar .hint { flex-basis: 100%; }
    .save-bar .btn { flex: 1; }
    .preview__frame { height: 420px; }
    body.sidebar-collapsed .admin-shell { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .stat-card { padding: 14px; gap: 10px; }
    .stat-card__icon { width: 44px; height: 44px; }
    .stat-card__value { font-size: 1.5rem; }
    .stat-card__label { font-size: .8rem; }
    .stat-card__go { display: none; }
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-search { display: none; }
    .segmented span { display: none; }
}
.admin-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-brand > span { min-width: 0; }
.admin-brand { font-size: 1.3rem; }
@media (max-width: 1100px) { .admin-grid-2, .admin-grid-2--wide-left { grid-template-columns: minmax(0, 1fr); } }
.row-list li { grid-template-columns: 52px minmax(0, 1fr) auto auto; }
.row-list__main { display: grid; min-width: 0; }
.row-list__meta { font-size: .78rem; }
button.icon-button { border: 0; background: none; cursor: pointer; }
@media (max-width: 860px) { .row-list li { grid-template-columns: 44px minmax(0, 1fr) auto; } .row-list__meta { display: block; } }
.cover-preview--contain { max-height: 220px; width: 100%; }
.slide-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--pink-xl); }
.slide-box summary { cursor: pointer; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .95rem; }
.slide-box summary small { color: var(--muted); }
.slide-box[open] summary { margin-bottom: 12px; }
.cover-preview--empty { display: grid; place-items: center; color: var(--muted); font-weight: 700; border: 1px dashed #e8cfd5; }
.order-item img { width: 34px; height: 34px; }
.perf-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.perf-bars li { display: grid; grid-template-columns: 130px 1fr 60px; align-items: center; gap: 10px; font-size: .86rem; }
.perf-bars span:first-child { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perf-bars__track { height: 10px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.perf-bars__fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f7889a, var(--pink)); }
.perf-bars li > span:last-child { text-align: right; color: var(--muted); }
.perf-total { display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.perf-total div { display: grid; }
.perf-total strong { font-family: var(--display); font-size: 1.5rem; line-height: 1; }
.perf-total span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.status--scheduled { background: var(--blue-l); color: var(--blue); }
.block-area-title { font-size: 1rem; margin: 18px 0 8px; color: var(--ink); }
.block-row { align-items: flex-start; }
.block-row .switch { padding-top: 22px; flex: 0 0 auto; }
.block-row__fields { flex: 1; display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(140px, 1fr) 80px 110px minmax(140px, 1fr); gap: 8px; min-width: 0; }
.block-row__fields label { display: grid; gap: 3px; font-size: .74rem; font-weight: 800; color: var(--muted); margin: 0; }
.block-row__fields label[hidden] { display: none; }
.block-row__fields select, .block-row__fields input { height: 38px; border: 1px solid #e0dbe6; border-radius: 10px; padding: 0 10px; background: #fff; font-size: .88rem; color: var(--ink); font-weight: 600; min-width: 0; }
.block-row.is-empty { background: transparent; border-style: dashed; }
.block-row.is-empty .block-row__fields > label:not(:first-child), .block-row.is-empty .switch, .block-row.is-empty .order-item__btns { visibility: hidden; }
.block-row .order-item__btns { padding-top: 20px; }
.chips-label { margin: 10px 0 6px; font-weight: 800; font-size: .82rem; color: var(--muted); }
@media (max-width: 1100px) { .block-row__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .block-row__fields { grid-template-columns: minmax(0, 1fr); } .block-row { flex-wrap: wrap; } }
.block-row__fields { display: flex; flex-wrap: wrap; gap: 8px; }
.block-row__fields > label { flex: 1 1 150px; }
.block-row__fields > label:first-child { flex: 1.4 1 220px; }
.block-row__fields > label[data-opt="count"] { flex: 0 0 80px; }
.block-row__fields > label[data-opt="slot"] { flex: 0 0 120px; }
.admin-brand { flex-direction: column; align-items: flex-start; gap: 4px; }
.admin-logo { display: block; width: 100%; max-width: 210px; height: auto; }
.admin-brand > small { font-family: var(--font); color: var(--soft); font-size: .78rem; font-weight: 700; }
.login-card__logo { display: block; width: 100%; max-width: 280px; height: auto; margin: 0 auto 10px; }
.login-card picture { display: block; }
.logo-field__preview { background: #fff; border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 12px; display: inline-block; }
.admin-brand picture { display: block; width: 100%; }
.admin-logo { width: 100%; max-width: 220px; }
.site-grid__main, .site-grid__side { grid-template-columns: minmax(0, 1fr); }
.site-grid__main > *, .site-grid__side > * { min-width: 0; }
.admin-brand img.admin-logo, .logo-field__preview img.admin-logo { width: 100%; max-width: 220px; height: auto; }

