/*
Theme Name: Yazın Akışı UI
Theme URI: https://yazinakisi.com/
Author: Yazın Akışı
Description: Yazın Akışı için modüler, sosyal medya odaklı ve responsive WordPress teması.
Version: 1.6.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yazin-akisi
*/

:root {
  color-scheme: light;
  --ya-bg: #f5f4f0;
  --ya-surface: #ffffff;
  --ya-surface-soft: #f0efea;
  --ya-surface-strong: #e7e5de;
  --ya-text: #171717;
  --ya-muted: #6f6d67;
  --ya-line: #dedcd5;
  --ya-line-strong: #c9c6bc;
  --ya-accent: #f2c94c;
  --ya-accent-hover: #e6ba32;
  --ya-accent-text: #1d190d;
  --ya-danger: #c83f49;
  --ya-success: #2f7a4a;
  --ya-focus: #8a6d16;
  --ya-border: var(--ya-line);
  --ya-accent-strong: #9d7100;
  --ya-accent-soft: #fff2bd;
  --ya-overlay: rgba(20, 20, 20, 0.45);
  --ya-shadow: 0 16px 38px rgba(28, 28, 28, 0.08);
  --ya-radius-sm: 10px;
  --ya-radius-md: 16px;
  --ya-radius-lg: 24px;
  --ya-sidebar: 248px;
  --ya-main: 720px;
  --ya-rail: 320px;
  --ya-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html[data-ya-theme="dark"] {
  color-scheme: dark;
  --ya-bg: #171717;
  --ya-surface: #212121;
  --ya-surface-soft: #2a2a2a;
  --ya-surface-strong: #333333;
  --ya-text: #f4f4f2;
  --ya-muted: #b2b0aa;
  --ya-line: #383838;
  --ya-line-strong: #4a4a4a;
  --ya-accent: #f2c94c;
  --ya-accent-hover: #ffd76b;
  --ya-accent-text: #1d190d;
  --ya-danger: #ef6a75;
  --ya-success: #69b983;
  --ya-focus: #f2c94c;
  --ya-overlay: rgba(0, 0, 0, 0.66);
  --ya-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  html:not([data-ya-theme="light"]) {
    color-scheme: dark;
    --ya-bg: #171717;
    --ya-surface: #212121;
    --ya-surface-soft: #2a2a2a;
    --ya-surface-strong: #333333;
    --ya-text: #f4f4f2;
    --ya-muted: #b2b0aa;
    --ya-line: #383838;
    --ya-line-strong: #4a4a4a;
    --ya-accent: #f2c94c;
    --ya-accent-hover: #ffd76b;
    --ya-accent-text: #1d190d;
    --ya-danger: #ef6a75;
    --ya-success: #69b983;
    --ya-focus: #f2c94c;
    --ya-overlay: rgba(0, 0, 0, 0.66);
    --ya-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ya-bg);
  color: var(--ya-text);
  font-family: var(--ya-font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.admin-bar .ya-desktop-sidebar,
body.admin-bar .ya-right-rail { top: 32px; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
svg { width: 1.35em; height: 1.35em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--ya-focus) 70%, transparent); outline-offset: 3px; }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ya-mobile-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 90;
  min-height: 58px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--ya-line);
  background: color-mix(in srgb, var(--ya-bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.ya-mobile-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ya-mobile-brand { font-weight: 760; letter-spacing: -0.025em; }
.ya-mobile-actions { display: flex; align-items: center; gap: 6px; }

.ya-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ya-text);
}
.ya-icon-button:hover { background: var(--ya-surface-soft); }

.ya-app-shell {
  display: grid;
  grid-template-columns: var(--ya-sidebar) minmax(0, var(--ya-main)) var(--ya-rail);
  justify-content: center;
  align-items: start;
  min-height: 100vh;
  width: 100%;
}

.ya-desktop-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 22px 18px 22px 16px;
  border-right: 1px solid var(--ya-line);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ya-sidebar-brand {
  display: block;
  padding: 10px 12px 20px;
  font-size: 1.25rem;
  font-weight: 780;
  letter-spacing: -0.035em;
}
.ya-sidebar-brand small { display: block; margin-top: 2px; color: var(--ya-muted); font-size: .67rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.ya-nav { display: grid; gap: 4px; }
.ya-nav a,
.ya-sidebar-footer button {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 12px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--ya-text);
  font-weight: 650;
  text-align: left;
}
.ya-nav a:hover,
.ya-nav a[aria-current="page"],
.ya-sidebar-footer button:hover { background: var(--ya-surface-soft); }
.ya-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--ya-accent); }
.ya-nav svg { flex: 0 0 auto; }

.ya-sidebar-spacer { height: 20px; }
.ya-sidebar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  border: 1px solid color-mix(in srgb, var(--ya-accent) 70%, var(--ya-line));
  border-radius: 14px;
  background: var(--ya-accent);
  color: var(--ya-accent-text);
  font-weight: 750;
}
.ya-sidebar-action:hover { background: var(--ya-accent-hover); }

.ya-sidebar-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ya-line); }
.ya-sidebar-footer button { width: 100%; }

.ya-main-column {
  min-width: 0;
  min-height: 100vh;
  border-right: 1px solid var(--ya-line);
  background: var(--ya-surface);
}
.ya-main-inner { width: 100%; min-width: 0; }

.ya-right-rail {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 20px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.ya-search-form { position: relative; margin-bottom: 16px; }
.ya-search-form svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ya-muted); pointer-events: none; }
.ya-search-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 44px 10px 45px;
  border: 1px solid var(--ya-line);
  border-radius: 999px;
  background: var(--ya-surface);
}
.ya-search-form button { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); }

.ya-rail-card {
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid var(--ya-line);
  border-radius: var(--ya-radius-md);
  background: var(--ya-surface);
  box-shadow: 0 10px 28px rgba(20,20,20,.03);
}
.ya-rail-card h2 { margin: 0 0 12px; font-size: 1rem; letter-spacing: -.02em; }
.ya-rail-list { display: grid; gap: 5px; }
.ya-rail-list a { display: block; padding: 10px; border-radius: 10px; }
.ya-rail-list a:hover { background: var(--ya-surface-soft); }
.ya-rail-list strong { display: block; font-size: .93rem; }
.ya-rail-list span { color: var(--ya-muted); font-size: .8rem; }
.ya-rail-empty { margin: 0; color: var(--ya-muted); font-size: .9rem; }

.ya-page-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 26px 20px;
  border-bottom: 1px solid var(--ya-line);
}
.ya-page-header h1 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.045em; }
.ya-page-header p { max-width: 58ch; margin: 6px 0 0; color: var(--ya-muted); }
.ya-page-content { padding: 24px 26px 48px; }

.ya-content-card {
  padding: 22px;
  border: 1px solid var(--ya-line);
  border-radius: var(--ya-radius-md);
  background: var(--ya-surface);
}
.ya-content-card + .ya-content-card { margin-top: 16px; }
.ya-content-card > :first-child { margin-top: 0; }
.ya-content-card > :last-child { margin-bottom: 0; }

.ya-primary-button,
.ya-secondary-button,
.ya-text-button,
.ya-load-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 17px;
  border-radius: 999px;
  font-weight: 730;
}
.ya-primary-button { border: 1px solid var(--ya-accent); background: var(--ya-accent); color: var(--ya-accent-text); }
.ya-primary-button:hover { background: var(--ya-accent-hover); }
.ya-primary-button:disabled { opacity: .55; cursor: wait; }
.ya-secondary-button { border: 1px solid var(--ya-line-strong); background: var(--ya-surface); color: var(--ya-text); }
.ya-secondary-button:hover { background: var(--ya-surface-soft); }
.ya-text-button { border: 0; background: transparent; color: var(--ya-muted); }
.ya-text-link { color: color-mix(in srgb, var(--ya-text) 75%, var(--ya-accent)); text-decoration: underline; text-underline-offset: 3px; }

/* Akış */
.ya-feed-app { width: 100%; min-width: 0; }
.ya-feed-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--ya-line);
  background: color-mix(in srgb, var(--ya-surface) 92%, transparent);
  backdrop-filter: blur(18px);
}
.ya-feed-eyebrow { display: block; margin-bottom: 3px; color: var(--ya-muted); font-size: .72rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.ya-feed-header h1 { margin: 0; font-size: 1.65rem; line-height: 1.1; letter-spacing: -.045em; }
.ya-feed-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--ya-surface-soft); }
.ya-feed-tabs button { min-height: 38px; padding: 7px 13px; border: 0; border-radius: 999px; background: transparent; color: var(--ya-muted); font-size: .9rem; font-weight: 700; }
.ya-feed-tabs button.is-active { background: var(--ya-surface); color: var(--ya-text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }

.ya-quick-post {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--ya-line);
}
.ya-avatar,
.ya-feed-post__avatar img,
.ya-comment-item img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--ya-surface-strong); }
.ya-quick-post__body { min-width: 0; }
.ya-quick-post textarea {
  display: block;
  width: 100%;
  min-height: 74px;
  max-height: 240px;
  padding: 9px 0 12px;
  border: 0;
  background: transparent;
  color: var(--ya-text);
  font-size: 1.12rem;
  line-height: 1.5;
  resize: vertical;
}
.ya-quick-post textarea::placeholder { color: var(--ya-muted); }
.ya-quick-post__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--ya-line); }
.ya-quick-post__tools { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ya-quick-post select { min-height: 38px; max-width: 170px; padding: 6px 30px 6px 10px; border: 1px solid var(--ya-line); border-radius: 999px; background: var(--ya-surface); }
.ya-char-count { color: var(--ya-muted); font-size: .78rem; white-space: nowrap; }
.ya-form-message { min-height: 1.5em; margin-top: 6px; color: var(--ya-muted); font-size: .86rem; }

.ya-login-prompt { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 5px 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--ya-line); }
.ya-login-prompt strong { font-size: 1rem; }
.ya-login-prompt span { color: var(--ya-muted); font-size: .9rem; }
.ya-login-prompt .ya-primary-button { grid-row: 1 / 3; grid-column: 2; }

