/* ==========================================================================
   CherryVelvet — tasarım sistemi
   Renkler, yazı tipleri ve ölçüler bu bölümdeki değişkenlerden değiştirilir.
   ========================================================================== */

:root {
  /* Marka paleti: bordo, toz pembe, ekru */
  --bordo-deep: #4a0f1c;
  --bordo: #6e1a2b;
  --bordo-soft: #8e2a3f;
  --rose-deep: #c98c8c;
  --rose: #e4b7b5;
  --rose-soft: #f1d8d4;
  --ecru-deep: #eadfcc;
  --ecru: #f4ecdf;
  --paper: #fbf6ee;

  /* Açık tema (ekru zemin) */
  --bg: var(--ecru);
  --surface: var(--paper);
  --surface-2: var(--ecru-deep);
  --text: #2a1016;
  --muted: #7b5a5e;
  --border: #e0cfbe;
  --accent: var(--bordo);
  --accent-hover: var(--bordo-deep);
  --accent-text: var(--paper);
  --highlight: var(--rose);
  --highlight-soft: var(--rose-soft);
  --danger: #a3172d;
  --menu-bg: var(--bordo);
  --menu-text: var(--ecru);
  --menu-accent: var(--rose);
  --cherry-fruit: #7a1c2e;
  --cherry-stem: var(--bordo-deep);
  --cherry-leaf: var(--rose-deep);
  --cherry-shine: var(--ecru);
  --shadow: 0 1px 2px rgb(74 15 28 / .06), 0 12px 32px -12px rgb(74 15 28 / .18);
  --grain-opacity: .07;

  /* Yazı tipleri */
  --font-display: "Fraunces Variable", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans Variable", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ölçüler */
  --wrap: 1180px;
  --reading: 720px;
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: 20px;

  color-scheme: light;
}

/* Karanlık tema ("kadife gece") — sitenin VARSAYILAN teması (header.ejs: <html data-theme="dark">).
   Üst banttaki ay/güneş düğmesiyle açık (ekru) temaya geçilir (public/theme.js, app.js).
   Cihazın karanlık mod ayarı dikkate alınmaz; herkes siteyi aynı açar. */
:root[data-theme="dark"] {
  --bg: #1a0b10;
  --surface: #241117;
  --surface-2: #2e161e;
  --text: #f1e6d8;
  --muted: #bfa3a2;
  --border: #3d1f28;
  --accent: var(--rose);
  --accent-hover: #f3cdcb;
  --accent-text: #2a1016;
  --highlight: var(--bordo-soft);
  --highlight-soft: #3a1620;
  --danger: #ff8f8f;
  --menu-bg: #2a0f17;
  --cherry-fruit: #b8324a;
  --cherry-stem: #d9b9a6;
  --cherry-leaf: var(--rose);
  --cherry-shine: #f1e6d8;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px -16px rgb(0 0 0 / .6);
  --grain-opacity: .09;
  color-scheme: dark;
}

/* Tema değişirken renkler yumuşak geçsin (sadece düğmeye basıldığında, sayfa açılışında değil) */
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, stroke .35s ease !important;
}

/* Ay / güneş düğmesi: karanlık temada ay, ekru temada güneş görünür */
.theme-toggle {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--accent);
  cursor: pointer; transition: border-color .2s, transform .2s;
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(-12deg); }
.theme-toggle svg {
  grid-area: 1 / 1; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
.theme-toggle .icon-moon, :root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 1; transform: none; }
html:not(.js) .theme-toggle { display: none; } /* JavaScript kapalıysa işe yaramayacağı için gizli */

/* ---------- Temel ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column;
}
/* Kadife dokusu: zeminde çok hafif bir grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--highlight); color: var(--text); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
code { font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.reading { max-width: var(--reading); margin-left: auto; margin-right: auto; }
.site-main { flex: 1; padding-top: 24px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.eyebrow {
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 .75em;
}
.eyebrow a { color: inherit; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 14px; border-radius: 999px; }
.skip-link:focus { left: 8px; }
.section-heading { font-size: 1.6rem; margin: 48px 0 20px; }
.badge {
  display: inline-block; background: var(--highlight-soft); color: var(--accent);
  border-radius: 999px; padding: 1px 10px; font-size: .75rem; font-weight: 600; letter-spacing: .02em; vertical-align: middle;
}

/* ---------- Vişne logosu ---------- */

.cherry { width: 34px; height: 34px; flex: none; }
.cherry-fruit { fill: var(--cherry-fruit); }
.cherry-stem { stroke: var(--cherry-stem); }
.cherry-leaf { fill: var(--cherry-leaf); }
.cherry-shine { fill: var(--cherry-shine); opacity: .75; }

.brand-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -.02em; color: var(--text); margin: 0; }
.brand-name em { font-style: italic; font-weight: 400; color: var(--accent); }

