/* ==========================================================================
   Site arayüzü: üst menü, üye hesabı, giriş/kayıt, yorumlar, okuma listeleri
   (style.css ve membership.css'ten sonra yüklenir; çakışan kuralları ezer)
   ========================================================================== */

/* ---------- Üst şerit ---------- */
.header-top { padding: 0; font-size: 0.78rem; }
.header-top-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 32px; gap: 1rem;
}
.header-top .social-links { display: flex; gap: 0.25rem; }
.header-top .social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  color: rgba(255, 255, 255, 0.72); transition: color var(--transition-fast), background var(--transition-fast);
}
.header-top .social-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.header-top-links { display: flex; gap: 1.25rem; }
.header-top-links a { color: rgba(255, 255, 255, 0.72); font-weight: 500; letter-spacing: 0.01em; }
.header-top-links a:hover { color: #fff; }

/* ---------- Ana menü ---------- */
.site-header { background: color-mix(in srgb, var(--bg-color) 88%, transparent); }
.header-main { height: 72px; gap: 1.5rem; }
.header-main .logo { margin-right: 0; flex-shrink: 0; }
.header-main .brand-mark { width: 42px; height: 42px; }
.header-main .logo.brand .brand-name { font-size: 1.3rem; }
.header-main .logo.brand .brand-tagline { font-size: 0.64rem; }

.header-main .nav-menu {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 0.25rem; min-width: 0;
}
.header-main .nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.55rem 0.85rem; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0;
  text-transform: none; white-space: nowrap;
  color: var(--text-main); opacity: 0.82;
  transition: opacity var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}
.header-main .nav-link::after { display: none; }
.header-main .nav-link:hover { opacity: 1; background: var(--bg-alt); }
.header-main .nav-link.is-active { opacity: 1; color: var(--primary); font-weight: 600; }
.nav-mobile-extra { display: none; }

/* Açılır menüler (<details>) */
.nav-dropdown, .account-menu, .save-menu { position: relative; }
.nav-dropdown > summary, .account-menu > summary, .save-menu > summary { list-style: none; cursor: pointer; }
.nav-dropdown > summary::-webkit-details-marker,
.account-menu > summary::-webkit-details-marker,
.save-menu > summary::-webkit-details-marker { display: none; }
.nav-dropdown .chev { transition: transform var(--transition-fast); }
.nav-dropdown[open] .chev { transform: rotate(180deg); }
.nav-dropdown[open] > summary { opacity: 1; background: var(--bg-alt); }

.nav-dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 120;
  min-width: 220px; max-height: 70vh; overflow-y: auto;
  padding: 0.4rem; display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.nav-dropdown-panel a, .nav-dropdown-panel button {
  display: block; width: 100%; text-align: left;
  padding: 0.55rem 0.75rem; border-radius: 8px;
  font: inherit; font-size: 0.9rem; color: var(--text-main);
  background: none; border: none; cursor: pointer;
}
.nav-dropdown-panel a:hover, .nav-dropdown-panel button:hover { background: var(--bg-alt); }
.nav-dropdown-panel a.is-active { color: var(--primary); font-weight: 600; }