.ya-feed-list { min-width: 0; }
.ya-feed-post {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  gap: 12px;
  min-width: 0;
  padding: 18px 22px 10px;
  border-bottom: 1px solid var(--ya-line);
  transition: background .18s ease;
}
.ya-feed-post:hover { background: color-mix(in srgb, var(--ya-surface-soft) 42%, transparent); }
.ya-reposted-label { grid-column: 2; margin-bottom: -4px; color: var(--ya-muted); font-size: .78rem; font-weight: 650; }
.ya-feed-post__avatar { align-self: start; }
.ya-feed-post__body { min-width: 0; }
.ya-feed-post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; min-width: 0; font-size: .88rem; }
.ya-feed-post__meta a, .ya-feed-post__meta span { min-width: 0; }
.ya-feed-post__meta strong { color: var(--ya-text); }
.ya-feed-post__meta span, .ya-feed-post__meta a:last-child { color: var(--ya-muted); }
.ya-feed-post__content { margin-top: 7px; overflow-wrap: break-word; word-break: normal; }
.ya-feed-post__content p { margin: 0 0 8px; }
.ya-feed-post__content p:last-child { margin-bottom: 0; }
.ya-post-topics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ya-post-topics span { padding: 4px 8px; border-radius: 999px; background: var(--ya-surface-soft); color: var(--ya-muted); font-size: .78rem; }
.ya-repost-embed { display: block; margin-top: 12px; padding: 13px; border: 1px solid var(--ya-line); border-radius: 14px; background: var(--ya-surface); }
.ya-repost-embed:hover { border-color: var(--ya-line-strong); }
.ya-repost-embed__author { display: flex; align-items: center; gap: 7px; color: var(--ya-muted); font-size: .8rem; }
.ya-repost-embed__author img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ya-repost-embed__content { margin-top: 8px; color: var(--ya-text); font-size: .92rem; }
.ya-feed-post__actions { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 2px; margin: 11px -8px 0; }
.ya-feed-post__actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 40px; padding: 6px 7px; border: 0; border-radius: 999px; background: transparent; color: var(--ya-muted); font-size: .78rem; }
.ya-feed-post__actions button:hover { background: var(--ya-surface-soft); color: var(--ya-text); }
.ya-feed-post__actions button.is-active { color: #b58b00; }
.ya-feed-post__actions button.is-active svg { fill: currentColor; }
.ya-feed-post__actions svg { width: 1.25rem; height: 1.25rem; }
.ya-action-label { overflow: hidden; text-overflow: ellipsis; }

.ya-comment-panel { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ya-line); }
.ya-comment-list { display: grid; gap: 12px; }
.ya-comment-item { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 9px; min-width: 0; }
.ya-comment-item img { width: 34px; height: 34px; }
.ya-comment-item > div { min-width: 0; }
.ya-comment-item__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: .78rem; }
.ya-comment-item__meta span { color: var(--ya-muted); }
.ya-comment-item__content { margin-top: 2px; overflow-wrap: break-word; word-break: normal; font-size: .9rem; }
.ya-comment-item__content p { margin: 0; }
.ya-comment-panel form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 12px; }
.ya-comment-panel textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--ya-line); border-radius: 13px; background: var(--ya-surface); resize: vertical; }
.ya-empty-comments { color: var(--ya-muted); font-size: .85rem; }

.ya-feed-state { padding: 28px 22px; color: var(--ya-muted); text-align: center; }
.ya-load-more { display: flex; margin: 18px auto 32px; border: 1px solid var(--ya-line-strong); background: var(--ya-surface); }

/* Genel WordPress içerikleri */
.ya-article { padding: 28px 26px 48px; }
.ya-article__header { margin-bottom: 20px; }
.ya-article__title { margin: 0; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.1; letter-spacing: -.045em; overflow-wrap: break-word; word-break: normal; }
.ya-article__meta { margin-top: 8px; color: var(--ya-muted); font-size: .88rem; }
.ya-article__content { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.ya-article__content > * { max-width: 100%; }
.ya-article__content p, .ya-article__content li { overflow-wrap: break-word; word-break: normal; }
.ya-article__content h2, .ya-article__content h3 { letter-spacing: -.025em; }
.ya-article__content blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--ya-accent); color: var(--ya-muted); }
.ya-article__content pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: var(--ya-surface-soft); }

.ya-module-placeholder { display: grid; gap: 10px; padding: 24px; border: 1px dashed var(--ya-line-strong); border-radius: 16px; background: var(--ya-surface-soft); }
.ya-module-placeholder h2 { margin: 0; font-size: 1.15rem; }
.ya-module-placeholder p { margin: 0; color: var(--ya-muted); }

.ya-mobile-bottom-nav { display: none; }

@media (max-width: 1180px) {
  :root { --ya-sidebar: 88px; --ya-main: min(720px, calc(100vw - 88px)); }
  .ya-app-shell { grid-template-columns: var(--ya-sidebar) minmax(0, var(--ya-main)); }
  .ya-right-rail { display: none; }
  .ya-sidebar-brand { padding-inline: 6px; font-size: 0; text-align: center; }
  .ya-sidebar-brand::before { content: "YA"; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--ya-accent); color: var(--ya-accent-text); font-size: .9rem; font-weight: 850; }
  .ya-sidebar-brand small { display: none; }
  .ya-nav a, .ya-sidebar-footer button { justify-content: center; padding-inline: 8px; }
  .ya-nav a span, .ya-sidebar-footer button span, .ya-sidebar-action span { display: none; }
  .ya-sidebar-action { width: 48px; margin-inline: auto; padding: 0; }
}

@media (max-width: 820px) {
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  body.admin-bar .ya-mobile-topbar { top: 46px; }
  .ya-mobile-topbar { display: block; }
  .ya-app-shell { display: block; min-height: auto; }
  .ya-desktop-sidebar, .ya-right-rail { display: none; }
  .ya-main-column { min-height: calc(100vh - 58px); border-right: 0; }
  .ya-main-inner { width: 100%; }
  .ya-feed-header { top: 58px; padding: 14px 14px 10px; }
  body.admin-bar .ya-feed-header { top: 104px; }
  .ya-feed-header h1 { font-size: 1.3rem; }
  .ya-feed-eyebrow { display: none; }
  .ya-feed-tabs { overflow-x: auto; max-width: 68vw; scrollbar-width: none; }
  .ya-feed-tabs::-webkit-scrollbar { display: none; }
  .ya-feed-tabs button { white-space: nowrap; }
  .ya-quick-post, .ya-feed-post { padding-inline: 14px; }
  .ya-page-header { padding: 20px 16px 16px; align-items: start; }
  .ya-page-content, .ya-article { padding-inline: 16px; }
  .ya-mobile-bottom-nav {
    position: fixed;
    z-index: 100;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0,1fr));
    min-height: calc(62px + env(safe-area-inset-bottom));
    padding: 5px 8px env(safe-area-inset-bottom);
    border-top: 1px solid var(--ya-line);
    background: color-mix(in srgb, var(--ya-surface) 94%, transparent);
    backdrop-filter: blur(18px);
  }
  .ya-mobile-bottom-nav a {
    display: grid;
    place-items: center;
    gap: 2px;
    min-width: 0;
    min-height: 52px;
    border-radius: 12px;
    color: var(--ya-muted);
    font-size: .65rem;
    font-weight: 700;
  }
  .ya-mobile-bottom-nav a[aria-current="page"] { color: var(--ya-text); background: var(--ya-surface-soft); }
  .ya-mobile-bottom-nav svg { width: 1.3rem; height: 1.3rem; }
}