/* ---------- Üst bant ve açılır menü ---------- */

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--border); }
/* Bulanık zemin ayrı bir katmanda: backdrop-filter doğrudan başlığa verilirse içindeki
   position:fixed menü paneli ekranı değil başlığı referans alır ve 68px'e sıkışır. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand:hover .cherry { transform: rotate(-8deg); }
.brand .cherry { transition: transform .3s ease; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-link { font-weight: 500; color: var(--text); }

.site-menu > summary { list-style: none; }
.site-menu > summary::-webkit-details-marker { display: none; }
.menu-button {
  position: relative; z-index: 60; display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px 8px 14px;
  font-weight: 600; font-size: .9rem; letter-spacing: .04em; color: var(--text); background: var(--surface);
  transition: background .2s, color .2s, border-color .2s; user-select: none;
}
.menu-button:hover { border-color: var(--accent); }
.menu-icon { display: grid; gap: 5px; width: 18px; }
.menu-icon i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .25s ease; }
.menu-label .when-open { display: none; }
.site-menu[open] .menu-label .when-open { display: inline; }
.site-menu[open] .menu-label .when-closed { display: none; }
.site-menu[open] .menu-button { background: transparent; color: var(--menu-text); border-color: color-mix(in srgb, var(--menu-text) 40%, transparent); }
.site-menu[open] .menu-icon i:first-child { transform: translateY(3.25px) rotate(45deg); }
.site-menu[open] .menu-icon i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.menu-backdrop { position: fixed; inset: 0; z-index: 40; background: rgb(26 11 16 / .5); animation: fade-in .25s ease; }
.menu-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(560px, 100%);
  background: var(--menu-bg); color: var(--menu-text);
  padding: 96px 48px 40px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  overflow-y: auto; animation: slide-in .35s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -24px 0 60px rgb(26 11 16 / .35);
}
/* Menü paneline de kadife dokusu */
.menu-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(120% 60% at 100% 0%, rgb(228 183 181 / .22), transparent 60%),
              radial-gradient(90% 60% at 0% 100%, rgb(0 0 0 / .25), transparent 70%);
}
.menu-list { list-style: none; margin: 0; padding: 0; position: relative; }
.menu-list li { border-bottom: 1px solid color-mix(in srgb, var(--menu-text) 14%, transparent); }
.menu-list a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0; color: var(--menu-text); transition: transform .25s ease, color .2s; }
.menu-list a:hover { transform: translateX(8px); color: var(--menu-accent); }
.menu-list a:hover .menu-text, .menu-list a.is-active .menu-text { font-style: italic; }
.menu-list a.is-active { color: var(--menu-accent); }
.menu-num { font-size: .78rem; font-weight: 600; letter-spacing: .12em; color: var(--menu-accent); min-width: 2ch; }
.menu-text { font-family: var(--font-display); font-size: clamp(1.6rem, 4.2vw, 2.35rem); font-weight: 400; line-height: 1.15; }
.menu-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.menu-tagline { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; margin: 0; max-width: 24ch; opacity: .85; }
.menu-account { display: flex; gap: 16px; align-items: center; }
.menu-account a, .menu-account button.link { color: var(--menu-accent); font-weight: 600; }

@keyframes slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ana sayfa ---------- */

.hero { padding: 40px 0 28px; }
.hero-title { font-size: clamp(2.1rem, 5.4vw, 3.9rem); font-weight: 400; line-height: 1.06; max-width: 18ch; margin-bottom: 28px; }
.search { display: flex; gap: 8px; max-width: 460px; }
.search input { border-radius: 999px; padding-left: 18px; }
.search button { border-radius: 999px; }
.results-note { margin: 0 0 20px; }

.author-strip { display: flex; align-items: center; gap: 16px; margin: 8px 0 36px; }
.strip-label { font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.author-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px; scrollbar-width: none; }
.author-chips::-webkit-scrollbar { display: none; }
.author-chip {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 500; font-size: .92rem;
  transition: border-color .2s, transform .2s;
}
.author-chip:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.chip-count { background: var(--highlight-soft); color: var(--accent); border-radius: 999px; padding: 0 8px; font-size: .75rem; font-weight: 600; }

/* Öne çıkan (en son) yazı */
.featured {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--surface);
  border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); overflow: hidden; box-shadow: var(--shadow);
}
.featured-media { display: block; min-height: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.featured-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.featured-media .velvet-placeholder .cherry { width: 96px; height: 96px; }
.featured:hover .featured-media img { transform: scale(1.03); }
.featured-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; }
.featured-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.1; }
.featured-title a { color: var(--text); }
.featured-title a:hover { color: var(--accent); }
.featured-excerpt { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }

/* Resmi olmayan yazılar için kadife dolgu */
.velvet-placeholder {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .09) 45%, transparent 60%),
    radial-gradient(120% 90% at 15% 10%, var(--bordo-soft), var(--bordo) 45%, var(--bordo-deep));
}
.velvet-placeholder .cherry { width: 56px; height: 56px; opacity: .9; }
.velvet-placeholder .cherry-fruit { fill: var(--rose); }
.velvet-placeholder .cherry-stem { stroke: var(--ecru); }
.velvet-placeholder .cherry-leaf { fill: var(--rose-soft); }
.velvet-placeholder .cherry-shine { fill: var(--paper); }