/* Sağdaki eylemler */
.header-main .header-actions { display: flex; align-items: center; gap: 0.35rem; flex-shrink: 0; }
.header-main .icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: transparent; color: var(--text-main);
}
.header-main .icon-btn:hover { background: var(--bg-alt); color: var(--primary); }
.theme-toggle .ico-sun { display: none; }
[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
[data-theme="dark"] .theme-toggle .ico-moon { display: none; }
.header-sep { width: 1px; height: 22px; background: var(--border-color); margin: 0 0.35rem; }

.header-login {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem; border-radius: 10px;
  font-size: 0.9rem; font-weight: 600; color: var(--text-main);
}
.header-login:hover { background: var(--bg-alt); color: var(--primary); }

.account-menu > summary { display: flex; border-radius: 50%; }
.account-menu > summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.account-menu-panel { left: auto; right: 0; min-width: 230px; }
.account-menu-head { padding: 0.6rem 0.75rem 0.7rem; margin-bottom: 0.3rem; border-bottom: 1px solid var(--border-color); }
.account-menu-head strong { display: block; font-size: 0.92rem; }
.account-menu-head small { color: var(--text-light); }
.account-menu-panel form { margin: 0.3rem 0 0; padding-top: 0.3rem; border-top: 1px solid var(--border-color); }

.support-link {
  margin-left: 0.25rem; padding: 0.55rem 1.05rem;
  font: inherit; font-size: 0.88rem; font-weight: 700; white-space: nowrap;
  color: #fff; background: var(--primary);
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--primary) 35%, transparent);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.support-link:hover { background: #cf2f3c; transform: translateY(-1px); }

/* Hamburger → çarpı */
.header-main .hamburger {
  width: 38px; height: 38px; border-radius: 10px; border: none; background: transparent;
  align-items: center; justify-content: center;
}
.header-main .hamburger span { width: 20px; transition: transform var(--transition-fast), opacity var(--transition-fast); }
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) {
  .header-main { gap: 1rem; }
  .header-main .nav-link { padding: 0.5rem 0.6rem; font-size: 0.88rem; }
  .header-login span { display: none; }
  .header-login { padding: 0.5rem; }
}

@media (max-width: 768px) {
  .header-top-links { display: none; }
  .header-main { height: 64px; }
  /* Başlıktaki backdrop-filter sabit menünün kapsayıcısı olur: top başlığa göredir */
  .header-main .nav-menu {
    top: 100%; height: calc(100vh - 97px); width: min(320px, 86vw);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0.15rem; padding: 1rem;
  }
  .header-main .nav-link { padding: 0.8rem 0.9rem; font-size: 1rem; opacity: 1; }
  .nav-dropdown-panel {
    position: static; box-shadow: none; border: none; background: transparent;
    padding: 0 0 0.4rem 0.75rem; max-height: none;
  }
  .nav-mobile-extra {
    display: flex; flex-direction: column; gap: 0.15rem;
    margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--border-color);
  }
  .header-sep, .header-login { display: none; }
  .support-link { padding: 0.45rem 0.8rem; font-size: 0.8rem; }
}

@media (max-width: 420px) {
  .header-main .logo.brand .brand-text { display: none; }
  .header-main .header-actions { gap: 0.15rem; }
}

/* ---------- Üye fotoğrafı ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #8d1d27);
  color: #fff; font-weight: 700; letter-spacing: 0.02em; line-height: 1;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Giriş / kayıt ---------- */
.auth-page { display: flex; justify-content: center; }
.auth-card {
  width: 100%; max-width: 460px; padding: 2.25rem 2rem;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.auth-head h1 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.auth-head p { color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.55; }
.auth-form { display: flex; flex-direction: column; gap: 1rem; }
.auth-form label { display: flex; flex-direction: column; gap: 0.35rem; }
.auth-form label > span { font-size: 0.85rem; font-weight: 600; }
.auth-form small { color: var(--text-light); font-size: 0.78rem; }
.auth-form input, .auth-form textarea,
.inline-form input, .save-menu-new input, .comment-form textarea, .comment-reply textarea {
  width: 100%; padding: 0.7rem 0.85rem;
  font: inherit; font-size: 0.95rem; color: var(--text-main);
  background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.auth-form input:focus, .auth-form textarea:focus, .inline-form input:focus,
.save-menu-new input:focus, .comment-form textarea:focus, .comment-reply textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent);
}
.auth-form .btn { margin-top: 0.4rem; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.auth-switch { text-align: center; margin-top: 1.4rem; font-size: 0.92rem; }
.auth-switch a, .auth-note a { color: var(--primary); font-weight: 600; }
.auth-note { text-align: center; margin-top: 0.6rem; font-size: 0.82rem; color: var(--text-light); }
.auth-card .flash { margin-bottom: 1rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 480px) {
  .auth-card { padding: 1.6rem 1.15rem; }
  .auth-row { grid-template-columns: 1fr; }
}

/* ---------- Hesabım ---------- */
.account { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.account-side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 1rem; }
.account-card, .account-panel, .account-nav {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
}
.account-card { padding: 1.75rem 1.25rem 1.25rem; text-align: center; }
.account-card .avatar { margin: 0 auto 0.9rem; box-shadow: 0 0 0 4px var(--bg-color), 0 0 0 5px var(--border-color); }
.account-card h1 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.account-handle { color: var(--text-light); font-size: 0.88rem; }
.account-since { color: var(--text-light); font-size: 0.78rem; margin-top: 0.5rem; }
.account-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.1rem; border-top: 1px solid var(--border-color); }
.account-stats div { padding-top: 0.9rem; display: flex; flex-direction: column; }
.account-stats div + div { border-left: 1px solid var(--border-color); }
.account-stats strong { font-size: 1.25rem; }
.account-stats span { font-size: 0.75rem; color: var(--text-light); }