@media (max-width: 560px) {
  .ya-feed-header { align-items: center; gap: 10px; }
  .ya-feed-tabs { max-width: 72vw; }
  .ya-quick-post { grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
  .ya-avatar, .ya-feed-post__avatar img { width: 42px; height: 42px; }
  .ya-quick-post textarea { font-size: 1rem; min-height: 64px; }
  .ya-quick-post__footer { align-items: end; }
  .ya-quick-post__tools { display: grid; gap: 4px; }
  .ya-quick-post select { max-width: 150px; }
  .ya-feed-post { grid-template-columns: 42px minmax(0,1fr); gap: 10px; }
  .ya-feed-post__actions { grid-template-columns: repeat(5, minmax(40px,1fr)); overflow-x: auto; justify-content: start; scrollbar-width: none; }
  .ya-feed-post__actions::-webkit-scrollbar { display: none; }
  .ya-feed-post__actions button { min-width: 48px; }
  .ya-action-label { display: none; }
  .ya-login-prompt { grid-template-columns: 1fr; }
  .ya-login-prompt .ya-primary-button { grid-row: auto; grid-column: auto; justify-self: start; margin-top: 8px; }
  .ya-comment-panel form { grid-template-columns: 1fr; }
  .ya-comment-panel form button { justify-self: end; }
}

@media (max-width: 380px) {
  .ya-mobile-topbar { padding-inline: 10px; }
  .ya-feed-header { padding-inline: 10px; }
  .ya-feed-tabs button { padding-inline: 10px; font-size: .82rem; }
  .ya-quick-post, .ya-feed-post { padding-inline: 10px; }
  .ya-page-content, .ya-article { padding-inline: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Profil ve takip modülü */
.ya-profile-app { min-width: 0; }
.ya-profile-hero { border-bottom: 1px solid var(--ya-line); background: var(--ya-surface); }
.ya-profile-cover {
  min-height: clamp(150px, 24vw, 230px);
  background:
    radial-gradient(circle at 78% 22%, color-mix(in srgb, var(--ya-accent) 42%, transparent) 0 10%, transparent 11%),
    linear-gradient(135deg, var(--ya-surface-strong), var(--ya-surface-soft));
  background-size: cover;
  background-position: center;
}
.ya-profile-main { position: relative; min-width: 0; padding: 0 24px 24px; }
.ya-profile-avatar {
  display: block;
  width: clamp(104px, 14vw, 136px);
  height: clamp(104px, 14vw, 136px);
  margin-top: clamp(-68px, -7vw, -52px);
  border: 5px solid var(--ya-surface);
  border-radius: 50%;
  background: var(--ya-surface-strong);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.ya-profile-actions { position: absolute; top: 16px; right: 24px; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: calc(100% - 180px); }
.ya-profile-actions .is-following { border-color: var(--ya-line-strong); background: var(--ya-surface); color: var(--ya-text); }
.ya-profile-identity { min-width: 0; margin-top: 12px; }
.ya-profile-identity h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.08; letter-spacing: -.045em; overflow-wrap: break-word; word-break: normal; }
.ya-profile-username { margin-top: 4px; color: var(--ya-muted); font-size: .92rem; }
.ya-profile-tagline { max-width: 56ch; margin: 14px 0 0; font-weight: 700; }
.ya-profile-bio { max-width: 68ch; margin-top: 8px; line-height: 1.6; overflow-wrap: break-word; word-break: normal; }
.ya-profile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; color: var(--ya-muted); font-size: .86rem; }
.ya-profile-meta a { color: color-mix(in srgb, var(--ya-text) 72%, var(--ya-accent)); text-decoration: underline; text-underline-offset: 3px; }
.ya-profile-follow-counts { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; color: var(--ya-muted); font-size: .9rem; }
.ya-profile-follow-counts strong { color: var(--ya-text); }

.ya-profile-passport { margin: 16px; padding: 18px; border: 1px solid var(--ya-line); border-radius: var(--ya-radius-md); background: var(--ya-surface); }
.ya-profile-passport__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.ya-profile-passport__head div { display: grid; gap: 2px; }
.ya-profile-passport__head span { color: var(--ya-muted); font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ya-profile-passport__head strong { font-size: 1rem; }
.ya-profile-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--ya-line); border-radius: 14px; overflow: hidden; }
.ya-profile-stat-grid > div { display: grid; gap: 4px; min-width: 0; padding: 14px; border-right: 1px solid var(--ya-line); border-bottom: 1px solid var(--ya-line); }
.ya-profile-stat-grid > div:nth-child(3n) { border-right: 0; }
.ya-profile-stat-grid > div:nth-last-child(-n+3) { border-bottom: 0; }
.ya-profile-stat-grid strong { font-size: 1.15rem; line-height: 1; }
.ya-profile-stat-grid span { color: var(--ya-muted); font-size: .78rem; overflow-wrap: break-word; word-break: normal; }

.ya-profile-content { min-width: 0; border-top: 1px solid var(--ya-line); }
.ya-profile-tabs { position: sticky; top: 0; z-index: 20; display: flex; overflow-x: auto; padding: 0 14px; border-bottom: 1px solid var(--ya-line); background: color-mix(in srgb, var(--ya-surface) 94%, transparent); backdrop-filter: blur(16px); scrollbar-width: none; }
.ya-profile-tabs::-webkit-scrollbar { display: none; }
.ya-profile-tabs button { flex: 0 0 auto; min-height: 52px; padding: 0 14px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--ya-muted); font-size: .88rem; font-weight: 750; white-space: nowrap; }
.ya-profile-tabs button.is-active { border-bottom-color: var(--ya-accent); color: var(--ya-text); }
.ya-profile-panel { min-width: 0; }
.ya-profile-post-list { min-width: 0; }
.ya-profile-post { min-width: 0; padding: 18px 22px; border-bottom: 1px solid var(--ya-line); }
.ya-profile-post__context { margin: 0 0 8px 46px; color: var(--ya-muted); font-size: .78rem; font-weight: 700; }
.ya-profile-post__head { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 9px; align-items: center; min-width: 0; }
.ya-profile-post__head img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ya-profile-post__head > div { min-width: 0; }
.ya-profile-post__head strong, .ya-profile-post__head span { display: block; min-width: 0; overflow-wrap: break-word; word-break: normal; }
.ya-profile-post__head span { margin-top: 1px; color: var(--ya-muted); font-size: .78rem; }
.ya-profile-post__content { margin: 10px 0 0 47px; line-height: 1.58; overflow-wrap: break-word; word-break: normal; }
.ya-profile-post__content p { margin: 0 0 8px; }
.ya-profile-post__content p:last-child { margin-bottom: 0; }
.ya-profile-post__embed { display: block; margin: 12px 0 0 47px; padding: 12px 14px; border: 1px solid var(--ya-line); border-radius: 13px; background: var(--ya-surface-soft); font-size: .88rem; overflow-wrap: break-word; word-break: normal; }
.ya-profile-post__footer { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0 0 47px; color: var(--ya-muted); font-size: .78rem; }
.ya-profile-post__footer a:hover { color: var(--ya-text); }
.ya-profile-load-more { display: flex; margin: 18px auto 28px; }
.ya-profile-empty { display: grid; gap: 5px; padding: 40px 22px; color: var(--ya-muted); text-align: center; }
.ya-profile-empty strong { color: var(--ya-text); }
.ya-profile-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--ya-line); }
.ya-profile-about-grid > div { display: grid; gap: 5px; min-width: 0; padding: 18px 22px; background: var(--ya-surface); }
.ya-profile-about-grid span { color: var(--ya-muted); font-size: .78rem; }
.ya-profile-about-grid strong, .ya-profile-about-grid a { min-width: 0; overflow-wrap: break-word; word-break: normal; }

.ya-profile-dialog { width: min(620px, calc(100vw - 24px)); max-height: min(86vh, 760px); padding: 0; border: 1px solid var(--ya-line); border-radius: 20px; background: var(--ya-surface); color: var(--ya-text); box-shadow: var(--ya-shadow); overflow: auto; }
.ya-profile-dialog::backdrop { background: var(--ya-overlay); backdrop-filter: blur(5px); }
.ya-profile-edit-form { min-width: 0; }
.ya-profile-dialog__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--ya-line); background: var(--ya-surface); }
.ya-profile-dialog__head > div { display: grid; gap: 2px; }
.ya-profile-dialog__head span { color: var(--ya-muted); font-size: .8rem; }
.ya-profile-dialog__head .ya-icon-button { font-size: 1.5rem; }
.ya-profile-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 18px; }
.ya-profile-field { display: grid; gap: 6px; min-width: 0; }
.ya-profile-field--full { grid-column: 1 / -1; }
.ya-profile-field > span { color: var(--ya-muted); font-size: .78rem; font-weight: 700; }
.ya-profile-field input, .ya-profile-field textarea, .ya-profile-field select { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--ya-line); border-radius: 12px; background: var(--ya-surface); color: var(--ya-text); }
.ya-profile-field textarea { resize: vertical; }
.ya-profile-field input[type="file"] { padding: 8px; font-size: .8rem; }
.ya-profile-check { display: flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 19px; font-size: .86rem; }
.ya-profile-check input { width: 18px; height: 18px; accent-color: var(--ya-accent); }
.ya-profile-form-message { min-height: 22px; padding: 0 18px; color: var(--ya-muted); font-size: .84rem; }
.ya-profile-dialog__actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--ya-line); background: var(--ya-surface); }
.ya-profile-state { display: grid; gap: 12px; justify-items: start; padding: 36px 26px; }
.ya-profile-state h1, .ya-profile-state p { margin: 0; }
.ya-profile-state p { color: var(--ya-muted); }

@media (max-width: 820px) {
  .ya-profile-tabs { top: 58px; }
  body.admin-bar .ya-profile-tabs { top: 104px; }
  .ya-profile-main { padding-inline: 16px; }
  .ya-profile-actions { right: 16px; }
  .ya-profile-passport { margin-inline: 12px; }
}

@media (max-width: 620px) {
  .ya-profile-cover { min-height: 138px; }
  .ya-profile-main { padding-bottom: 20px; }
  .ya-profile-avatar { width: 96px; height: 96px; margin-top: -50px; border-width: 4px; }
  .ya-profile-actions { position: static; max-width: none; margin-top: 10px; justify-content: flex-start; }
  .ya-profile-actions > * { flex: 1 1 auto; }
  .ya-profile-identity { margin-top: 14px; }
  .ya-profile-stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ya-profile-stat-grid > div, .ya-profile-stat-grid > div:nth-child(3n) { border-right: 1px solid var(--ya-line); border-bottom: 1px solid var(--ya-line); }
  .ya-profile-stat-grid > div:nth-child(2n) { border-right: 0; }
  .ya-profile-stat-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
  .ya-profile-post { padding-inline: 14px; }
  .ya-profile-post__content, .ya-profile-post__embed, .ya-profile-post__footer { margin-left: 0; }
  .ya-profile-post__context { margin-left: 0; }
  .ya-profile-about-grid { grid-template-columns: 1fr; }
  .ya-profile-form-grid { grid-template-columns: 1fr; }
  .ya-profile-field--full { grid-column: auto; }
  .ya-profile-dialog { width: calc(100vw - 16px); max-height: calc(100vh - 24px); border-radius: 16px; }
}

@media (max-width: 380px) {
  .ya-profile-main { padding-inline: 12px; }
  .ya-profile-passport { margin-inline: 8px; padding: 13px; }
  .ya-profile-stat-grid > div { padding: 11px; }
  .ya-profile-tabs { padding-inline: 6px; }
  .ya-profile-tabs button { padding-inline: 10px; }
}

/* Kitaplık */
.ya-library-app,
.ya-book-detail {
  width: 100%;
  min-width: 0;
}

.ya-library-header {
  align-items: center;
}

.ya-library-toolbar {
  padding: 16px 22px;
  border-bottom: 1px solid var(--ya-line);
  background: var(--ya-surface);
}

.ya-library-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
}

.ya-library-search input,
.ya-book-import input,
.ya-book-import textarea,
.ya-book-import select,
.ya-book-entry-form input,
.ya-book-entry-form textarea,
.ya-book-entry-form select,
.ya-book-status-select select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ya-line);
  border-radius: 12px;
  background: var(--ya-surface);
  color: var(--ya-text);
}