/* Yazı kartları */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 28px; }
.card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { font-size: 1.35rem; margin: 0; line-height: 1.2; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { margin: 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .byline { margin-top: auto; padding-top: 8px; font-size: .88rem; }

.byline { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; }
.byline a { color: var(--text); font-weight: 600; }
.byline a:hover { color: var(--accent); }
.read-more { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.read-more span { transition: transform .2s; }
.read-more:hover span { transform: translateX(4px); }

.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; font-weight: 600; }
.empty-state { text-align: center; padding: 64px 16px; color: var(--muted); }
.empty-state .cherry { width: 72px; height: 72px; opacity: .8; }

/* ---------- Profil fotoğrafı ---------- */

.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden;
  background: var(--highlight-soft); color: var(--accent); font-family: var(--font-display); font-weight: 600;
  box-shadow: 0 0 0 2px var(--surface);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 28px; height: 28px; font-size: .72rem; }
.avatar-md { width: 44px; height: 44px; font-size: 1rem; }
.avatar-lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar-xl { width: 120px; height: 120px; font-size: 2.4rem; }

/* ---------- Yazı ve bölüm sayfaları ---------- */

.post-head, .page-head { padding: 32px 0 8px; }
.post-title { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 450; line-height: 1.06; }
.post-dek { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--muted); margin: 0 0 28px; line-height: 1.45; }
.post-head .byline { margin: 0; }
.edit-link { margin-left: auto; }
.post-cover { max-width: 1100px; margin: 36px auto 8px; }
.post-cover img { display: block; width: 100%; max-height: 680px; object-fit: cover; border-radius: calc(var(--radius) + 4px); }