.account-nav { padding: 0.4rem; display: flex; flex-direction: column; }
.account-nav a, .account-nav button {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 0.65rem 0.85rem; border-radius: 10px;
  font: inherit; font-size: 0.92rem; font-weight: 500; color: var(--text-main);
  background: none; border: none; cursor: pointer; text-align: left;
}
.account-nav a:hover, .account-nav button:hover { background: var(--bg-alt); }
.account-nav a.is-active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); font-weight: 600; }
.account-nav a span {
  font-size: 0.72rem; font-weight: 700; padding: 0.1rem 0.45rem; border-radius: 999px;
  background: var(--bg-alt); color: var(--text-light);
}
.account-nav form { margin-top: 0.3rem; padding-top: 0.3rem; border-top: 1px solid var(--border-color); }
.account-nav button { color: var(--text-light); }

.account-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.account-panel { padding: 1.6rem 1.75rem; }
.account-panel h2 { font-size: 1.2rem; margin-bottom: 1.1rem; }
.account-panel .auth-form { max-width: 560px; }

.avatar-edit { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.avatar-upload { display: flex; flex-direction: column; gap: 0.3rem; }
.avatar-upload label { cursor: pointer; align-self: flex-start; }
.avatar-upload input[type="file"] { display: none; }
.avatar-upload small { color: var(--text-light); font-size: 0.78rem; }
.link-btn {
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--text-light);
  background: none; border: none; padding: 0.25rem; cursor: pointer;
}
.link-btn:hover { color: var(--primary); }

.inline-form { display: flex; gap: 0.6rem; margin-bottom: 1.25rem; }
.inline-form input { flex: 1; }
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.list-card {
  position: relative; border: 1px solid var(--border-color); border-radius: var(--radius-md);
  overflow: hidden; background: var(--bg-color);
}
.list-cover {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; grid-template-rows: 100%;
  height: 110px; overflow: hidden; background: var(--bg-alt); place-items: stretch;
}
.list-cover img { width: 100%; height: 100%; object-fit: cover; }
.list-cover span { display: grid; place-items: center; font-size: 1.8rem; color: var(--text-light); }
.list-body { padding: 0.75rem 0.9rem 0.9rem; }
.list-body h3 { font-size: 1rem; margin-bottom: 0.15rem; color: var(--text-main); }
.list-body p { font-size: 0.8rem; color: var(--text-light); }
.list-card form { position: absolute; top: 0.4rem; right: 0.4rem; }
.list-card .link-btn {
  background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: 999px;
  padding: 0.2rem 0.6rem; font-size: 0.72rem;
}
.empty-note {
  padding: 1.25rem; border: 1px dashed var(--border-color); border-radius: var(--radius-md);
  color: var(--text-light); font-size: 0.92rem; line-height: 1.55;
}

.my-comments { list-style: none; display: flex; flex-direction: column; }
.my-comments li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border-color);
}
.my-comments li:last-child { border-bottom: none; }
.my-comment-post { font-weight: 600; color: var(--primary); font-size: 0.92rem; }
.my-comments p { margin: 0.3rem 0; white-space: pre-wrap; }
.my-comments small { color: var(--text-light); font-size: 0.78rem; }