.ya-library-search input {
  min-height: 44px;
  padding: 9px 13px;
}

.ya-book-import {
  margin: 18px 22px 4px;
  padding: 18px;
  border: 1px solid var(--ya-line);
  border-radius: var(--ya-radius-md);
  background: var(--ya-surface-soft);
}

.ya-book-import__intro,
.ya-book-import__actions,
.ya-book-entry-form__footer,
.ya-book-community__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ya-book-import__intro span,
.ya-book-community__header span {
  color: var(--ya-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.ya-book-import__intro h2,
.ya-book-community__header h2 {
  margin: 2px 0 0;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.ya-book-import__source {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.ya-book-import__source > label,
.ya-book-import__grid label,
.ya-book-entry-form__controls label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ya-book-import__source > label,
.ya-book-import__grid label > span,
.ya-book-entry-form__controls label > span {
  color: var(--ya-muted);
  font-size: .78rem;
  font-weight: 700;
}

.ya-book-import__source > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.ya-book-import__source input,
.ya-book-import__grid input,
.ya-book-import__grid textarea,
.ya-book-entry-form input,
.ya-book-entry-form textarea,
.ya-book-entry-form select,
.ya-book-status-select select {
  padding: 10px 12px;
}

.ya-book-import__source p {
  margin: 0;
  color: var(--ya-muted);
  font-size: .8rem;
}

.ya-book-import__preview {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--ya-line);
}

.ya-book-import__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ya-book-import__full {
  grid-column: 1 / -1;
}

.ya-book-import__actions {
  margin-top: 14px;
  justify-content: flex-end;
}

.ya-book-import__preview-layout {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ya-book-import__cover-preview {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.ya-book-import__cover-frame {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5.5;
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 12px;
  background: var(--ya-surface);
}

.ya-book-import__cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-book-import__cover-frame span {
  padding: 12px;
  color: var(--ya-muted);
  font-size: .75rem;
  line-height: 1.35;
  text-align: center;
}

.ya-book-import__cover-preview > span {
  color: var(--ya-muted);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.ya-library-results {
  min-width: 0;
  padding: 20px 22px 8px;
}

.ya-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-width: 0;
}

.ya-book-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 16px;
  background: var(--ya-surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ya-book-card:hover {
  transform: translateY(-2px);
  border-color: var(--ya-line-strong);
  box-shadow: 0 12px 30px rgba(20,20,20,.06);
}

.ya-book-card__cover {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5.5;
  min-height: 0;
  overflow: hidden;
  background: var(--ya-surface-soft);
}

.ya-book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-book-card__cover span {
  color: var(--ya-muted);
  font-size: .8rem;
}

.ya-book-card__body {
  min-width: 0;
  padding: 13px 14px 15px;
}

.ya-book-card h2 {
  margin: 0;
  font-size: .98rem;
  line-height: 1.28;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-card__author {
  margin: 5px 0 0;
  color: var(--ya-muted);
  font-size: .83rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 9px;
  margin-top: 10px;
  color: var(--ya-muted);
  font-size: .74rem;
}

.ya-book-card__meta span {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-library-empty,
.ya-book-entry-empty,
.ya-book-detail-state {
  display: grid;
  gap: 5px;
  justify-items: center;
  padding: 38px 20px;
  color: var(--ya-muted);
  text-align: center;
}

.ya-library-empty strong,
.ya-book-entry-empty strong {
  color: var(--ya-text);
}

.ya-library-state {
  min-height: 22px;
  padding: 0 22px;
  color: var(--ya-muted);
  font-size: .82rem;
  text-align: center;
}

/* Kitap detay */
.single-ya_book .ya-app-shell {
  grid-template-columns: var(--ya-sidebar) minmax(0, 980px);
}

.single-ya_book .ya-right-rail {
  display: none;
}

.single-ya_book .ya-main-column {
  border-right: 0;
}

.ya-book-detail {
  padding: 26px;
}

.ya-book-detail__hero {
  display: grid;
  grid-template-columns: minmax(190px, 250px) minmax(0, 1fr);
  gap: 28px;
  min-width: 0;
}

.ya-book-detail__cover {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5.6;
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 18px;
  background: var(--ya-surface-soft);
  box-shadow: 0 18px 38px rgba(20,20,20,.08);
}

.ya-book-detail__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ya-book-detail__cover span {
  color: var(--ya-muted);
  font-size: .82rem;
}

.ya-book-detail__identity {
  min-width: 0;
  align-self: center;
}

.ya-book-detail__back {
  display: inline-flex;
  margin-bottom: 15px;
  color: var(--ya-muted);
  font-size: .84rem;
}

.ya-book-detail__identity h1 {
  max-width: 100%;
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -.05em;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.ya-book-detail__author {
  margin: 10px 0 0;
  color: var(--ya-muted);
  font-size: 1.05rem;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 0;
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 14px;
  background: var(--ya-line);
}

.ya-book-facts > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 13px;
  background: var(--ya-surface);
}

.ya-book-facts dt {
  color: var(--ya-muted);
  font-size: .72rem;
  font-weight: 700;
}

.ya-book-facts dd {
  min-width: 0;
  margin: 0;
  font-size: .88rem;
  font-weight: 650;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-detail__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}

.ya-book-status-select {
  min-width: 150px;
}

.ya-book-status-select select {
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
}

.ya-book-detail__actions .is-active {
  border-color: var(--ya-accent);
  background: color-mix(in srgb, var(--ya-accent) 18%, var(--ya-surface));
}

.ya-book-description,
.ya-book-community {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ya-line);
}

.ya-book-description h2 {
  margin: 0 0 12px;
  font-size: 1.12rem;
  letter-spacing: -.025em;
}

.ya-book-description > div {
  max-width: 72ch;
  color: color-mix(in srgb, var(--ya-text) 90%, var(--ya-muted));
  line-height: 1.7;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-description p {
  margin: 0 0 12px;
}

.ya-book-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 18px -2px 0;
  padding: 2px;
  scrollbar-width: none;
}

.ya-book-tabs::-webkit-scrollbar {
  display: none;
}

.ya-book-tabs button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ya-muted);
  font-size: .82rem;
  font-weight: 720;
  white-space: nowrap;
}

.ya-book-tabs button:hover,
.ya-book-tabs button.is-active {
  border-color: var(--ya-line);
  background: var(--ya-surface-soft);
  color: var(--ya-text);
}

.ya-book-entry-form {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--ya-line);
  border-radius: 16px;
  background: var(--ya-surface-soft);
}

.ya-book-entry-form__controls {
  display: grid;
  grid-template-columns: minmax(135px, .8fr) minmax(180px, 1.4fr) minmax(110px, .7fr);
  gap: 10px;
}

.ya-book-entry-form__text {
  display: block;
  margin-top: 12px;
}

.ya-book-entry-form textarea {
  min-height: 130px;
  resize: vertical;
}

.ya-book-entry-form__footer {
  margin-top: 10px;
}

.ya-book-entry-form__footer .ya-form-message {
  flex: 1 1 auto;
  margin: 0;
}

.ya-book-entry-list {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  background: var(--ya-line);
  border: 1px solid var(--ya-line);
  border-radius: 16px;
  overflow: hidden;
}

.ya-book-entry {
  min-width: 0;
  padding: 16px;
  background: var(--ya-surface);
}

.ya-book-entry__head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.ya-book-entry__head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.ya-book-entry__head > div {
  min-width: 0;
}

.ya-book-entry__head strong,
.ya-book-entry__head span {
  display: block;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-entry__head span {
  margin-top: 2px;
  color: var(--ya-muted);
  font-size: .76rem;
}

.ya-book-entry__rating {
  color: #b58b00;
  font-size: .8rem;
  letter-spacing: .06em;
  white-space: nowrap;
}

.ya-book-entry__content {
  margin: 12px 0 0 52px;
  line-height: 1.62;
  overflow-wrap: break-word;
  word-break: normal;
}

.ya-book-entry__content p {
  margin: 0 0 10px;
}

.ya-book-entry__content p:last-child {
  margin-bottom: 0;
}

.ya-book-entry footer {
  margin: 10px 0 0 52px;
  color: var(--ya-muted);
  font-size: .76rem;
}

@media (max-width: 1180px) {
  .single-ya_book .ya-app-shell {
    grid-template-columns: var(--ya-sidebar) minmax(0, min(900px, calc(100vw - var(--ya-sidebar))));
  }
}

@media (max-width: 900px) {
  .ya-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ya-book-detail__hero {
    grid-template-columns: minmax(170px, 220px) minmax(0, 1fr);
    gap: 22px;
  }

  .ya-book-entry-form__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ya-book-entry-form__controls label:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .single-ya_book .ya-app-shell {
    display: block;
  }

  .ya-library-header {
    align-items: flex-start;
  }

  .ya-library-toolbar,
  .ya-library-results {
    padding-inline: 14px;
  }

  .ya-book-import {
    margin-inline: 14px;
  }

  .ya-book-detail {
    padding: 18px 14px 34px;
  }

  .ya-book-detail__hero {
    grid-template-columns: minmax(145px, 190px) minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 620px) {
  .ya-library-header {
    display: grid;
    align-items: start;
    gap: 14px;
    padding-inline: 14px;
  }

  .ya-library-header .ya-primary-button {
    width: 100%;
  }

  .ya-library-search,
  .ya-book-import__source > div,
  .ya-book-import__grid,
  .ya-book-entry-form__controls {
    grid-template-columns: 1fr;
  }

  .ya-library-search .ya-secondary-button,
  .ya-book-import__source .ya-primary-button {
    width: 100%;
  }

  .ya-book-import__preview-layout {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 12px;
  }

  .ya-book-import__cover-preview > span {
    font-size: .66rem;
  }

  .ya-book-import__full,
  .ya-book-entry-form__controls label:last-child {
    grid-column: auto;
  }

  .ya-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .ya-book-card__body {
    padding: 10px 10px 12px;
  }

  .ya-book-card h2 {
    font-size: .88rem;
  }

  .ya-book-card__author {
    font-size: .76rem;
  }

  .ya-book-card__meta {
    font-size: .68rem;
  }

  .ya-book-detail__hero {
    grid-template-columns: 1fr;
  }

  .ya-book-detail__cover {
    width: min(220px, 64vw);
    margin-inline: auto;
  }

  .ya-book-detail__identity {
    text-align: left;
  }

  .ya-book-detail__identity h1 {
    font-size: clamp(1.6rem, 9vw, 2.15rem);
  }

  .ya-book-facts {
    grid-template-columns: 1fr;
  }

  .ya-book-detail__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ya-book-detail__actions > *,
  .ya-book-status-select {
    width: 100%;
  }

  .ya-book-community__header,
  .ya-book-import__intro,
  .ya-book-import__actions,
  .ya-book-entry-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .ya-book-import__actions > *,
  .ya-book-entry-form__footer .ya-primary-button {
    width: 100%;
  }

  .ya-book-entry__head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ya-book-entry__head img {
    width: 38px;
    height: 38px;
  }

  .ya-book-entry__rating {
    grid-column: 2;
  }

  .ya-book-entry__content,
  .ya-book-entry footer {
    margin-left: 0;
  }
}

@media (max-width: 380px) {
  .ya-library-toolbar,
  .ya-library-results,
  .ya-book-detail {
    padding-inline: 10px;
  }

  .ya-book-import {
    margin-inline: 10px;
    padding: 14px;
  }

  .ya-book-grid {
    gap: 8px;
  }

  .ya-book-card__body {
    padding-inline: 8px;
  }
}

/* =========================================================
   Aşama 4 — Gelişmiş yayın, birleşik akış ve görselli alıntılar
   ========================================================= */
.ya-origin-badge,
.ya-longform-card__head > span,
.ya-longform-single__type {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--ya-line);
  border-radius: 999px;
  background: var(--ya-surface-soft);
  color: var(--ya-muted);
  font-size: .74rem;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.ya-longform-card__head {
  display: block;
  margin-top: 10px;
  color: inherit;
}
.ya-longform-card__head h2 {
  margin: 9px 0 0;
  color: var(--ya-text);
  font-size: clamp(1.12rem, 2.2vw, 1.42rem);
  line-height: 1.22;
  letter-spacing: -.03em;
  overflow-wrap: break-word;
  word-break: normal;
}
.ya-feed-media {
  display: block;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 16px;
  background: var(--ya-surface-soft);
}
.ya-feed-media img {
  display: block;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}
.ya-read-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--ya-muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ya-source-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--ya-line);
  border-radius: 14px;
  background: var(--ya-surface-soft);
  color: var(--ya-text);
}
.ya-source-card:hover { border-color: var(--ya-line-strong); }
.ya-source-card__label { color: var(--ya-muted); font-size: .72rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.ya-source-card strong,.ya-source-card span,.ya-source-card small { min-width: 0; overflow-wrap: break-word; word-break: normal; }
.ya-source-card strong { font-size: .96rem; }
.ya-source-card span,.ya-source-card small { color: var(--ya-muted); font-size: .82rem; }

.ya-visual-quote {
  --ya-quote-fg: #171717;
  --ya-quote-bg: #f5f1e7;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  margin-top: 12px;
  padding: clamp(28px, 7vw, 58px);
  overflow: hidden;
  border: 1px solid var(--ya-line);
  border-radius: 20px;
  background: var(--ya-quote-bg);
  color: var(--ya-quote-fg);
}
.ya-visual-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--ya-quote-image, none);
  background-position: center;
  background-size: cover;
}
.ya-visual-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--ya-quote-bg) 82%, transparent);
}
.ya-visual-quote--clean { --ya-quote-bg: #fff; --ya-quote-fg: #171717; }
.ya-visual-quote--yellow { --ya-quote-bg: #f2c94c; --ya-quote-fg: #171717; }
.ya-visual-quote--dark { --ya-quote-bg: #171717; --ya-quote-fg: #f6f3eb; }
.ya-visual-quote blockquote {
  max-width: 19ch;
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2.65rem);
  font-weight: 720;
  line-height: 1.18;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
  word-break: normal;
}
.ya-visual-quote footer { margin-top: 24px; font-size: .94rem; font-weight: 650; opacity: .82; }
.ya-visual-quote__brand { position: absolute; right: 22px; bottom: 18px; font-size: .68rem; font-weight: 700; opacity: .58; }

.ya-feed-post__actions {
  display: flex;
  flex-wrap: wrap;
  grid-template-columns: none;
}
.ya-feed-post__actions button { flex: 1 1 76px; }
.ya-feed-post__actions .ya-danger-action { color: var(--ya-danger); }

/* Yayın stüdyosu */
.ya-studio { min-width: 0; }
.ya-studio__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 25px 26px 20px;
  border-bottom: 1px solid var(--ya-line);
}
.ya-studio__header h1 { margin: 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.12; letter-spacing: -.04em; }
.ya-studio__header p { max-width: 64ch; margin: 7px 0 0; color: var(--ya-muted); }
.ya-studio__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .72fr);
  min-width: 0;
}
.ya-studio__editor { display: grid; gap: 16px; padding: 24px 26px 44px; border-right: 1px solid var(--ya-line); }
.ya-studio label { display: grid; gap: 7px; min-width: 0; }
.ya-studio label > span { font-size: .84rem; font-weight: 720; }
.ya-studio input[type="text"],
.ya-studio select,
.ya-studio textarea,
.ya-studio input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--ya-line);
  border-radius: 13px;
  background: var(--ya-surface);
  color: var(--ya-text);
}
.ya-studio textarea { line-height: 1.6; resize: vertical; }
.ya-studio__quote-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; padding: 15px; border: 1px solid var(--ya-line); border-radius: 15px; background: var(--ya-surface-soft); }
.ya-studio__quote-fields label:last-child { grid-column: 1 / -1; }
.ya-studio__media small { color: var(--ya-muted); font-size: .78rem; }
.ya-studio__actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 4px; }
.ya-studio__preview { position: sticky; top: 0; align-self: start; min-width: 0; min-height: 100vh; padding: 24px; background: var(--ya-surface-soft); }
.ya-studio__preview > span { display: block; margin-bottom: 12px; color: var(--ya-muted); font-size: .76rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ya-studio-card-preview { overflow: hidden; border: 1px solid var(--ya-line); border-radius: 18px; background: var(--ya-surface); }
.ya-studio-card-preview img { display: block; width: 100%; max-height: 300px; object-fit: cover; }
.ya-studio-card-preview > span,.ya-studio-card-preview h2,.ya-studio-card-preview p { margin-left: 18px; margin-right: 18px; }
.ya-studio-card-preview > span { display: inline-flex; margin-top: 18px; color: var(--ya-muted); font-size: .75rem; font-weight: 720; text-transform: capitalize; }
.ya-studio-card-preview h2 { margin-top: 8px; margin-bottom: 8px; font-size: 1.35rem; }
.ya-studio-card-preview p { margin-top: 0; margin-bottom: 20px; color: var(--ya-muted); }

/* Uzun eser detayı */
.ya-longform-single { max-width: 760px; margin: 0 auto; padding: 34px 34px 80px; }
.ya-longform-single__header { display: grid; gap: 12px; margin-bottom: 28px; }
.ya-longform-single__header h1 { max-width: 24ch; margin: 2px 0 0; font-size: clamp(2rem, 6vw, 3.65rem); line-height: 1.03; letter-spacing: -.055em; overflow-wrap: break-word; word-break: normal; }
.ya-longform-single__author { display: flex; align-items: center; gap: 11px; margin-top: 4px; }
.ya-longform-single__author img { width: 48px; height: 48px; border-radius: 50%; }
.ya-longform-single__author div { display: grid; gap: 2px; }
.ya-longform-single__author span { color: var(--ya-muted); font-size: .84rem; }
.ya-longform-single__cover { margin: 0 0 28px; overflow: hidden; border-radius: 20px; }
.ya-longform-single__cover img { display: block; width: 100%; max-height: 580px; object-fit: cover; }
.ya-longform-single__content { font-size: 1.05rem; line-height: 1.82; }
.ya-longform-single__content p { margin: 0 0 1.25em; }
.ya-content-type-poem .ya-longform-single__content { white-space: pre-wrap; line-height: 1.95; }

@media (max-width: 1100px) {
  .ya-studio__form { grid-template-columns: minmax(0,1fr); }
  .ya-studio__editor { border-right: 0; border-bottom: 1px solid var(--ya-line); }
  .ya-studio__preview { position: static; min-height: 0; }
}

@media (max-width: 760px) {
  .ya-studio__header { align-items: stretch; flex-direction: column; padding: 20px 16px 16px; }
  .ya-studio__header .ya-secondary-button { width: 100%; }
  .ya-studio__editor,.ya-studio__preview { padding: 18px 16px 34px; }
  .ya-studio__quote-fields { grid-template-columns: minmax(0,1fr); }
  .ya-studio__quote-fields label:last-child { grid-column: auto; }
  .ya-studio__actions { flex-direction: column-reverse; }
  .ya-studio__actions button { width: 100%; }
  .ya-visual-quote { min-height: 360px; border-radius: 16px; }
  .ya-longform-single { padding: 24px 17px 100px; }
  .ya-longform-single__header h1 { font-size: clamp(1.8rem, 9vw, 2.65rem); }
  .ya-feed-post__actions button { flex-basis: 58px; }
  .ya-feed-post__actions .ya-action-label { display: none; }
}


/* =========================================================
   BAŞLIKLAR MODÜLÜ — v1.4.0
   ========================================================= */
.ya-topics-app,
.ya-topic-single { width: 100%; min-width: 0; }

.ya-topics-header,
.ya-topic-single__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--ya-line);
  background: var(--ya-surface);
}
.ya-topics-header h1,
.ya-topic-single__header h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.08; letter-spacing: -.045em; }
.ya-topics-header p,
.ya-topic-single__header p { max-width: 62ch; margin: 7px 0 0; color: var(--ya-muted); }