.content { font-size: 1.12rem; line-height: 1.8; margin-top: 32px; overflow-wrap: anywhere; }
.content > :first-child { margin-top: 0; }
.content h1, .content h2 { font-size: 1.9rem; margin-top: 1.8em; }
.content h3 { font-size: 1.45rem; margin-top: 1.6em; }
.content p { margin: 0 0 1.2em; }
.content a { text-decoration: underline; text-decoration-color: var(--highlight); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.content img { display: block; height: auto; border-radius: var(--radius-sm); margin: 32px auto; }
.content blockquote {
  margin: 2em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--highlight);
  font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--text);
}
.content hr { border: 0; text-align: center; margin: 2.5em 0; }
.content hr::after { content: "❦"; color: var(--highlight); font-size: 1.4rem; }
.content pre { background: var(--surface); border: 1px solid var(--border); padding: 14px; border-radius: var(--radius-sm); overflow-x: auto; font-size: .92rem; }
.content ul, .content ol { padding-left: 1.3em; }
.content li::marker { color: var(--accent); }
.content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 1rem; }
.content th { text-align: left; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.content th, .content td { padding: 12px 8px; border-bottom: 1px solid var(--border); }
.content td:last-child { font-family: var(--font-display); font-size: 1.1rem; }

.author-box {
  display: flex; gap: 20px; align-items: flex-start; margin-top: 56px; padding: 28px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.author-box .eyebrow { margin-bottom: 4px; }
.author-box-name { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 6px; }
.author-box-name a { color: var(--text); }
.author-box p { margin: 0 0 10px; }

.coming-soon {
  display: flex; gap: 18px; align-items: center; margin-top: 40px; padding: 20px 24px;
  background: var(--highlight-soft); border: 1px dashed var(--accent); border-radius: var(--radius);
}
.coming-soon .cherry { width: 48px; height: 48px; }
.coming-soon p { margin: 0; }
.coming-soon .eyebrow { margin-bottom: 2px; }

/* ---------- Yorumlar ---------- */

.comments { margin-top: 24px; }
.comment-list { list-style: none; margin: 0 0 32px; padding: 0; }
.comment { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.comment .avatar { margin-top: 2px; }
.comment-body { flex: 1; min-width: 0; }
.comment-meta { margin: 0 0 4px; font-size: .92rem; }
.comment-meta a { color: var(--text); }
.comment-text { margin: 0 0 6px; white-space: pre-line; overflow-wrap: anywhere; }
.comment-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.comment-form h3 { font-size: 1.3rem; margin: 0; }
.comment-form p { margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
button.small, .link.small { font-size: .85rem; }

/* ---------- Yazarlar ---------- */

.author-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.author-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px);
  padding: 32px 24px 26px; transition: transform .3s ease, box-shadow .3s ease;
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.author-card-link { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text); }
.author-card-link:hover { color: var(--accent); }
.author-card-name { font-size: 1.55rem; margin: 0; }
.author-card-count { margin: 0; font-size: .9rem; }
.author-card-bio { margin: 6px 0 0; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.author-card-latest { margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid var(--border); width: 100%; }
.author-card-latest .eyebrow { display: block; margin-bottom: 4px; color: var(--muted); }
.author-card-latest a { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.author-card-latest a:hover { color: var(--accent); }
.author-card .read-more { margin-top: auto; }

.profile-head { display: flex; gap: 32px; align-items: center; padding: 40px 0 48px; }
.profile-head .hero-title { margin-bottom: 12px; }
.profile-bio { font-size: 1.15rem; max-width: 60ch; margin: 0 0 12px; }
.profile-meta { margin: 0; }

/* ---------- Formlar ve butonlar ---------- */

.form { display: flex; flex-direction: column; gap: 16px; }
.form.narrow { max-width: 520px; }
.form h1 { font-size: 2.2rem; margin: 0; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.form label.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 400; }
.form label.check input { width: auto; accent-color: var(--accent); }
.label { font-weight: 500; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; margin: 0; }
legend { padding: 0 6px; font-weight: 500; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface); width: 100%;
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
textarea { resize: vertical; }
button { font: inherit; cursor: pointer; }
.btn, .search button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-text); border: 1px solid var(--accent);
  border-radius: 999px; padding: 10px 22px; font-weight: 600; letter-spacing: .01em;
  transition: background .2s, transform .15s;
}
.btn:hover, .search button:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 6px 14px; font-size: .85rem; }
button.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 500; }
button.link:hover { color: var(--accent-hover); text-decoration: underline; }
button.link.danger, .danger { color: var(--danger); }
form.inline { display: inline; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.flash {
  padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
}
.flash.error { border-left-color: var(--danger); background: var(--highlight-soft); }

/* ---------- Tek resimlik alanlar (kapak, profil fotoğrafı) ---------- */

.image-field { display: flex; flex-direction: column; gap: 6px; }
.image-drop {
  position: relative; border: 2px dashed var(--border); border-radius: var(--radius);
  background: var(--surface); min-height: 140px; display: grid; place-items: center; overflow: hidden;
  transition: border-color .15s, opacity .15s;
}
.image-drop.is-over { border-color: var(--accent); }
.image-drop.is-busy { opacity: .5; pointer-events: none; }
.image-drop img { display: none; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.image-drop.has-image { border-style: solid; }
.image-drop.has-image img { display: block; }
.image-drop.has-image .image-empty { display: none; }
.image-empty { color: var(--muted); padding: 24px; text-align: center; }
.image-actions { display: flex; justify-content: space-between; gap: 12px; min-height: 1.5em; }
.image-buttons { display: none; gap: 14px; }
.image-field:has(.has-image) .image-buttons { display: flex; }
.image-field-avatar .image-drop { width: 140px; height: 140px; min-height: 0; border-radius: 50%; }
.image-field-avatar .image-drop img { aspect-ratio: 1; height: 100%; }
.image-field-avatar .image-empty { padding: 12px; font-size: .85rem; }

/* ---------- Yazı düzenleyici (EasyMDE) — marka renklerine uydurulur ---------- */

.editor-field { display: flex; flex-direction: column; gap: 6px; }
#post-form .EasyMDEContainer .CodeMirror {
  background: var(--surface); color: var(--text); border-color: var(--border);
  font-family: var(--font-body); font-size: 1.06rem; line-height: 1.75;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
#post-form .EasyMDEContainer .CodeMirror-cursor { border-left-color: var(--text); }
#post-form .EasyMDEContainer .CodeMirror-selected,
#post-form .EasyMDEContainer .CodeMirror-focused .CodeMirror-selected { background: color-mix(in srgb, var(--highlight) 45%, transparent); }
#post-form .EasyMDEContainer .CodeMirror .cm-comment { background: color-mix(in srgb, var(--text) 8%, transparent); }
#post-form .EasyMDEContainer .CodeMirror .cm-header { font-family: var(--font-display); }
#post-form .EasyMDEContainer .CodeMirror-placeholder { color: var(--muted) !important; }
#post-form .editor-toolbar {
  background: var(--surface); border-color: var(--border); border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  opacity: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 6px;
}
#post-form .editor-toolbar::before, #post-form .editor-toolbar::after { display: none; }
#post-form .editor-toolbar button {
  width: auto; min-width: 30px; height: 32px; padding: 0 9px; border-radius: 8px;
  color: var(--text); font-size: .88rem; font-weight: 500; white-space: nowrap;
}
#post-form .editor-toolbar button[class*="heading"]::after { content: none; }
#post-form .editor-toolbar button.tb-bold { font-weight: 800; }
#post-form .editor-toolbar button.tb-italic { font-style: italic; font-family: var(--font-display); }
#post-form .editor-toolbar button:hover, #post-form .editor-toolbar button.active {
  background: var(--highlight-soft); color: var(--accent); border-color: transparent;
}
#post-form .editor-toolbar i.separator { border-left-color: var(--border); border-right: 0; height: 20px; margin: 0 4px; }
#post-form .editor-toolbar.disabled-for-preview button:not(.no-disable) { opacity: .35; }
#post-form .editor-toolbar.fullscreen, #post-form .CodeMirror-fullscreen, #post-form .editor-preview-side { background: var(--surface); }
#post-form .editor-preview, #post-form .editor-preview-side { background: var(--bg); color: var(--text); padding: 16px 24px; }
#post-form .editor-preview-side { border: 1px solid var(--border); border-left: 0; }
#post-form .editor-statusbar { color: var(--muted); display: flex; justify-content: space-between; gap: 12px; padding: 6px 2px; }
#post-form .editor-statusbar span { margin-left: 0; min-width: 0; }
.draft-notice { border-left-color: var(--highlight); }

/* ---------- Panel ---------- */

.panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.panel-head h1 { font-size: 2.2rem; margin: 0; }
.table { width: 100%; border-collapse: collapse; margin: 16px 0 32px; }
.table th { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.table th, .table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.row-actions { white-space: nowrap; display: flex; gap: 14px; }

/* ---------- Alt bant ---------- */

.site-footer { border-top: 1px solid var(--border); padding: 48px 0; background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 32px; align-items: start; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand .cherry { width: 44px; height: 44px; }
.footer-brand p { margin: 0; }
.footer-brand .muted { font-size: .92rem; max-width: 30ch; margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 6px; }
.footer-nav a { color: var(--text); font-weight: 500; }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { margin: 0; padding-top: 6px; color: var(--muted); font-size: .9rem; white-space: nowrap; }

/* ---------- Proje vitrini (ana sayfa) ---------- */

.project-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 32px 0 40px; }
.project-hero .hero-title { margin-bottom: 16px; }
.project-summary { font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.5; color: var(--muted); margin: 0 0 28px; max-width: 44ch; }
.project-hero-media { aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: calc(var(--radius) + 8px); overflow: hidden; box-shadow: var(--shadow); }
.project-hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.project-hero-media .velvet-placeholder .cherry { width: 120px; height: 120px; }
.project-stats { display: flex; flex-wrap: wrap; gap: 28px; margin: 0 0 28px; }
.project-stats div { border-left: 2px solid var(--highlight); padding-left: 14px; }
.project-stats dt { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.project-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.15; }
.project-team { display: flex; flex-direction: column; gap: 10px; }
.project-team-list { display: flex; flex-wrap: wrap; gap: 18px; }
.team-mini { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.team-mini:hover { color: var(--accent); }

/* Süreç şeridi: ekibin kullandığı aşamalar, ilk kullanıldıkları sırayla */
.stage-strip { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stage-steps { list-style: none; margin: 0; padding: 2px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.stage-steps::-webkit-scrollbar { display: none; }
.stage-steps li { display: flex; align-items: center; }
.stage-steps li + li::before { content: ""; width: 16px; height: 1px; background: var(--border); margin-right: 6px; }
.stage-steps a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 5px 12px 5px 5px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: .9rem; font-weight: 500;
}
.stage-steps a:hover { border-color: var(--accent); color: var(--text); }
.step-num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 700; }
.stage-steps .is-current a { border-color: var(--accent); }
.stage-steps .is-current .step-num { background: var(--accent); color: var(--accent-text); }
.stage-steps .is-selected a { background: var(--highlight-soft); color: var(--accent); }

/* Günlük bölümü: filtre değişirken liste hafifçe soluklaşır (app.js, aria-busy) */
.journal { scroll-margin-top: 84px; }
.journal[aria-busy="true"] .timeline, .journal[aria-busy="true"] .empty-state { opacity: .45; transition: opacity .15s; }

/* Günlük başlığı ve filtreler */
.journal-toolbar { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin: 40px 0 24px; }
.journal-toolbar .section-heading { margin: 0; font-size: 2rem; }
.journal-filters { display: flex; flex-wrap: wrap; gap: 12px; }
.filter-group {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
.filter-group::-webkit-scrollbar { display: none; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; color: var(--text); font-size: .88rem; font-weight: 500; white-space: nowrap; }
.filter-chip:hover { color: var(--accent); }
.filter-chip.is-active { background: var(--accent); color: var(--accent-text); }
.filter-chip .avatar { width: 22px; height: 22px; font-size: .6rem; box-shadow: none; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 117px; width: 2px; background: linear-gradient(var(--highlight), var(--border)); }
/* Her gün tek bir durak: solda gün işareti, sağda o günün kayıtları */
.day { position: relative; display: grid; grid-template-columns: 100px 1fr; gap: 40px; padding: 14px 0; }
.day::before { content: ""; position: absolute; left: 111px; top: 36px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); }
.day-marker { text-align: right; padding-top: 24px; }
.day-label { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; line-height: 1.1; color: var(--accent); }
.day-date { display: block; margin-top: 2px; font-size: .8rem; color: var(--muted); }
.day-entries { display: grid; gap: 16px; min-width: 0; }
/* Aynı gün iki (veya daha fazla) kayıt: yan yana, fotoğraf kartın üstünde */
.day-entries.is-multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.day-entries.is-multi .entry-card:has(.entry-media) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
.day-entries.is-multi .entry-media img { min-height: 0; aspect-ratio: 16 / 10; }
.day-entries.is-multi .entry-title { font-size: 1.25rem; }
.entry-card {
  display: grid; grid-template-columns: 1fr; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .3s ease, box-shadow .3s ease;
}
.entry-card:has(.entry-media) { grid-template-columns: 220px 1fr; }
.entry-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.entry-media { display: block; overflow: hidden; }
.entry-media img { display: block; width: 100%; height: 100%; min-height: 170px; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.entry-card:hover .entry-media img { transform: scale(1.04); }
.entry-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 16px; }
.entry-title { font-size: 1.4rem; margin: 0; }
.entry-title a { color: var(--text); }
.entry-title a:hover { color: var(--accent); }
.entry-excerpt { margin: 0; color: var(--muted); }
.entry-card .byline { margin: auto 0 0; padding-top: 6px; font-size: .88rem; }
.stage-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--highlight-soft);
  color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}

/* Yazı sonunda önceki / sonraki gün */
.day-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.day-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); transition: border-color .2s; }
.day-nav-link:hover { border-color: var(--accent); color: var(--text); }
.day-nav-link .eyebrow { margin: 0; }
.day-nav-link.next { grid-column: 2; text-align: right; }
.day-nav-title { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.3; }

/* Biz Kimiz: ekip kartları */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 820px; margin: 40px auto 0; }
.author-card-link-out { margin: 4px 0 0; }

/* Değerlendirici (hoca) yorumları */
.badge-reviewer { background: var(--accent); color: var(--accent-text); }
.comment.is-reviewer { padding-left: 12px; padding-right: 12px; border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--highlight-soft), transparent 75%); }
.reviewer-note { display: flex; align-items: center; gap: 8px; }