@media (max-width: 900px) {
  .account { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .account-nav { flex-direction: row; flex-wrap: wrap; }
  .account-nav a, .account-nav form { width: auto; flex: 1 1 auto; }
  .account-nav form { margin: 0; padding: 0; border: none; }
}
@media (max-width: 480px) {
  .account-panel { padding: 1.25rem 1.1rem; }
  .inline-form { flex-direction: column; }
}

/* ---------- Okuma listesi sayfası ---------- */
.list-items { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.list-items li {
  display: grid; grid-template-columns: 120px 1fr auto; gap: 1rem; align-items: center;
  padding: 0.75rem; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.list-item-thumb { display: block; height: 80px; border-radius: 8px; overflow: hidden; background: var(--bg-alt); }
.list-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--primary); letter-spacing: 0.04em; }
.list-item-body h3 { font-size: 1.05rem; margin: 0.15rem 0; color: var(--text-main); }
.list-item-body small { color: var(--text-light); }
@media (max-width: 560px) {
  .list-items li { grid-template-columns: 84px 1fr; }
  .list-items li form { grid-column: 1 / -1; justify-self: end; }
  .list-item-thumb { height: 64px; }
}

/* ---------- Yazı sayfası: kaydet menüsü ---------- */
.post-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.save-menu > summary.tool-btn { user-select: none; }
.save-menu-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; width: 280px;
  padding: 0.5rem; background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}
.save-menu-title { font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; padding: 0.35rem 0.5rem; }
.save-menu-item {
  display: flex; align-items: center; gap: 0.55rem; width: 100%;
  padding: 0.5rem; border-radius: 8px; text-align: left;
  font: inherit; font-size: 0.9rem; color: var(--text-main); background: none; border: none; cursor: pointer;
}
.save-menu-item:hover { background: var(--bg-alt); }
.save-menu-item span {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  border: 1px solid var(--border-color); font-size: 0.8rem; flex-shrink: 0;
}
.save-menu-item.is-on span { background: var(--primary); border-color: var(--primary); color: #fff; }
.save-menu-item small { margin-left: auto; color: var(--text-light); }
.save-menu-new { display: flex; flex-direction: column; gap: 0.5rem; padding: 0.6rem 0.5rem 0.35rem; margin-top: 0.35rem; border-top: 1px solid var(--border-color); }
.save-menu-new input { padding: 0.55rem 0.7rem; font-size: 0.88rem; }

/* ---------- Yorumlar ---------- */
.comment-form { display: flex; gap: 0.9rem; margin-bottom: 1.75rem; }
.comment-form-body { flex: 1; display: flex; flex-direction: column; gap: 0.6rem; }
.comment-form textarea, .comment-reply textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.comment-form-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.comment-form-actions small { color: var(--text-light); font-size: 0.78rem; }
.comment-gate { margin-bottom: 2rem; }
.comment-gate-actions { display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }
.comment-content { flex: 1; min-width: 0; }
.comment-author-row { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
.comment-date { font-size: 0.8rem; color: var(--text-light); font-weight: normal; }
.comment-reply { margin-top: 0.4rem; }
.comment-reply > summary {
  display: inline-block; cursor: pointer; list-style: none;
  font-size: 0.82rem; font-weight: 600; color: var(--text-light);
}
.comment-reply > summary::-webkit-details-marker { display: none; }
.comment-reply > summary:hover { color: var(--primary); }
.comment-reply form { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; margin-top: 0.5rem; }
.comment-reply textarea { min-height: 64px; }
.replies { margin-top: 0.85rem; padding-left: 1rem; border-left: 2px solid var(--border-color); display: flex; flex-direction: column; gap: 0.85rem; }
.reply { display: flex; gap: 0.7rem; }
.reply p { font-size: 0.92rem; white-space: pre-wrap; }

/* ---------- Etiket takibi ve Sana özel ---------- */
.tag-follow { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; margin-top: 1rem; }
.tag-follow small { color: var(--text-light); font-size: 0.8rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.panel-head h2 { margin-bottom: 0; }
.panel-note { color: var(--text-light); font-size: 0.9rem; line-height: 1.55; margin-bottom: 1.1rem; }
.tag-toggle-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.8rem 0.45rem 0.5rem; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--text-main);
  background: var(--bg-color); border: 1px solid var(--border-color);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}
.tag-toggle:hover { border-color: var(--primary); }
.tag-toggle span {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 0.75rem; background: var(--bg-alt); color: var(--text-light);
}
.tag-toggle small { font-size: 0.72rem; color: var(--text-light); font-weight: 500; }
.tag-toggle.is-on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.tag-toggle.is-on span { background: var(--primary); color: #fff; }

.for-you-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.for-you-head h1 { font-size: 2.2rem; margin-bottom: 0.25rem; }
.for-you-head p { color: var(--text-light); }
.follow-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.75rem; }
.follow-chip {
  padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent);
}
.follow-chip.is-cat { color: var(--text-main); background: var(--bg-alt); }
.for-you-sub { font-size: 1.3rem; margin: 2.5rem 0 1rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }

/* ---------- Hesap silme ---------- */
.danger-panel { border-color: color-mix(in srgb, #c53030 45%, var(--border-color)); }
.danger-panel h2 { color: #c53030; }
.check-row { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; }
.check-row input { width: auto !important; margin-top: 0.2rem; }
.check-row span { font-weight: 500 !important; font-size: 0.9rem !important; }
.panel-note a { color: var(--primary); font-weight: 600; }

/* ---------- Gizlilik ve yasal sayfalar ---------- */
.legal-page h1 { font-size: 2.2rem; margin-bottom: 0.25rem; }
.legal-page h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal-page ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-page li { margin-bottom: 0.5rem; line-height: 1.6; }
.legal-page a { color: var(--primary); }
.legal-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---------- Dergi okuyucu (PDF.js) ---------- */
.magazine-reader { max-width: 980px; }
.magazine-reader-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1rem; }
.magazine-reader-back { font-size: 0.9rem; font-weight: 600; color: var(--text-light); }
.magazine-reader-back:hover { color: var(--primary); }
.magazine-reader-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.magazine-reader-title { margin-bottom: 1.25rem; }
.magazine-reader-title h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); line-height: 1.2; margin-bottom: 0.3rem; }
.magazine-reader-title p { color: var(--text-light); font-size: 0.92rem; }

.pdf-viewer {
  position: relative; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--text-main) 6%, var(--bg-alt));
  padding: clamp(0.5rem, 2vw, 1.25rem);
}
/* Yatay kaydırma (yakınlaştırınca) yalnızca sayfalarda; kutunun kendisi taşmaz,
   böylece alttaki araç çubuğu ekrana yapışabilir */
.pdf-pages {
  --pdf-zoom: 1; display: flex; flex-direction: column; align-items: center;
  gap: clamp(0.5rem, 1.5vw, 1rem); overflow-x: auto; overflow-y: hidden;
}
.pdf-page {
  width: calc(100% * var(--pdf-zoom)); max-width: calc(820px * var(--pdf-zoom));
  background: #fff; border-radius: 4px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.pdf-viewer.is-zoomed .pdf-pages { align-items: flex-start; }
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-status { text-align: center; color: var(--text-light); padding: 3rem 1rem; font-size: 0.95rem; }
.pdf-status a { color: var(--primary); font-weight: 600; }
.pdf-viewer.is-ready .pdf-status { display: none; }
.pdf-viewer.is-failed .pdf-status { display: block; color: var(--text-main); }

.pdf-toolbar {
  position: sticky; bottom: 1rem; z-index: 5;
  display: flex; align-items: center; gap: 0.35rem; width: max-content;
  margin: 1rem auto 0; padding: 0.35rem 0.5rem;
  background: var(--card-bg); color: var(--text-main);
  border: 1px solid var(--border-color); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
.pdf-viewer:not(.is-ready) .pdf-toolbar { visibility: hidden; }
.pdf-toolbar button {
  width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
  font: inherit; font-size: 1.15rem; font-weight: 600; color: var(--text-main); background: var(--bg-alt);
}
.pdf-toolbar button:hover { background: var(--primary); color: #fff; }
.pdf-counter, .pdf-zoom { font-size: 0.85rem; font-weight: 600; min-width: 3.2rem; text-align: center; font-variant-numeric: tabular-nums; }
.pdf-toolbar-sep { width: 1px; height: 20px; background: var(--border-color); margin: 0 0.25rem; }

@media (max-width: 560px) {
  .magazine-reader-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.8rem; }
  .pdf-viewer { margin: 0 -1rem; border-radius: 0; }
}