.ya-topic-create {
  display: grid;
  gap: 16px;
  margin: 18px 20px;
  padding: 20px;
  border: 1px solid var(--ya-line);
  border-radius: 18px;
  background: var(--ya-surface);
  box-shadow: var(--ya-shadow-soft);
}
.ya-topic-create label { display: grid; gap: 8px; font-weight: 700; }
.ya-topic-create input,
.ya-topic-create textarea,
.ya-topic-entry-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ya-line-strong);
  border-radius: 14px;
  background: var(--ya-bg);
  color: var(--ya-text);
  font: inherit;
  line-height: 1.55;
  outline: 0;
}
.ya-topic-create input { min-height: 48px; padding: 10px 13px; }
.ya-topic-create textarea,
.ya-topic-entry-form textarea { resize: vertical; padding: 13px; }
.ya-topic-create input:focus,
.ya-topic-create textarea:focus,
.ya-topic-entry-form textarea:focus { border-color: var(--ya-accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ya-accent) 25%, transparent); }
.ya-topic-create__footer,
.ya-topic-entry-form__footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.ya-topic-tabs {
  display: flex;
  gap: 22px;
  min-width: 0;
  padding: 0 22px;
  border-bottom: 1px solid var(--ya-line);
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--ya-surface);
}
.ya-topic-tabs::-webkit-scrollbar { display: none; }
.ya-topic-tabs button {
  position: relative;
  min-height: 50px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ya-muted);
  font: inherit;
  font-weight: 750;
  white-space: nowrap;
}
.ya-topic-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: transparent;
  content: '';
}
.ya-topic-tabs button.is-active { color: var(--ya-text); }
.ya-topic-tabs button.is-active::after { background: var(--ya-accent); }