/* Panel: proje ayarları */
.settings-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 48px; align-items: start; }
.settings-card { position: sticky; top: 92px; padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.settings-card h2 { font-size: 1.4rem; }
.copy-field { display: flex; gap: 8px; margin: 16px 0 10px; }
.copy-field input { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.small-print { font-size: .85rem; }
.settings-sep { border: 0; border-top: 1px solid var(--border); margin: 24px 0 20px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ==========================================================================
   Önce / Sonra karşılaştırması
   ========================================================================== */

.compare-figure { margin: 0; }
.compare {
  --pos: 50%;
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow); user-select: none;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* "Sonra" fotoğrafı üstte; çizginin solunda kalan kısmı kırpılır → solda önce, sağda sonra */
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px;
  background: var(--paper); box-shadow: 0 0 0 1px rgb(0 0 0 / .15); pointer-events: none;
}
.compare-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--paper); color: var(--bordo); font-weight: 700; letter-spacing: 2px; box-shadow: var(--shadow);
}
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; touch-action: pan-y;
}
.compare:has(.compare-range:focus-visible) .compare-handle::after { outline: 3px solid var(--rose); outline-offset: 2px; }
.compare-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; background: rgb(26 11 16 / .72); color: var(--paper);
}
.compare .compare-tag { position: absolute; top: 12px; z-index: 1; pointer-events: none; }
.compare .compare-tag.is-before { left: 12px; }
.compare .compare-tag.is-after { right: 12px; background: var(--paper); color: var(--bordo); }
.compare .compare-tag.is-waiting { background: rgb(26 11 16 / .55); color: var(--paper); }
.compare-figure figcaption { margin-top: 10px; color: var(--muted); }
.compare-figure figcaption strong { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; }
.compare-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; margin-top: 40px; }
.compare-hint { margin-top: 24px; }
/* JavaScript kapalıyken kaydırıcı çalışmaz: iki fotoğraf yan yana */
html:not(.js) .compare:not(.is-pending) { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: 8 / 3; }
html:not(.js) .compare img { position: static; clip-path: none; }
html:not(.js) .compare-handle, html:not(.js) .compare-range { display: none; }

/* Panel: karşılaştırma listesi ve formu */
.comparison-thumbs { display: flex; gap: 4px; flex: none; }
.comparison-thumbs img, .thumb-empty { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; }
.thumb-empty { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); font-weight: 700; }
.compare-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ==========================================================================
   Baştan Sona (projenin tamamı tek sayfada)
   ========================================================================== */

/* Kişi renkleri: çizgi hem renkle hem desenle ayrılır (renk körlüğü ve siyah-beyaz baskı için) */
:root { --author-0: var(--bordo); --author-1: var(--rose-deep); --author-2: var(--muted); }
:root[data-theme="dark"] { --author-0: #c2405a; --author-1: var(--rose); }
.author-0 { --author: var(--author-0); --author-line: solid; }
.author-1 { --author: var(--author-1); --author-line: dashed; }
.author-2 { --author: var(--author-2); --author-line: dotted; }

.full-head { padding: 24px 0 8px; }
.full-head .project-stats { margin-top: 8px; }
.dd-small { font-size: 1.05rem !important; padding-top: .35em; }
.full-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 20px; padding: 0; }
.author-key { display: inline-flex; align-items: center; gap: 8px; padding-left: 12px; border-left: 4px var(--author-line) var(--author); font-weight: 600; }
.full-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.full-toc { margin: 16px 0 0; }
.full-toc summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.full-toc ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: .92rem; }
.full-toc a { color: var(--text); }

.full-day { padding: 40px 0 8px; border-bottom: 1px solid var(--border); scroll-margin-top: 80px; }
.full-day-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 24px; }
.full-day-head .day-label { font-size: 2rem; }
.full-day-head .day-date { font-family: var(--font-body); font-size: .95rem; font-weight: 400; color: var(--muted); }

.full-entry { margin: 0 0 32px; padding: 4px 0 4px 22px; border-left: 4px var(--author-line) var(--author); }
.full-author { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.full-author-name { font-weight: 700; color: var(--author); }
:root[data-theme="dark"] .author-0 .full-author-name { color: var(--text); }
.full-entry-title { font-size: 1.6rem; margin: 0 0 6px; }
.full-entry-title a { color: var(--text); }
.full-entry-dek { font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 1.1rem; margin: 0 0 12px; }
.full-entry-cover { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-sm); margin: 12px 0 0; }
.full-entry .content { margin-top: 16px; font-size: 1.05rem; }

.full-before { margin: 0 0 28px; }
.full-before .compare-tag { margin-bottom: 8px; background: var(--accent); color: var(--accent-text); }
.full-before img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); }
.full-before figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--muted); font-size: .92rem; }
.full-after { margin: 8px 0 32px; }
.full-after-label { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.full-after-label .compare-tag { background: var(--accent); color: var(--accent-text); }
.full-jump { font-size: .88rem; font-weight: 600; }

/* ---------- Yazdırma / PDF ----------
   Kâğıtta her zaman açık renkli; menüler, düğmeler ve dokular gizli; karşılaştırmalar iki fotoğraf yan yana. */
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --surface-2: #f3f0eb; --text: #1d1013; --muted: #5d4a4d; --border: #d9cfc6;
    --accent: #6e1a2b; --accent-text: #fff; --highlight: #c98c8c; --highlight-soft: #f5e6e3;
    --author-0: #6e1a2b; --author-1: #b07070; --author-2: #777; --grain-opacity: 0; color-scheme: light;
  }
  @page { margin: 16mm 14mm; }
  body { font-size: 11pt; }
  body::before, .site-header, .site-footer, .skip-link, .flash, .full-tools, .full-toc, .theme-toggle { display: none !important; }
  .site-main { padding: 0; }
  .wrap { max-width: none; padding: 0; }
  .reading { max-width: none; }
  a { color: inherit; text-decoration: none; }
  .post-title { font-size: 26pt; }
  .full-day { padding-top: 18pt; break-inside: avoid-page; }
  .full-day-head { break-after: avoid; }
  .full-entry, .full-before, .full-after, .compare-figure, img { break-inside: avoid; }
  .full-entry-title { font-size: 15pt; }
  .full-entry .content { font-size: 11pt; line-height: 1.55; }
  .full-entry-cover, .full-before img, .content img { max-height: 8cm; object-fit: contain; box-shadow: none; }
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 6pt; aspect-ratio: auto; box-shadow: none; background: none; overflow: visible; }
  .compare img { position: static; height: 6.5cm; clip-path: none; border-radius: 6pt; }
  .compare .compare-tag { position: static; grid-row: 2; justify-self: start; background: none !important; color: var(--text) !important; padding: 0; }
  .compare-handle, .compare-range { display: none; }
  .avatar { box-shadow: none; }
}

/* ==========================================================================
   Yönetim paneli
   ========================================================================== */

.panel-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; }
.panel-main { min-width: 0; }

/* Sol menü */
.panel-side {
  position: sticky; top: 88px; display: flex; flex-direction: column; gap: 14px;
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
.panel-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid var(--border); color: var(--text); }
.panel-user strong { display: block; line-height: 1.25; }
.panel-user .muted { font-size: .82rem; }
.panel-user:hover { color: var(--accent); }
.panel-cta { width: 100%; }
.panel-nav { display: flex; flex-direction: column; gap: 2px; }
.panel-nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500; transition: background .15s, color .15s;
}
.panel-nav a:hover { background: var(--highlight-soft); color: var(--accent); }
.panel-nav a.is-active { background: var(--highlight-soft); color: var(--accent); font-weight: 600; }
.panel-icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.panel-count {
  margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--accent); color: var(--accent-text); font-size: .74rem; font-weight: 700;
}
.panel-side-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); font-size: .88rem; }

/* Sayfa başlıkları */
.panel-page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.panel-page-head h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0; }
.panel-page-head .eyebrow { margin-bottom: 4px; }
.panel-page-head p.muted { margin: 6px 0 0; }
.panel-main .form h1 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }

/* Özet: bugün kartı */
.today-card {
  display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center; padding: 28px;
  border-radius: calc(var(--radius) + 4px); color: var(--ecru);
  background:
    linear-gradient(115deg, transparent 35%, rgb(255 255 255 / .07) 50%, transparent 65%),
    radial-gradient(120% 120% at 0% 0%, var(--bordo-soft), var(--bordo) 50%, var(--bordo-deep));
  box-shadow: var(--shadow);
}
.today-day { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-right: 28px; border-right: 1px solid rgb(244 236 223 / .2); }
.today-label { font-family: var(--font-display); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.today-date { margin-top: 6px; font-size: .85rem; opacity: .8; }
.today-body .eyebrow { color: var(--rose); display: flex; align-items: center; gap: 8px; }
.today-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 12px; color: var(--paper); }
.today-body .muted { color: rgb(244 236 223 / .75); margin: -4px 0 14px; }
.today-card .btn { background: var(--paper); color: var(--bordo); border-color: var(--paper); }
.today-card .btn:hover { background: var(--rose-soft); color: var(--bordo-deep); }
.today-card .btn.secondary { background: transparent; color: var(--ecru); border-color: rgb(244 236 223 / .35); }
.today-card .btn.secondary:hover { border-color: var(--ecru); color: var(--paper); }
.team-status { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgb(244 236 223 / .2); display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; }
.team-status li { display: flex; align-items: center; gap: 8px; opacity: .75; }
.team-status li.is-done { opacity: 1; }
.team-status .avatar { box-shadow: none; }

/* Özet: rakam kartları (sayı ana yazı renginde, etiket soluk) */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
.stat-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.stat-tile.is-link:hover { border-color: var(--accent); color: var(--text); }
.stat-value { font-family: var(--font-display); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .85rem; color: var(--muted); }

/* Özet: kartlar */
.panel-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel-stack { display: flex; flex-direction: column; gap: 20px; }
.panel-card { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.panel-card h2 { font-size: 1.3rem; margin: 0; }
.panel-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 10px 0; border-top: 1px solid var(--border); }
.mini-list li:first-child { border-top: 0; padding-top: 0; }
.mini-text { margin: 4px 0; overflow-wrap: anywhere; }
.mini-entry { display: flex; align-items: center; gap: 10px; }
.mini-list a strong { color: var(--text); }
.mini-list a:hover strong { color: var(--accent); }