.ya-topic-list { min-width: 0; }
.ya-topic-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--ya-line);
  background: var(--ya-surface);
  transition: background .16s ease;
}
.ya-topic-card:hover { background: color-mix(in srgb, var(--ya-surface-soft) 52%, transparent); }
.ya-topic-card__main {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) 24px;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1 1 auto;
  padding: 18px 8px 18px 20px;
  color: inherit;
  text-decoration: none;
}
.ya-topic-card__rank {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--ya-accent-soft);
  color: var(--ya-text);
  font-size: 1.1rem;
  font-weight: 850;
}
.ya-topic-card__body { min-width: 0; }
.ya-topic-card__body h2 { margin: 0; font-size: 1.08rem; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: break-word; word-break: normal; }
.ya-topic-card__body p { display: -webkit-box; margin: 5px 0 0; overflow: hidden; color: var(--ya-muted); line-height: 1.45; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ya-topic-card__meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-top: 9px; color: var(--ya-muted); font-size: .8rem; }
.ya-topic-card__arrow { color: var(--ya-muted); font-size: 1.15rem; }
.ya-topic-follow { flex: 0 0 auto; min-height: 38px; margin-right: 18px; padding: 7px 12px; border: 1px solid var(--ya-line-strong); border-radius: 999px; background: var(--ya-surface); color: var(--ya-text); font: inherit; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.ya-topic-follow.is-active { border-color: var(--ya-accent); background: var(--ya-accent-soft); }
.ya-topic-state { padding: 28px 20px; color: var(--ya-muted); text-align: center; }

.ya-topic-single__header { display: block; }
.ya-topic-single__title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 22px; }
.ya-topic-single__title-row > div { min-width: 0; }
.ya-topic-single__title-row .ya-secondary-button.is-active { border-color: var(--ya-accent); background: var(--ya-accent-soft); }

.ya-topic-entry-form {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 13px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ya-line);
  background: var(--ya-surface);
}
.ya-topic-entry-form > div { min-width: 0; }
.ya-topic-entry-form .ya-avatar { width: 46px; height: 46px; }
.ya-topic-entry-form__footer { justify-content: space-between; margin-top: 10px; }

.ya-topic-entry-list { min-width: 0; }
.ya-topic-entry {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr);
  gap: 13px;
  min-width: 0;
  padding: 19px 20px;
  border-bottom: 1px solid var(--ya-line);
  background: var(--ya-surface);
}
.ya-topic-entry__avatar img { display: block; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.ya-topic-entry__body { min-width: 0; }
.ya-topic-entry__body header { display: flex; flex-wrap: wrap; gap: 4px; color: var(--ya-muted); font-size: .82rem; }
.ya-topic-entry__body header strong { color: var(--ya-text); }
.ya-topic-entry__content { margin-top: 8px; overflow-wrap: break-word; word-break: normal; line-height: 1.62; }
.ya-topic-entry__content > :first-child { margin-top: 0; }
.ya-topic-entry__content > :last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .ya-topics-header,
  .ya-topic-single__header { padding: 18px 15px; }
  .ya-topics-header { flex-direction: column; align-items: stretch; gap: 15px; }
  .ya-topics-header .ya-primary-button { width: 100%; }
  .ya-topic-create { margin: 12px 10px; padding: 15px; border-radius: 15px; }
  .ya-topic-tabs { gap: 18px; padding-inline: 15px; }
  .ya-topic-card { align-items: stretch; }
  .ya-topic-card__main { grid-template-columns: 38px minmax(0,1fr) 18px; gap: 10px; padding: 15px 6px 15px 12px; }
  .ya-topic-card__rank { width: 38px; height: 38px; border-radius: 12px; }
  .ya-topic-card__body h2 { font-size: 1rem; }
  .ya-topic-follow { align-self: center; margin-right: 10px; padding-inline: 9px; font-size: .75rem; }
  .ya-topic-single__title-row { flex-direction: column; }
  .ya-topic-single__title-row .ya-secondary-button { width: 100%; }
  .ya-topic-entry-form,
  .ya-topic-entry { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 15px 12px; }
  .ya-topic-entry-form .ya-avatar,
  .ya-topic-entry__avatar img { width: 40px; height: 40px; }
}

@media (max-width: 390px) {
  .ya-topic-card { display: block; }
  .ya-topic-card__main { padding-right: 12px; }
  .ya-topic-follow { width: calc(100% - 24px); margin: 0 12px 12px; }
  .ya-topic-create__footer { flex-direction: column-reverse; align-items: stretch; }
  .ya-topic-create__footer button { width: 100%; }
}

/* === Modüler Aşama 6: etkileşim, başlık yanıtları ve stüdyo === */
.ya-hashtag-suggestions{position:relative;margin-top:6px;border:1px solid var(--ya-border);border-radius:14px;background:var(--ya-surface);box-shadow:0 14px 34px rgba(0,0,0,.08);overflow:hidden;z-index:20}.ya-hashtag-suggestions[hidden]{display:none}.ya-hashtag-suggestions button{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border:0;border-bottom:1px solid var(--ya-border);background:transparent;text-align:left;color:var(--ya-text);cursor:pointer}.ya-hashtag-suggestions button:last-child{border-bottom:0}.ya-hashtag-suggestions button:hover{background:var(--ya-surface-soft)}.ya-hashtag-suggestions button span,.ya-hashtag-new{font-size:.8rem;color:var(--ya-muted)}.ya-hashtag-new{padding:12px 14px}
.ya-post-menu-wrap,.ya-topic-entry-menu-wrap,.ya-profile-post__menu{position:relative;margin-left:auto}.ya-post-more,.ya-topic-entry-menu-wrap>button,.ya-profile-post__menu>button{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--ya-muted);cursor:pointer}.ya-post-more:hover,.ya-topic-entry-menu-wrap>button:hover,.ya-profile-post__menu>button:hover{background:var(--ya-surface-soft);color:var(--ya-text)}.ya-post-menu,.ya-topic-entry-menu,.ya-profile-post__menu>div{position:absolute;right:0;top:38px;min-width:150px;padding:6px;border:1px solid var(--ya-border);border-radius:14px;background:var(--ya-surface);box-shadow:0 14px 36px rgba(0,0,0,.12);z-index:35}.ya-post-menu[hidden],.ya-topic-entry-menu[hidden],.ya-profile-post__menu>div[hidden]{display:none}.ya-post-menu button,.ya-topic-entry-menu button,.ya-profile-post__menu>div button{display:flex;width:100%;align-items:center;gap:9px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:var(--ya-text);text-align:left;cursor:pointer}.ya-post-menu button:hover,.ya-topic-entry-menu button:hover,.ya-profile-post__menu>div button:hover{background:var(--ya-surface-soft)}.ya-post-menu svg{width:18px;height:18px}
.ya-action-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 30px);padding:0;border:1px solid var(--ya-border);border-radius:20px;background:var(--ya-surface);color:var(--ya-text);box-shadow:0 24px 80px rgba(0,0,0,.24)}.ya-action-dialog::backdrop{background:rgba(0,0,0,.42)}.ya-action-dialog form{display:grid;gap:14px;padding:18px}.ya-action-dialog header,.ya-action-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}.ya-action-dialog header button{width:36px;height:36px;border:0;border-radius:50%;background:var(--ya-surface-soft);font-size:1.25rem}.ya-action-dialog label{display:grid;gap:7px}.ya-action-dialog input,.ya-action-dialog textarea{width:100%;box-sizing:border-box;border:1px solid var(--ya-border);border-radius:13px;background:var(--ya-bg);color:var(--ya-text);padding:12px}.ya-quote-preview{display:grid;gap:6px;padding:12px;border:1px solid var(--ya-border);border-radius:12px;background:var(--ya-surface-soft)}
.ya-feed-post__actions button.is-active,.ya-topic-entry__actions button.is-active,.ya-profile-post__footer button.is-active{color:var(--ya-accent-strong,#9d7100);background:var(--ya-accent-soft,#fff0b8)}.ya-feed-post__actions{overflow-x:auto;scrollbar-width:none}.ya-feed-post__actions::-webkit-scrollbar{display:none}
.ya-topic-entry__actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:12px}.ya-topic-entry__actions button{border:0;background:transparent;color:var(--ya-muted);padding:7px 8px;border-radius:9px;cursor:pointer}.ya-topic-entry__actions button:hover{background:var(--ya-surface-soft);color:var(--ya-text)}.ya-topic-replies{margin-top:12px;padding:12px;border-left:2px solid var(--ya-border)}.ya-topic-replies[hidden]{display:none}.ya-topic-reply{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;padding:10px 0;border-bottom:1px solid var(--ya-border)}.ya-topic-reply:last-child{border-bottom:0}.ya-topic-reply img{width:34px;height:34px;border-radius:50%;object-fit:cover}.ya-topic-reply__meta{display:flex;gap:8px;font-size:.78rem;color:var(--ya-muted)}.ya-topic-replies form{display:flex;gap:8px;margin-top:10px}.ya-topic-replies textarea{min-width:0;flex:1;border:1px solid var(--ya-border);border-radius:12px;background:var(--ya-bg);color:var(--ya-text);padding:10px}
.ya-profile-tabs{overflow-x:auto;scrollbar-width:none}.ya-profile-tabs::-webkit-scrollbar{display:none}.ya-profile-tabs button{white-space:nowrap}.ya-profile-post__footer button{border:0;background:transparent;color:inherit;border-radius:9px;padding:5px 7px;cursor:pointer}.ya-profile-post__embed{display:grid;gap:4px}.ya-profile-post__embed span{color:var(--ya-muted);font-size:.82rem}
.ya-studio__form{align-items:start}.ya-studio__editor label{min-width:0}.ya-studio__editor input,.ya-studio__editor textarea,.ya-studio__editor select{max-width:100%;box-sizing:border-box}.ya-studio__preview{min-width:0}.ya-studio-card-preview img{width:100%;max-height:330px;object-fit:cover;border-radius:16px}.ya-studio__actions{display:flex;flex-wrap:wrap;gap:10px}.ya-studio__quote-fields{display:grid;gap:12px}.ya-studio__quote-fields[hidden]{display:none}
@media(max-width:980px){.ya-right-rail{display:none}.ya-main-column{max-width:none}.ya-app-shell{grid-template-columns:88px minmax(0,1fr)}}
@media(max-width:760px){body{padding-bottom:calc(72px + env(safe-area-inset-bottom))}.ya-mobile-bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom)}.ya-mobile-bottom-nav a{min-width:0;font-size:.68rem;gap:3px}.ya-mobile-bottom-nav a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ya-mobile-bottom-nav a:nth-child(3){color:var(--ya-accent-strong)}.ya-topic-entry{grid-template-columns:40px minmax(0,1fr)}.ya-topic-entry__actions{gap:4px 8px}.ya-topic-entry__actions button{font-size:.75rem}.ya-topic-replies{margin-left:-40px}.ya-topic-replies form{display:grid}.ya-profile-post__footer{margin-left:0;gap:6px 10px}.ya-action-dialog{max-height:calc(100dvh - 12px)}.ya-studio__header{align-items:flex-start}.ya-studio__form{display:block}.ya-studio__preview{position:static;margin-top:18px}.ya-studio__actions{position:sticky;bottom:calc(68px + env(safe-area-inset-bottom));z-index:12;padding:10px;background:color-mix(in srgb,var(--ya-bg) 92%,transparent);backdrop-filter:blur(10px);border-top:1px solid var(--ya-border)}}