/* Satır listeleri (Kayıtlar, Yorumlar, Sayfalar, Hesaplar) */
.row-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row { display: flex; align-items: center; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--border); }
.row:first-child { border-top: 0; }
.row:hover { background: color-mix(in srgb, var(--highlight-soft) 45%, transparent); }
.row-day { width: 92px; flex: none; display: flex; flex-direction: column; }
.row-day strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--accent); font-weight: 600; }
.row-day .muted { font-size: .78rem; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.row-title { font-family: var(--font-display); font-size: 1.15rem; color: var(--text); font-weight: 500; }
a.row-title:hover { color: var(--accent); }
.row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: .86rem; }
.row-meta .stage-tag { padding: 1px 8px; }
.row-target { font-size: .86rem; font-weight: 600; }
.row .row-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.status-pill { flex: none; padding: 2px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.status-pill.is-live { background: var(--highlight-soft); color: var(--accent); }
.status-pill.is-draft { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--border); }
.today-card .status-pill.is-draft { background: rgb(244 236 223 / .15); color: var(--ecru); border-color: rgb(244 236 223 / .35); }
.comment-row { align-items: flex-start; }
.comment-row .comment-text { margin: 2px 0 4px; }
.comment-row.is-new { box-shadow: inset 3px 0 0 var(--accent); }
.badge-new { background: var(--accent); color: var(--accent-text); }
.panel-empty { text-align: center; padding: 56px 16px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); }
.panel-empty .cherry { width: 64px; height: 64px; }
.panel-empty p { color: var(--muted); }

/* Hesaplar */
/* "Şifre belirle": form havada açılan bir kutu değil, satırın içinde açılır.
   (Liste köşeleri için overflow:hidden kullandığından, dışarı taşan bir kutu kesilip alttaki kartın arkasında kalıyordu.) */
.account-row { flex-wrap: wrap; }
.inline-details > summary { list-style: none; cursor: pointer; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] > summary { background: var(--highlight-soft); border-color: var(--accent); color: var(--accent); }
.account-row:has(.inline-details[open]) .row-actions { flex-basis: 100%; justify-content: flex-end; flex-wrap: wrap; }
.inline-details[open] { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; flex: 1; }
.inline-form { display: flex; gap: 6px; width: min(340px, 100%); }
.inline-form input { padding: 6px 12px; }
.add-account { margin-top: 24px; }
.add-account h2 { margin-bottom: 14px; }

/* ---------- Dar ekranlar ---------- */

@media (max-width: 860px) {
  .featured { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
  .project-hero { grid-template-columns: 1fr; padding-top: 16px; }
  .project-hero-media { order: -1; aspect-ratio: 16 / 10; }
  .settings-layout { grid-template-columns: 1fr; gap: 32px; }
  .settings-card { position: static; }
  /* Panel: sol menü üstte yatay şerit olur */
  .panel-shell { grid-template-columns: 1fr; gap: 20px; }
  .panel-side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; gap: 10px; }
  .panel-user { border-bottom: 0; padding: 0 6px 0 0; }
  .panel-cta { width: auto; margin-left: auto; }
  .panel-nav { flex-direction: row; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); padding-top: 8px; }
  .panel-nav::-webkit-scrollbar { display: none; }
  .panel-nav a { white-space: nowrap; padding: 7px 10px; }
  .panel-side-foot { display: none; }
  .panel-columns { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .timeline::before { left: 7px; }
  .day { grid-template-columns: 1fr; gap: 8px; padding-left: 32px; }
  .day::before { left: 1px; top: 18px; }
  .day-marker { display: flex; align-items: baseline; gap: 10px; padding-top: 8px; text-align: left; }
  .day-entries.is-multi { grid-template-columns: 1fr; }
  .entry-card:has(.entry-media) { grid-template-columns: 1fr; }
  .entry-media img { min-height: 0; aspect-ratio: 16 / 9; }
  .entry-card:hover { transform: none; }
  .stage-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stage-steps { width: 100%; }
  .journal-toolbar { margin-top: 28px; }
  .day-nav { grid-template-columns: 1fr; }
  .day-nav-link.next { grid-column: 1; }
  .field-row { grid-template-columns: 1fr; }
  .compare-editor { grid-template-columns: 1fr; }
  .full-entry { padding-left: 14px; }
  .full-day-head .day-label { font-size: 1.6rem; }
  .today-card { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .today-day { flex-direction: row; align-items: baseline; gap: 10px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgb(244 236 223 / .2); }
  .today-label { font-size: 2rem; }
  .row { flex-wrap: wrap; gap: 10px 14px; padding: 14px; }
  .row-day { width: auto; flex-direction: row; align-items: baseline; gap: 8px; }
  .row-main { flex-basis: 100%; order: 2; }
  .row .row-actions { order: 3; flex-wrap: wrap; }
  .status-pill { margin-left: auto; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  .header-inner { height: 60px; }
  .brand-name { font-size: 1.25rem; }
  .header-link { display: none; }
  .menu-panel { padding: 84px 24px 32px; }
  .author-strip { flex-direction: column; align-items: flex-start; gap: 8px; }
  .author-chips { width: 100%; }
  .post-grid { grid-template-columns: 1fr; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 20px; padding-top: 24px; }
  .edit-link { margin-left: 0; }
  .post-head .byline { flex-wrap: wrap; }
  .author-box { flex-direction: column; }
  .table thead { display: none; }
  .table tr { display: block; border-bottom: 1px solid var(--border); padding: 10px 0; }
  .table td { display: block; border: 0; padding: 2px 0; }
  .editor-toolbar button.tb-side-by-side { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