/* === Aşama 6.1 kararlılık ve mobil erişim düzeltmeleri === */
.ya-composer-input-wrap{position:relative;min-width:0}
.ya-hashtag-suggestions{position:absolute!important;left:0;right:0;top:calc(100% + 6px);margin:0!important;max-height:min(320px,45vh);overflow-y:auto;overscroll-behavior:contain;z-index:80}
.ya-studio-link__mobile{display:none}
.ya-quick-post__footer{flex-wrap:nowrap}
.ya-quick-post__tools{flex:1 1 auto;overflow:hidden}
.ya-studio-link{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ya-quick-post__footer>.ya-primary-button{flex:0 0 auto}
.ya-feed-post__actions{display:flex!important;grid-template-columns:none!important;flex-wrap:nowrap!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
.ya-feed-post__actions::-webkit-scrollbar{display:none}
.ya-feed-post__actions button{flex:1 0 72px;white-space:nowrap}
.ya-profile-post__original{display:block;margin-top:12px;padding:14px;border:1px solid var(--ya-line);border-radius:15px;background:var(--ya-surface);overflow-wrap:break-word;word-break:normal}
.ya-profile-post__original>div:first-child{display:flex;align-items:center;gap:7px;color:var(--ya-muted);font-size:.82rem}
.ya-profile-post__original img{width:30px;height:30px;border-radius:50%;object-fit:cover}
.ya-profile-post__original h4{margin:10px 0 5px;font-size:1rem}
.ya-profile-post__original>div:last-child{font-size:.92rem}
.ya-mobile-drawer[hidden],.ya-mobile-drawer-backdrop[hidden]{display:none!important}
.ya-mobile-drawer-backdrop{position:fixed;inset:0;z-index:118;background:rgba(0,0,0,.42)}
.ya-mobile-drawer{position:fixed;left:10px;right:10px;top:calc(66px + env(safe-area-inset-top));z-index:119;max-height:calc(100dvh - 150px);overflow:auto;padding:10px;border:1px solid var(--ya-line);border-radius:18px;background:var(--ya-surface);box-shadow:0 24px 70px rgba(0,0,0,.24)}
.ya-mobile-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:8px 10px 12px;border-bottom:1px solid var(--ya-line)}
.ya-mobile-drawer__nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:10px 0}
.ya-mobile-drawer__nav a{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border-radius:12px;font-weight:650}
.ya-mobile-drawer__nav a:hover,.ya-mobile-drawer__nav a[aria-current="page"]{background:var(--ya-surface-soft)}
.ya-mobile-drawer__nav svg{flex:0 0 auto}
body.ya-mobile-menu-open{overflow:hidden}
@media(min-width:821px){.ya-mobile-drawer,.ya-mobile-drawer-backdrop{display:none!important}}
@media(max-width:820px){
  .ya-mobile-topbar{z-index:120}
  .ya-mobile-actions{gap:2px}
  .ya-quick-post__footer{gap:8px}
  .ya-studio-link__desktop{display:none}
  .ya-studio-link__mobile{display:inline}
  .ya-quick-post__tools{gap:8px}
  .ya-feed-post__actions button{flex-basis:52px}
}
@media(max-width:390px){
  .ya-char-count{display:none}
  .ya-quick-post{grid-template-columns:40px minmax(0,1fr);gap:9px;padding-inline:10px}
  .ya-quick-post .ya-avatar{width:40px;height:40px}
  .ya-quick-post__footer>.ya-primary-button{min-height:42px;padding-inline:15px}
  .ya-mobile-drawer__nav{grid-template-columns:1fr}
}

/* =========================================================
   Yazın Akışı UI 1.6.1 — yakın işlem menüsü, mobil düzen, video
   ========================================================= */
#wpadminbar{display:none!important}html{margin-top:0!important}
.ya-sidebar-footer{display:grid;gap:4px}.ya-sidebar-footer>a,.ya-sidebar-footer>button{display:flex;align-items:center;gap:11px;min-height:42px;padding:9px 11px;border:0;border-radius:11px;background:transparent;color:var(--ya-muted);font:inherit;font-size:.83rem;text-align:left}.ya-sidebar-footer>a:hover,.ya-sidebar-footer>button:hover{background:var(--ya-surface-soft);color:var(--ya-text)}.ya-sidebar-footer svg{width:20px;height:20px}
.ya-mobile-drawer__account{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:12px 0 0;border-top:1px solid var(--ya-line)}.ya-mobile-drawer__account a{display:flex;align-items:center;gap:10px;min-height:48px;padding:10px 12px;border-radius:12px;background:var(--ya-surface-soft);font-weight:700}.ya-mobile-drawer__account svg{width:21px;height:21px}

.ya-social-actions,.ya-profile-post__footer,.ya-topic-entry__actions{display:flex;align-items:center;gap:4px;min-width:0}.ya-social-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:40px;padding:7px 9px;border:0;border-radius:999px;background:transparent;color:var(--ya-muted);font:inherit;font-size:.78rem;white-space:nowrap;cursor:pointer}.ya-social-action:hover{background:var(--ya-surface-soft);color:var(--ya-text)}.ya-social-action.is-active{background:var(--ya-accent-soft);color:var(--ya-accent-strong)}.ya-social-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.ya-social-action.is-active svg.ya-fill-on-active{fill:currentColor}.ya-social-action--danger{color:var(--ya-danger,#b42318)}

.ya-action-sheet[hidden]{display:none!important}.ya-action-sheet{position:fixed;inset:0;z-index:220;display:grid;align-items:end}.ya-action-sheet__backdrop{position:absolute;inset:0;border:0;background:rgba(0,0,0,.46)}.ya-action-sheet__panel{position:relative;z-index:1;width:min(100%,520px);max-height:min(72dvh,640px);margin:0 auto;padding:10px 12px calc(12px + env(safe-area-inset-bottom));overflow:auto;border:1px solid var(--ya-line);border-bottom:0;border-radius:22px 22px 0 0;background:var(--ya-surface);box-shadow:0 -20px 60px rgba(0,0,0,.24)}.ya-action-sheet__handle{width:42px;height:4px;margin:3px auto 12px;border-radius:99px;background:var(--ya-line-strong)}.ya-action-sheet__panel>button,.ya-action-sheet__panel>a{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:var(--ya-text);font:inherit;font-weight:650;text-align:left;cursor:pointer}.ya-action-sheet__panel>button:hover,.ya-action-sheet__panel>a:hover{background:var(--ya-surface-soft)}.ya-action-sheet__panel svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;flex:0 0 auto}

.ya-video-embed{display:grid;gap:10px;margin:12px 0;overflow:hidden;border:1px solid var(--ya-line);border-radius:16px;background:#111;color:#fff}.ya-video-embed__frame{position:relative;width:100%;aspect-ratio:16/9;background:#111}.ya-video-embed__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.ya-video-embed__meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 13px 13px}.ya-video-embed__meta>div{min-width:0}.ya-video-embed__meta strong,.ya-video-embed__meta span{display:block}.ya-video-embed__meta span{margin-top:2px;color:#cfcfcf;font-size:.78rem}.ya-video-embed__meta a{flex:0 0 auto;color:#f2c94c;font-weight:750}.ya-video-badge{display:inline-flex;align-items:center;gap:6px;width:max-content;padding:5px 9px;border-radius:999px;background:#2a2a2a;color:#f2c94c;font-size:.72rem;font-weight:800}.ya-video-badge svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}

@media(max-width:820px){
  .ya-mobile-drawer{inset:0!important;left:0!important;right:0!important;top:0!important;width:100%!important;height:100dvh!important;max-height:none!important;padding:calc(14px + env(safe-area-inset-top)) 14px calc(88px + env(safe-area-inset-bottom))!important;border:0!important;border-radius:0!important;overflow:auto!important;background:var(--ya-bg)!important}
  .ya-mobile-drawer__head{position:sticky;top:calc(-14px - env(safe-area-inset-top));z-index:2;margin:-14px -14px 8px;padding:calc(14px + env(safe-area-inset-top)) 16px 14px;background:color-mix(in srgb,var(--ya-bg) 94%,transparent);backdrop-filter:blur(14px)}
  .ya-mobile-drawer__nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.ya-mobile-drawer__nav a{min-height:58px;background:var(--ya-surface);border:1px solid var(--ya-line)}
  .ya-mobile-drawer__account{grid-template-columns:1fr 1fr;margin-top:10px}
  .ya-mobile-drawer-backdrop{display:none!important}
  .ya-social-actions,.ya-profile-post__footer,.ya-topic-entry__actions{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:2px;width:100%;overflow:visible!important}
  .ya-social-action{flex:1 1 0;width:auto;min-width:0;padding-inline:5px}.ya-social-action__label{display:none}
  .ya-social-action:nth-child(n+5):not([data-ya-action-sheet-toggle]){display:none}
  .ya-action-sheet__panel{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%;padding-inline:10px}
  .ya-action-sheet__handle{grid-column:1/-1;margin-bottom:6px}
  .ya-action-sheet__panel>button,.ya-action-sheet__panel>a{min-width:0;min-height:54px;padding:9px 10px;line-height:1.25}
  .ya-action-sheet__panel>[data-ya-action-sheet-close]{grid-column:1/-1;justify-content:center;margin-top:2px;border-top:1px solid var(--ya-line);border-radius:10px}
  body.ya-action-sheet-open{overflow:hidden}
}
@media(min-width:821px){.ya-action-sheet{display:block;pointer-events:none}.ya-action-sheet__backdrop{display:none}.ya-action-sheet__panel{position:fixed;left:var(--ya-sheet-left,auto);right:var(--ya-sheet-right,24px);top:var(--ya-sheet-top,90px);width:260px;max-height:min(70vh,560px);margin:0;border:1px solid var(--ya-line);border-radius:16px;padding:8px;box-shadow:0 18px 46px rgba(0,0,0,.16);pointer-events:auto}.ya-action-sheet__handle{display:none}}
.ya-account-page .ya-right-rail{display:none}.ya-account-page .ya-app-shell{grid-template-columns:var(--ya-sidebar) minmax(0,900px)}.ya-account-page .ya-main-column{border-right:0}
@media(max-width:980px){.ya-account-page .ya-app-shell{grid-template-columns:88px minmax(0,1fr)}}@media(max-width:820px){.ya-account-page .ya-app-shell{display:block}}


/* =========================================================
   Yazın Akışı UI 1.6.2 — ortak sosyal işlem çubuğu
   ========================================================= */
.ya-feed-post__actions.ya-social-actions,
.ya-profile-post__footer.ya-social-actions,
.ya-topic-entry__actions.ya-social-actions {
  display: flex !important;
  align-items: center;
  justify-content: stretch;
  flex-wrap: nowrap !important;
  gap: 6px;
  width: 100%;
  margin-top: 12px;
  overflow: visible !important;
}

.ya-feed-post__actions .ya-social-action,
.ya-profile-post__footer .ya-social-action,
.ya-topic-entry__actions .ya-social-action {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  min-height: 42px;
  padding: 8px 7px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--ya-muted);
  font-size: .79rem;
  line-height: 1;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
}

.ya-feed-post__actions .ya-social-action:hover,
.ya-profile-post__footer .ya-social-action:hover,
.ya-topic-entry__actions .ya-social-action:hover,
.ya-social-action[aria-expanded="true"] {
  border-color: var(--ya-line);
  background: var(--ya-surface-soft);
  color: var(--ya-text);
}

.ya-feed-post__actions .ya-social-action:active,
.ya-profile-post__footer .ya-social-action:active,
.ya-topic-entry__actions .ya-social-action:active {
  transform: scale(.97);
}

.ya-social-action svg,
.ya-action-sheet__panel svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.ya-social-action svg {
  width: 21px;
  height: 21px;
}

.ya-social-action.is-active {
  border-color: color-mix(in srgb, var(--ya-accent) 45%, var(--ya-line));
  background: var(--ya-accent-soft);
  color: var(--ya-accent-strong);
}

.ya-social-action.is-active svg.ya-fill-on-active,
.ya-action-sheet__panel .is-active svg.ya-fill-on-active {
  fill: currentColor;
}

.ya-action-sheet__panel > button,
.ya-action-sheet__panel > a {
  font-weight: 720;
}

.ya-action-sheet__panel > button.is-active,
.ya-action-sheet__panel > a.is-active {
  background: var(--ya-accent-soft);
  color: var(--ya-accent-strong);
}

@media (max-width: 820px) {
  .ya-feed-post__actions.ya-social-actions,
  .ya-profile-post__footer.ya-social-actions,
  .ya-topic-entry__actions.ya-social-actions {
    gap: 3px;
  }

  .ya-feed-post__actions .ya-social-action,
  .ya-profile-post__footer .ya-social-action,
  .ya-topic-entry__actions .ya-social-action {
    min-height: 44px;
    padding-inline: 4px;
    border-radius: 12px;
  }

  .ya-social-action__label {
    display: none !important;
  }
}


/* Aşama 8.1 — Hesap modülü tema bütünleşmesi */
.ya-sidebar-footer>a[aria-current="page"],
.ya-mobile-drawer__account>a[aria-current="page"] {
  background: var(--ya-surface-soft);
  color: var(--ya-text);
  box-shadow: inset 3px 0 0 var(--ya-accent);
}
.ya-account-page .ya-main-inner {
  width: 100%;
  max-width: none;
}
.ya-account-page .ya-page-header,
.ya-account-page .ya-page-content > .ya-content-card:has(.ya-account-shell) {
  display: none;
}
.ya-account-auth-page .ya-main-column {
  min-height: 100vh;
}
@media (max-width: 820px) {
  .ya-account-auth-page .ya-main-column {
    min-height: calc(100vh - 58px);
  }
}


/* Aşama 9 — hesap genişliği ve tam ekran Yayın Stüdyosu */
.ya-account-auth-page .ya-app-shell{grid-template-columns:minmax(0,1fr)}.ya-account-auth-page .ya-desktop-sidebar,.ya-account-auth-page .ya-right-rail,.ya-account-auth-page .ya-mobile-topbar,.ya-account-auth-page .ya-mobile-bottom-nav{display:none!important}.ya-account-auth-page .ya-main-column{width:100%;max-width:none;border:0}
.ya-studio-page{overflow:hidden}.ya-studio-page .ya-mobile-topbar,.ya-studio-page .ya-desktop-sidebar,.ya-studio-page .ya-right-rail,.ya-studio-page .ya-mobile-bottom-nav,.ya-studio-page .ya-mobile-drawer,.ya-studio-page .ya-mobile-drawer-backdrop{display:none!important}.ya-studio-page .ya-app-shell{display:block;min-height:100vh}.ya-studio-page .ya-main-column{width:100%;max-width:none;min-height:100vh;border:0;background:var(--ya-bg)}.ya-studio-page .ya-main-inner{width:100%;max-width:none}body.admin-bar.ya-studio-page .ya-studio-topbar{top:32px}body.admin-bar.ya-studio-page .ya-studio__preview{top:calc(var(--ya-studio-topbar) + 32px);height:calc(100vh - var(--ya-studio-topbar) - 32px)}body.admin-bar.ya-studio-page .ya-studio__workspace{height:calc(100vh - var(--ya-studio-topbar) - 32px)}@media(max-width:782px){body.admin-bar.ya-studio-page .ya-studio-topbar{top:46px}body.admin-bar.ya-studio-page .ya-studio__preview{top:calc(var(--ya-studio-topbar) + 46px);height:calc(100vh - var(--ya-studio-topbar) - 46px)}body.admin-bar.ya-studio-page .ya-studio__workspace{height:calc(100vh - var(--ya-studio-topbar) - 46px)}}


/* Aşama 10 — Eser Akışı tam ekran tema kabuğu */
.ya-work-stream-page{overflow:hidden;padding:0!important}
.ya-work-stream-page .ya-mobile-topbar,
.ya-work-stream-page .ya-desktop-sidebar,
.ya-work-stream-page .ya-right-rail,
.ya-work-stream-page .ya-mobile-bottom-nav,
.ya-work-stream-page .ya-mobile-drawer,
.ya-work-stream-page .ya-mobile-drawer-backdrop{display:none!important}
.ya-work-stream-page .ya-app-shell{display:block;min-height:100dvh}
.ya-work-stream-page .ya-main-column{width:100%;max-width:none;min-height:100dvh;border:0;background:transparent}
.ya-work-stream-page .ya-main-inner{width:100%;max-width:none}
.ya-work-stream-page .ya-site-footer{display:none!important}
