/* Bia.Esa — Edebiyat Sanat Akademisi ile aynı template ve renkler */
:root {
  --esa-primary: #2b7a77;
  --esa-primary-hover: #1e5452;
  --esa-primary-light: #e6f7f6;
  --esa-secondary: #0e1f86;
  --esa-secondary-dark: #213d74;
  --esa-body-bg: #f7f7f7;
  --esa-white: #fff;
  --esa-font: #17242a;
  --esa-disabled: #919eab;
  --esa-grey: #6e7c97;
  --esa-border-passive: #dfe8e8;
  --esa-shadow: 0 4px 23px rgba(0,0,0,0.1);
  --esa-shadow-sm: 0 4px 10px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--esa-font);
  background: var(--esa-body-bg);
  line-height: 1.5;
}

/* Header — ESA aynısı */
header {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.header-blur {
  position: absolute;
  inset: 0;
  background: #fff;
  z-index: 5;
}
.header-inner {
  position: relative;
  z-index: 6;
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
header .logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
header .logo:hover { opacity: 0.85; }
.logo-img { height: 36px; width: auto; display: block; }
.footer-logo-img { height: 28px; }
header nav { display: flex; align-items: center; }
header nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
header nav ol li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: var(--esa-secondary-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
header nav ol li a:hover {
  background: rgba(43,122,119,.08);
  color: var(--esa-primary);
}
header nav ol li a.active {
  background: rgba(43,122,119,.12);
  color: var(--esa-primary);
  font-weight: 600;
}
.header-auth { display: flex; gap: 8px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary {
  background: var(--esa-primary);
  color: var(--esa-white);
}
.btn-secondary:hover { background: var(--esa-primary-hover); color: var(--esa-white); }
.btn-primary-outline {
  background: transparent;
  border: 1px solid var(--esa-primary);
  color: var(--esa-primary);
}
.btn-primary-outline:hover { background: var(--esa-primary); color: var(--esa-white); }

/* Arama kutusu */
.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f4f6f5;
  border: 1px solid #e0e8e7;
  padding: 7px 14px;
  border-radius: 8px;
  max-width: 280px;
}
.search-wrap input {
  border: none;
  background: none;
  flex: 1;
  font-size: 14px;
  outline: none;
  color: var(--esa-secondary-dark);
}
.search-wrap input::placeholder { color: #999; }
.search-btn {
  background: none; border: none; cursor: pointer;
  color: var(--esa-grey); display: flex; align-items: center;
  padding: 0; transition: color .2s;
}
.search-btn:hover { color: var(--esa-primary); }

/* Main */
.main-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}
@media (max-width: 992px) {
  .main-wrap { grid-template-columns: 1fr; }
}

/* İçerik alanı — ESA kartları */
.content-main .esa-card {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.content-main .esa-card-title {
  padding: 24px;
  border-bottom: 1px solid var(--esa-border-passive);
  font-size: 18px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
}
.content-main .post-list { display: flex; flex-direction: column; }
.content-main .post-element {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px 0 15px;
  border-bottom: 1px solid var(--esa-border-passive);
  flex-wrap: wrap;
  gap: 12px;
}
.content-main .post-element:last-child { border-bottom: none; }
.post-element-left {
  display: flex;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  flex: 1;
  min-width: 0;
}
.post-element .avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  background: var(--esa-border-passive);
}
/* ── Home Tabs ──────────────────────────────────────────── */
.home-tabs {
  display: flex; gap: 0; border-bottom: 2px solid #e5e7eb; padding: 0 16px;
}
.home-tab {
  padding: 12px 20px; border: none; background: none;
  font-size: .92rem; font-weight: 600; color: #6b7280;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .12s, border-color .12s;
}
.home-tab:hover { color: #1f2937; }
.home-tab.active { color: var(--esa-primary); border-bottom-color: var(--esa-primary); }
.home-tab-content { }

/* Yazar baş harfleri — desktop'ta gizli, mobilde görünür */
.author-initials { display: none; }

.post-element .author-name {
  width: 60px;
  padding: 0 6px;
  font-size: 14px;
  font-weight: 300;
  color: var(--esa-disabled);
  text-decoration: none;
}
.post-element .post-title-wrap { padding-left: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.post-element .post-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 2.8em;
  line-height: 1.4;
}
.post-element .post-title:hover { color: var(--esa-primary); }
.post-element .post-date { font-size: 12px; font-weight: 300; color: var(--esa-disabled); }
.post-element-right {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  flex-shrink: 0;
}
.post-element .stat { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--esa-disabled); }
.post-element .btn-incele {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  background: var(--esa-primary);
  color: var(--esa-white);
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
  min-width: 80px;
}
.post-element .btn-incele:hover { background: var(--esa-primary-hover); color: var(--esa-white); }

/* Sidebar — ESA ile aynı */
.sidebar-box {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow);
  padding: 24px;
  margin-bottom: 24px;
}
.sidebar-box h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--esa-border-passive);
}
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: 8px; }
.sidebar-box a { color: var(--esa-font); text-decoration: none; font-size: 14px; }
.sidebar-box a:hover { color: var(--esa-primary); }
.sidebar-box .see-all { color: var(--esa-primary); font-weight: 500; font-size: 14px; display: inline-block; margin-bottom: 10px; }
.slider-placeholder {
  background: var(--esa-primary-light);
  border-radius: 12px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--esa-grey);
  font-size: 14px;
}

/* Footer — ESA aynısı */
footer {
  background: var(--esa-white);
  color: var(--esa-font);
  padding: 40px 24px 24px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1270px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: start;
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
}
footer .logo { font-size: 1.25rem; font-weight: 700; color: var(--esa-primary); text-decoration: none; }
footer .footer-desc { margin-top: 8px; font-size: 14px; color: var(--esa-grey); max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--esa-font); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--esa-primary); }
.footer-bottom {
  max-width: 1270px;
  margin: 32px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--esa-border-passive);
  font-size: 13px;
  color: var(--esa-grey);
}

/* İç sayfalar */
.main-wrap.page-single { grid-template-columns: 1fr; }
.main-wrap.page-single .content-main { max-width: 1100px; }
.page-title { font-size: 1.5rem; font-weight: 600; color: var(--esa-secondary-dark); margin: 0 0 20px; }
.content-body { font-size: 15px; line-height: 1.7; color: var(--esa-font); white-space: pre-wrap; word-wrap: break-word; }
.content-body p { margin: 0 0 1rem; white-space: normal; }

/* Kart listesi (eski basit liste) */
.card-list { list-style: none; padding: 0; margin: 0 0 20px; }
.card-list li { padding: 10px 0; border-bottom: 1px solid var(--esa-border-passive); }
.card-list li:last-child { border-bottom: none; }
.card-title { font-size: 15px; font-weight: 500; color: var(--esa-secondary-dark); text-decoration: none; }
.card-title:hover { color: var(--esa-primary); }
.card-meta { font-size: 13px; color: var(--esa-grey); margin-left: 8px; }

/* ── Harf Filtre ─────────────────────────────────────────── */
.alpha-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--esa-white);
  border-radius: 10px;
  box-shadow: var(--esa-shadow-sm);
}
.alpha-filter .alpha-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--esa-grey);
  width: 100%;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.alpha-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--esa-font);
  text-decoration: none;
  background: var(--esa-body-bg);
  border: 1px solid var(--esa-border-passive);
  transition: all 0.2s;
}
.alpha-filter a:hover { background: var(--esa-primary); color: var(--esa-white); border-color: var(--esa-primary); }
.alpha-filter a.active { background: var(--esa-primary); color: var(--esa-white); border-color: var(--esa-primary); }
.alpha-filter a.all { width: auto; padding: 0 12px; }

/* ── Kategori Grid ────────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
  margin-bottom: 24px;
  align-items: stretch;
}
.category-card {
  background: var(--esa-white);
  border-radius: 10px;
  box-shadow: var(--esa-shadow-sm);
  padding: 20px;
  text-decoration: none;
  color: var(--esa-font);
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.category-card:hover {
  border-color: var(--esa-primary);
  box-shadow: var(--esa-shadow);
  color: var(--esa-font);
  transform: translateY(-2px);
}
.category-card .cat-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  line-height: 1.4;
}
.category-card .cat-count {
  font-size: 12px;
  color: var(--esa-primary);
  font-weight: 500;
}

/* ── Yazar Kartları ───────────────────────────────────────── */
.writer-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--esa-border-passive);
}
.writer-tabs a {
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--esa-grey);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.writer-tabs a:hover { color: var(--esa-primary); }
.writer-tabs a.active { color: var(--esa-primary); border-bottom-color: var(--esa-primary); }

.writer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.writer-card {
  background: var(--esa-white);
  border-radius: 10px;
  box-shadow: var(--esa-shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: var(--esa-font);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.writer-card:hover { box-shadow: var(--esa-shadow); transform: translateY(-2px); color: var(--esa-font); }
.writer-card .writer-photo {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: var(--esa-primary-light);
}
.writer-card .writer-photo-placeholder {
  width: 100%;
  height: 160px;
  background: var(--esa-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--esa-primary);
  font-weight: 700;
}
.writer-card .writer-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.writer-card .writer-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.writer-card .writer-count {
  font-size: 12px;
  color: var(--esa-primary);
  font-weight: 500;
}
.writer-card .writer-bio {
  font-size: 12px;
  color: var(--esa-grey);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 24px 0;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--esa-border-passive);
  color: var(--esa-font);
  background: var(--esa-white);
  transition: all 0.2s;
}
.pagination a:hover { background: var(--esa-primary); color: var(--esa-white); border-color: var(--esa-primary); }
.pagination span.current { background: var(--esa-primary); color: var(--esa-white); border-color: var(--esa-primary); }
.pagination .prev, .pagination .next { width: auto; padding: 0 14px; }

/* ── Sıralama / Sort ──────────────────────────────────────── */
.sort-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.sort-bar span { font-size: 13px; color: var(--esa-grey); font-weight: 500; }
.sort-bar a {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid var(--esa-border-passive);
  color: var(--esa-font);
  background: var(--esa-white);
  transition: all 0.2s;
}
.sort-bar a:hover { border-color: var(--esa-primary); color: var(--esa-primary); }
.sort-bar a.active { background: var(--esa-primary); color: var(--esa-white); border-color: var(--esa-primary); }

/* ── Auth Formları ────────────────────────────────────────── */
.auth-wrap {
  max-width: 420px;
  margin: 40px auto;
  background: var(--esa-white);
  border-radius: 16px;
  box-shadow: var(--esa-shadow);
  padding: 40px;
}
.auth-wrap h1 { font-size: 1.5rem; font-weight: 700; color: var(--esa-secondary-dark); margin: 0 0 8px; }
.auth-wrap .auth-subtitle { font-size: 14px; color: var(--esa-grey); margin: 0 0 28px; }
.auth-form .field { margin-bottom: 16px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: var(--esa-font); margin-bottom: 6px; }
.auth-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--esa-border-passive);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form input:focus { border-color: var(--esa-primary); }
.auth-form .btn-auth {
  width: 100%;
  padding: 12px;
  background: var(--esa-primary);
  color: var(--esa-white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}
.auth-form .btn-auth:hover { background: var(--esa-primary-hover); }
.auth-form .auth-links { text-align: center; margin-top: 16px; font-size: 14px; color: var(--esa-grey); }
.auth-form .auth-links a { color: var(--esa-primary); text-decoration: none; }
.auth-form .auth-links a:hover { text-decoration: underline; }
.auth-error { background: #fff3f3; color: #c62828; border: 1px solid #ffcdd2; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }
.auth-success { background: #f1f8f1; color: #2e7d32; border: 1px solid #c8e6c9; border-radius: 8px; padding: 10px 14px; font-size: 14px; margin-bottom: 16px; }

/* ── Footer social ───────────────────────────────────────── */
.footer-social { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--esa-primary-light);
  color: var(--esa-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--esa-primary); color: var(--esa-white); }

/* ── Duyuru/Post Detay ────────────────────────────────────── */
.detail-wrap {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow);
  padding: 32px;
  margin-bottom: 24px;
}
.detail-wrap h1 { font-size: 1.6rem; font-weight: 700; color: var(--esa-secondary-dark); margin: 0 0 12px; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--esa-grey); margin-bottom: 24px; align-items: center; }
.detail-meta a { color: var(--esa-primary); text-decoration: none; }
.detail-body { font-size: 15px; line-height: 1.8; color: var(--esa-font); }
.detail-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.btn-like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid var(--esa-primary);
  color: var(--esa-primary);
  background: transparent;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-like:hover, .btn-like.liked { background: var(--esa-primary); color: var(--esa-white); }

/* ── Yorumlar ────────────────────────────────────────────── */
.comments-section { margin-top: 28px; }
.comments-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
}
.comments-count {
  background: var(--esa-primary-light);
  color: var(--esa-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
}

/* Compose */
.comment-compose {
  background: var(--esa-white);
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  transition: border-color .2s, box-shadow .2s;
}
.comment-compose:focus-within {
  border-color: var(--esa-primary);
  box-shadow: 0 0 0 3px rgba(43, 122, 119, 0.08);
}
.comment-compose textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1px solid var(--esa-border-passive);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color .2s;
}
.comment-compose textarea:focus {
  outline: none;
  border-color: var(--esa-primary);
}
.comment-compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
.btn-comment-submit {
  background: var(--esa-primary);
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.btn-comment-submit:hover { background: var(--esa-primary-hover, #1e5452); }

/* Login notice */
.comment-login-notice {
  background: var(--esa-white);
  border: 1px dashed var(--esa-border-passive);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--esa-grey);
  font-size: 14px;
}
.comment-login-notice a { color: var(--esa-primary); font-weight: 600; text-decoration: none; }
.comment-login-notice a:hover { text-decoration: underline; }

/* Empty */
.comments-empty {
  background: var(--esa-white);
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--esa-grey);
}
.comments-empty p { margin: 0; font-size: 14px; }

/* Comment list */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.comment-item {
  display: flex;
  gap: 14px;
  background: var(--esa-white);
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 16px 18px;
  transition: box-shadow .2s;
}
.comment-item:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, .04); }
.comment-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--esa-primary-light);
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  text-decoration: none;
}
.comment-author:hover { color: var(--esa-primary); }
.comment-date { font-size: 12px; color: var(--esa-grey); }
.comment-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
  word-wrap: break-word;
  white-space: pre-wrap;
}
.comment-actions { display: flex; gap: 8px; margin-top: 6px; }
.comment-action-btn {
  background: none; border: none; cursor: pointer;
  font-size: .78rem; color: #6b7280; font-weight: 600;
  padding: 2px 0; transition: color .12s;
}
.comment-action-btn:hover { color: #2b7a77; }
.comment-action-delete { color: #dc2626; }
.comment-action-delete:hover { color: #991b1b; }

@media (max-width: 600px) {
  .comment-item { padding: 14px; gap: 10px; }
  .comment-avatar { width: 38px; height: 38px; }
  .comment-compose { padding: 12px; }
  .comment-compose textarea { min-height: 80px; }
}

/* ── Profil / Kullanıcı ──────────────────────────────────── */
.profile-card {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow);
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; background: var(--esa-primary-light); }
.profile-info { flex: 1; min-width: 200px; }
.profile-name { font-size: 1.4rem; font-weight: 700; color: var(--esa-secondary-dark); margin: 0 0 4px; }
.profile-username { font-size: 14px; color: var(--esa-grey); margin: 0 0 12px; }
.profile-stats { display: flex; gap: 20px; font-size: 13px; color: var(--esa-grey); }
.profile-stats strong { color: var(--esa-font); font-size: 16px; }

/* ── Kredi / Bildirim kartları ────────────────────────────── */
.info-card {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow);
  padding: 24px;
  margin-bottom: 16px;
}
.info-card h2 { font-size: 1.1rem; font-weight: 600; color: var(--esa-secondary-dark); margin: 0 0 16px; border-bottom: 1px solid var(--esa-border-passive); padding-bottom: 12px; }
.notif-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--esa-border-passive); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: var(--esa-primary-light); margin: 0 -8px; padding: 12px 8px; border-radius: 6px; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--esa-secondary-dark); }
.notif-content { font-size: 13px; color: var(--esa-grey); margin-top: 2px; }
.notif-date { font-size: 12px; color: var(--esa-disabled); white-space: nowrap; }

/* ── İletişim formu ──────────────────────────────────────── */
.contact-form { background: var(--esa-white); border-radius: 12px; box-shadow: var(--esa-shadow); padding: 32px; max-width: 600px; }
.contact-form .field { margin-bottom: 16px; }
.contact-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--esa-font); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--esa-border-passive);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--esa-primary); }
.contact-form .btn-submit { padding: 11px 28px; background: var(--esa-primary); color: var(--esa-white); border: none; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; }

/* ── Hakkımızda ──────────────────────────────────────────────────────────────── */
.about-quote {
  border-left: 4px solid var(--esa-primary);
  margin: 0;
  padding: 16px 20px;
  font-size: 17px;
  font-style: italic;
  color: var(--esa-secondary-dark);
  background: var(--esa-primary-light);
  border-radius: 0 8px 8px 0;
}
.about-card {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow-sm);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.about-card h2 { margin: 0 0 12px; font-size: 18px; color: var(--esa-secondary-dark); }
.about-card p  { margin: 0 0 10px; line-height: 1.7; color: var(--esa-font); }
.about-card p:last-child { margin-bottom: 0; }
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 0;
}
.about-item {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow-sm);
  padding: 24px 20px;
  border-top: 3px solid var(--esa-primary);
}
.about-item-icon { font-size: 28px; margin-bottom: 10px; }
.about-item h3   { margin: 0 0 8px; font-size: 16px; color: var(--esa-secondary-dark); }
.about-item p    { margin: 0; font-size: 14px; line-height: 1.65; color: var(--esa-grey); }

/* ── İletişim ────────────────────────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-card {
  background: var(--esa-white);
  border-radius: 12px;
  box-shadow: var(--esa-shadow-sm);
  padding: 28px;
}
.contact-info-card h2 { margin: 0 0 6px; font-size: 20px; color: var(--esa-secondary-dark); }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--esa-border-passive);
}
.contact-detail:last-of-type { border-bottom: none; }
.contact-detail-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.contact-detail-label { font-size: 11px; font-weight: 700; color: var(--esa-grey); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; }
.contact-detail-value { font-size: 14px; color: var(--esa-font); text-decoration: none; font-weight: 500; }
a.contact-detail-value:hover { color: var(--esa-primary); }
.contact-social {
  display: flex;
  gap: 10px;
  padding-top: 18px;
  flex-wrap: wrap;
}
.contact-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--esa-primary-light);
  color: var(--esa-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.contact-social-btn:hover { background: var(--esa-primary); color: #fff; }
.contact-map-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--esa-shadow-sm);
  height: 400px;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  margin-bottom: 12px;
  color: var(--esa-grey);
}
.breadcrumb a { color: var(--esa-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.bc-sep { color: var(--esa-disabled); }
.bc-current { font-weight: 600; color: var(--esa-font); }

/* ── Sidebar Kategori Accordion ──────────────────────────────────────────────── */
.sidebar-cat-tree { list-style: none; margin: 8px 0 0; padding: 0; }
.sct-item { border-bottom: 1px solid var(--esa-border-passive); }
.sct-item:last-child { border-bottom: none; }
.sct-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.sct-link {
  flex: 1;
  display: block;
  padding: 7px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--esa-secondary-dark);
  text-decoration: none;
  transition: color .12s;
}
.sct-link:hover { color: var(--esa-primary); }
.sct-toggle {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  color: var(--esa-primary);
  font-size: 18px;
  line-height: 1;
  transition: transform .22s;
  flex-shrink: 0;
}
.sct-item.open > .sct-row .sct-toggle { transform: rotate(90deg); }
.sct-children {
  list-style: none;
  margin: 0;
  padding: 0 0 4px 12px;
  border-left: 2px solid var(--esa-border-passive);
  max-height: 0;
  overflow: hidden;
  transition: max-height .28s ease;
}
.sct-children li { padding: 2px 0; }
.sct-children a {
  font-size: 12px;
  color: var(--esa-grey);
  text-decoration: none;
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background .12s, color .12s;
}
.sct-children a:hover { background: var(--esa-primary-light); color: var(--esa-primary); }

/* ── Kategori Index — kart eşit yükseklik + alt liste ───────────────────────── */
.category-grid {
  align-items: start; /* kartların kendi yüksekliği farklı olabilir ama wrap eşit */
}
.category-card-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.category-card {
  flex: 1; /* wrapper içinde kartı tüm yüksekliğe yay */
  min-height: 90px;
}
.category-card.has-sub { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cat-sub-badge {
  margin-top: 4px;
  font-size: 11px;
  background: var(--esa-primary);
  color: #fff;
  border-radius: 20px;
  padding: 2px 8px;
  align-self: flex-start;
}
.cat-sub-list {
  background: var(--esa-white);
  border: 1px solid var(--esa-border-passive);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.cat-sub-link {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--esa-secondary-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .12s;
}
.cat-sub-link:hover { background: var(--esa-primary-light); color: var(--esa-primary); }
.cat-sub-arrow { color: var(--esa-primary); font-size: 16px; }
.cat-sub-more { color: var(--esa-grey); font-style: italic; }

/* ── Alt Kategori Grid (Detail sayfası) ─────────────────────────────────────── */
.sub-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  padding: 12px 0 4px;
}
.sub-cat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--esa-primary-light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--esa-font);
  border: 1px solid transparent;
  transition: border-color .15s, background .15s;
}
.sub-cat-card:hover { border-color: var(--esa-primary); background: #d5eeec; }
.sub-cat-card.has-sub { border-left: 3px solid var(--esa-primary); }
.sub-cat-name { font-size: 14px; font-weight: 600; color: var(--esa-secondary-dark); }
.sub-cat-meta { font-size: 12px; color: var(--esa-grey); display: flex; align-items: center; gap: 4px; }
.sub-cat-arrow { color: var(--esa-primary); font-size: 15px; }

/* ── Kategori Ağacı (sidebar) ───────────────────────────────────────────────── */
.cat-tree { list-style: none; margin: 8px 0 0; padding: 0; }
.cat-tree .cat-tree { padding-left: 14px; border-left: 2px solid var(--esa-border-passive); margin: 2px 0 2px 8px; }
.cat-tree-item { margin: 1px 0; }
.cat-tree-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--esa-secondary-dark);
  font-size: 13px;
  transition: background .12s;
}
.cat-tree-link:hover { background: var(--esa-primary-light); color: var(--esa-primary); }
.cat-tree-name { flex: 1; }
.cat-tree-count {
  font-size: 11px;
  background: var(--esa-border-passive);
  color: var(--esa-grey);
  border-radius: 20px;
  padding: 1px 6px;
  flex-shrink: 0;
}
.cat-tree-toggle {
  color: var(--esa-primary);
  font-size: 16px;
  transition: transform .2s;
}
.cat-tree-item.open > .cat-tree-link .cat-tree-toggle { transform: rotate(90deg); }
.cat-tree-children { display: block; }

/* ── Announcement Banner ──────────────────────────────────────────── */
.announcement-banner {
  max-width: 1200px;
  margin: 12px auto;
  padding: 0 16px;
}
.announcement-banner-link {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--esa-white);
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 12px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, border-color .2s;
}
.announcement-banner-link:hover {
  border-color: var(--esa-primary);
  box-shadow: 0 2px 12px rgba(43,122,119,.12);
}
.announcement-banner-img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.announcement-banner-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.announcement-banner-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--esa-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.announcement-banner-title {
  font-size: .95rem;
  font-weight: 500;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 600px) {
  .announcement-banner { padding: 0 8px; margin: 8px auto; }
  .announcement-banner-link { padding: 10px 14px; gap: 12px; }
  .announcement-banner-img { width: 44px; height: 44px; }
  .announcement-banner-title { white-space: normal; }
}

/* ── Top Sliders (Duyuru + Video) ──────────────────────────────────────────── */
.top-sliders-wrap {
  background: var(--esa-white);
  border-bottom: 1px solid var(--esa-border-passive);
  padding: 12px 0;
}
.top-sliders-inner {
  max-width: 1270px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 24px;
}
.top-slider {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
/* Duyuru 2/3, Video 1/3 genişlik */
#ann-slider { flex: 2; }
#vid-slider { flex: 1; }
.top-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.top-slider-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--esa-primary);
  letter-spacing: .01em;
}
.top-slider-nav {
  display: flex;
  gap: 4px;
}
.tsn-btn {
  background: var(--esa-primary-light);
  border: none;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  font-size: 18px;
  line-height: 1;
  color: var(--esa-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.tsn-btn:hover { background: var(--esa-primary); color: #fff; }
.top-slider-track-wrap {
  overflow: hidden;
  border-radius: 8px;
}
.top-slider-track {
  display: flex;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
.top-slider-item {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--esa-font);
  background: var(--esa-primary-light);
  border-radius: 8px;
  padding: 10px 16px;
  min-width: 0;
  transition: background .15s;
}
.top-slider-item:hover { background: #d0eeec; }
.tsi-img {
  width: 128px;
  height: 96px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: var(--esa-border-passive);
}
.tsi-img-placeholder {
  background: var(--esa-border-passive);
}
.tsi-video-wrap {
  position: relative;
  width: 128px;
  height: 96px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.tsi-video-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tsi-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 20px;
}
.tsi-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--esa-secondary-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}
.top-slider-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  padding-top: 2px;
}
.tsd {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--esa-border-passive);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.tsd.active { background: var(--esa-primary); transform: scale(1.25); }
@media (max-width: 700px) {
  .top-sliders-inner { flex-direction: column; }
}

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-intro { font-size: 15px; color: var(--esa-grey); margin: -8px 0 28px; line-height: 1.6; }
.faq-intro a { color: var(--esa-primary); text-decoration: none; }
.faq-intro a:hover { text-decoration: underline; }

.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item { border: 1px solid var(--esa-border-passive); border-radius: 10px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.faq-item:hover { border-color: rgba(43,122,119,.3); }
.faq-item.open { border-color: var(--esa-primary); box-shadow: 0 2px 12px rgba(43,122,119,.08); }

.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; gap: 12px;
  background: var(--esa-bg); border: none; cursor: pointer;
  font-size: 15px; font-weight: 600; color: var(--esa-secondary-dark);
  text-align: left; transition: background .15s;
}
.faq-question:hover { background: var(--esa-card-bg); }
.faq-item.open .faq-question { background: var(--esa-card-bg); color: var(--esa-primary); }

.faq-icon { flex-shrink: 0; color: var(--esa-grey); transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--esa-primary); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 20px;
  background: var(--esa-card-bg);
}
.faq-item.open .faq-answer { max-height: 400px; padding: 0 20px 18px; }
.faq-answer p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--esa-font); }
.faq-answer a { color: var(--esa-primary); text-decoration: none; }
.faq-answer a:hover { text-decoration: underline; }

/* ── Terms Tabs ──────────────────────────────────────────── */
.terms-tabs {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 2px solid var(--esa-border-passive);
  flex-wrap: wrap;
}
.terms-tab {
  padding: 10px 20px; border: none; background: transparent; cursor: pointer;
  font-size: 14px; font-weight: 600; color: var(--esa-grey);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  transition: color .2s, border-color .2s;
  border-radius: 6px 6px 0 0;
}
.terms-tab:hover { color: var(--esa-secondary-dark); background: var(--esa-card-bg); }
.terms-tab.active { color: var(--esa-primary); border-bottom-color: var(--esa-primary); }

.terms-panel { display: none; }
.terms-panel.active { display: block; }

.terms-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--esa-border-passive); }
.terms-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.terms-section h2 { font-size: 20px; font-weight: 700; color: var(--esa-secondary-dark); margin: 0 0 12px; }
.terms-section h3 { font-size: 16px; font-weight: 600; color: var(--esa-secondary-dark); margin: 0 0 10px; }
.terms-section p  { font-size: 14px; line-height: 1.75; color: var(--esa-font); margin: 0 0 10px; }
.terms-section p:last-child { margin-bottom: 0; }
.terms-section a  { color: var(--esa-primary); text-decoration: none; }
.terms-section a:hover { text-decoration: underline; }
.terms-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.terms-list li { font-size: 14px; line-height: 1.6; color: var(--esa-font); }
.terms-list li strong { color: var(--esa-secondary-dark); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  /* Header: sadece hamburger + logo + auth butonları */
  .header-inner {
    height: auto; padding: 10px 14px; gap: 8px;
    flex-wrap: wrap;
  }
  .header-inner nav { display: none; } /* Nav gizle — hamburger menüde */
  .header-inner .search-wrap { display: none; } /* Arama gizle */
  .logo-img { height: 32px; }
  .header-auth { margin-left: auto; }
  .header-auth .user-name { display: none; }
  .header-auth .btn { padding: 4px 10px; font-size: .78rem; }

  /* Mobil: login olmuşsa Paylaş butonu göster, user-menu gizle */
  .header-share-btn {
    padding: 6px 16px !important; font-size: .82rem !important;
    margin-right: 0 !important;
    background: var(--esa-primary) !important; color: #fff !important;
    border-radius: 18px !important; font-weight: 600 !important;
  }
  .header-auth .user-menu { display: none; }

  /* Mobil: login olmamışsa Kayıt/Giriş butonlarını gizle (alt nav'da var) */
  .header-auth-desktop { display: none !important; }

  /* Hamburger menü butonu */
  .mobile-hamburger {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: none; background: none;
    cursor: pointer; color: var(--esa-secondary-dark);
  }

  .main-wrap { padding: 0; gap: 0; }
  .auth-wrap { margin: 16px; padding: 24px 20px; }
  .writer-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }

  /* Top slider — mobilde kompakt göster (Duyurular + Videolar) */
  .top-sliders-wrap { padding: 8px 0; }
  .top-sliders-inner { flex-direction: column; gap: 12px; padding: 0 12px; }
  #ann-slider, #vid-slider { flex: 1 1 auto; }
  .top-slider-label { font-size: 12px; }
  .top-slider-item { padding: 8px 10px; gap: 10px; }
  .tsi-img, .tsi-video-wrap { width: 88px; height: 66px; }
  .tsi-title { font-size: 13px; -webkit-line-clamp: 2; }
  .tsn-btn { width: 24px; height: 24px; font-size: 16px; }

  /* Günün şiiri / haftanın yazısı küçült */
  .featured-row { flex-direction: column; gap: 8px; }
  .featured-card { padding: 14px; }
  .featured-card h3 { font-size: 1rem; }

  /* İçerik listesi — referans görseldeki gibi */
  .esa-card { border-radius: 0; box-shadow: none; border-left: none; border-right: none; }

  .post-element {
    cursor: pointer;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
  }
  .post-element::after {
    content: "›"; position: absolute; right: 16px; top: 50%;
    transform: translateY(-50%); font-size: 1.4rem; color: #d1d5db;
  }
  .post-element-left { padding: 0; gap: 12px; flex-wrap: nowrap; align-items: center; }

  /* Avatar görünsün (referans görseldeki gibi yuvarlak resim) */
  .post-element .avatar {
    display: block !important;
    width: 48px; height: 48px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
  }
  .post-element .author-initials {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px;
    font-size: 16px; font-weight: 700; color: #fff;
    background: var(--esa-primary); border-radius: 50%;
    flex-shrink: 0; text-decoration: none;
  }
  .post-element .author-name { display: none; }

  /* Başlık + yazar dikey düzen */
  .post-element .post-title-wrap {
    padding-left: 0; display: flex; flex-direction: column;
    gap: 2px; flex: 1; min-width: 0; padding-right: 20px;
  }
  .post-element .post-title {
    font-size: 15px; font-weight: 600; color: #1f2937;
    -webkit-line-clamp: 1; max-height: 1.4em;
    display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
  }
  .post-element .post-date {
    font-size: 12px; color: #9ca3af;
  }

  /* İstatistikler ve İncele gizle */
  .post-element-right { display: none; }

  /* Sidebar — mobilde içerik altında göster (kategoriler, yazarlar) */
  .sidebar { display: block; padding: 8px 12px 72px; }
  .sidebar-box { padding: 14px; margin-bottom: 10px; border-radius: 10px; }
  .sidebar-box h3 { font-size: 14px; }

  /* Tab'lar */
  .home-tabs { padding: 0; border-bottom: none; background: var(--esa-primary); border-radius: 0; }
  .home-tab {
    color: rgba(255,255,255,0.7); border-bottom-color: transparent;
    padding: 12px 16px; font-size: .85rem;
  }
  .home-tab:hover { color: #fff; }
  .home-tab.active { color: #fff; border-bottom-color: #fff; }

  /* Alt navigation bar */
  .mobile-bottom-nav {
    display: flex !important;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 1px solid #e5e7eb;
    z-index: 999; padding: 6px 0;
    justify-content: space-around; align-items: center;
  }
  .mobile-bottom-nav a, .mobile-bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    text-decoration: none; color: #6b7280; font-size: 10px;
    background: none; border: none; cursor: pointer; padding: 4px 8px;
    position: relative;
  }
  .mobile-bottom-nav a.active { color: var(--esa-primary); }
  .mobile-bottom-nav .nav-plus {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--esa-primary); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; margin-top: -20px;
    box-shadow: 0 2px 8px rgba(43,122,119,0.3);
  }
  .mobile-nav-badge {
    position: absolute; top: 0; right: 2px;
    background: #e53935; color: #fff;
    font-size: 9px; min-width: 14px; height: 14px;
    border-radius: 7px; display: flex; align-items: center; justify-content: center;
  }

  /* Body padding (alt nav bar için) */
  body { padding-bottom: 64px; }

  /* Footer küçült */
  footer .footer-inner { flex-direction: column; gap: 20px; padding: 20px 16px; }
  footer .footer-links { gap: 8px; }

  /* Hamburger menü panel */
  .mobile-menu-panel {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000; background: rgba(0,0,0,0.5);
  }
  .mobile-menu-panel.open { display: block; }
  .mobile-menu-content {
    width: 280px; height: 100%; background: #fff;
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    padding: 20px 0; overflow-y: auto;
  }
  .mobile-menu-content a {
    display: block; padding: 12px 24px; color: #374151;
    text-decoration: none; font-size: .95rem; font-weight: 500;
    border-bottom: 1px solid #f3f4f6;
  }
  .mobile-menu-content a:hover, .mobile-menu-content a.active {
    background: #eef7f6; color: var(--esa-primary);
  }
  .mobile-menu-close {
    display: block; padding: 12px 24px; background: none; border: none;
    font-size: 1.2rem; cursor: pointer; color: #9ca3af;
  }
}

/* Desktop: mobil öğeleri gizle */
.mobile-hamburger { display: none; }
.mobile-bottom-nav { display: none; }
.mobile-menu-panel { display: none; }
.header-share-btn { padding: 5px 14px; font-size: .85rem; margin-right: 10px; }

/* ── Profil Hero ─────────────────────────────────────────── */
.profile-hero {
  background: #fff;
  border: 1px solid var(--esa-border-passive);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.profile-hero-inner {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.profile-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  flex-shrink: 0;
  background: var(--esa-primary-light);
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
  margin: 0;
  line-height: 1.3;
}
.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.profile-edit-btn { background: #f0f2f5; color: #374151; }
.profile-edit-btn:hover { background: #e5e7eb; }
.profile-download-btn { background: #eef6fb; color: #2E86C1; }
.profile-download-btn:hover { background: #d6eaf8; }
.profile-msg-btn { background: var(--esa-primary); color: #fff; box-shadow: 0 2px 6px rgba(43,122,119,0.25); }
.profile-msg-btn:hover { background: var(--esa-primary-hover, #1e5452); transform: translateY(-1px); }
.profile-username {
  display: block;
  font-size: .88rem;
  color: #6b7280;
  margin-bottom: 8px;
}
.profile-about {
  font-size: .92rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0 0 10px;
  max-width: 600px;
}
.profile-meta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.profile-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .82rem;
  color: #6b7280;
}
.profile-stats {
  display: flex;
  gap: 24px;
}
.profile-stat { text-align: center; }
.profile-stat-num {
  display: block;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
  line-height: 1.2;
}
.profile-stat-label {
  font-size: .72rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
}

/* ── Profil Tabs ────────────────────────────────────────── */
.profile-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  border-bottom: 2px solid #e5e7eb; padding-bottom: 0;
}
.profile-tab {
  padding: 10px 20px; border: none; background: none;
  font-size: .9rem; font-weight: 600; color: #6b7280;
  cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: color .12s, border-color .12s;
}
.profile-tab:hover { color: #1f2937; }
.profile-tab.active { color: var(--esa-primary); border-bottom-color: var(--esa-primary); }
.profile-tab-count {
  background: #f3f4f6; color: #6b7280;
  font-size: .72rem; padding: 1px 7px; border-radius: 10px; margin-left: 4px;
}
.profile-tab.active .profile-tab-count { background: var(--esa-primary-light); color: var(--esa-primary); }

/* ── Profil Eserler ─────────────────────────────────────── */
.profile-section-header {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
  margin-bottom: 14px;
}
.profile-empty {
  background: #fff;
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
  color: #94a3b8;
}
.profile-cat-group {
  background: #fff;
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.profile-cat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: background .15s;
}
.profile-cat-header:hover { background: #f8fafa; }
.profile-cat-name { font-weight: 600; font-size: 14px; color: var(--esa-secondary-dark); flex: 1; }
.profile-cat-count {
  background: var(--esa-primary-light);
  color: var(--esa-primary);
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 10px;
  flex-shrink: 0;
}
.profile-cat-toggle {
  font-size: 18px; color: var(--esa-grey); transition: transform .2s;
  flex-shrink: 0; width: 20px; text-align: center;
}
.profile-cat-group.open .profile-cat-toggle { transform: rotate(90deg); }
.profile-cat-group.open .profile-cat-header { background: #f4f8f7; border-bottom-color: var(--esa-border-passive); }
.profile-cat-posts {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.profile-cat-group.open .profile-cat-posts { max-height: 5000px; }
.profile-post-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px 10px 32px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none; color: inherit;
  transition: background .12s;
}
.profile-post-row:hover { background: #f8fafa; }
.profile-post-row:last-child { border-bottom: none; }
.profile-post-title {
  font-size: 13px; color: var(--esa-secondary-dark);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-post-row:hover .profile-post-title { color: var(--esa-primary); }
.profile-post-date { font-size: 11px; color: #94a3b8; flex-shrink: 0; margin-left: 12px; }

/* ── Profil Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
  .profile-hero { padding: 20px; }
  .profile-hero-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .profile-avatar { width: 90px; height: 90px; }
  .profile-name-row { justify-content: center; }
  .profile-stats { justify-content: center; }
  .profile-meta-row { justify-content: center; }
}

/* İçerik gövdesindeki resimler — çerçeveye sığsın */
.content-body img, .post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 8px 0;
}

/* Featured row — Günün Şiiri / Haftanın Yazısı */
.featured-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.featured-card {
  display: block;
  background: linear-gradient(135deg, #f0faf9 0%, #fff 100%);
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .2s, transform .15s;
  position: relative;
  overflow: hidden;
}
.featured-card:hover {
  box-shadow: var(--esa-shadow);
  transform: translateY(-2px);
}
.featured-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.featured-badge-siir {
  background: #fce4ec;
  color: #c62828;
}
.featured-badge-yazi {
  background: #e3f2fd;
  color: #1565c0;
}
.featured-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--esa-font);
  line-height: 1.35;
}
.featured-author {
  font-size: 13px;
  color: var(--esa-grey);
  display: block;
  margin-bottom: 8px;
}
.featured-excerpt {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-stats {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--esa-grey);
}
@media (max-width: 600px) {
  .featured-row { grid-template-columns: 1fr; }
}

/* Kompakt (sadece başlık) günün şiiri / haftanın yazısı kartı */
.featured-card-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}
.featured-card-compact .featured-badge { margin-bottom: 0; flex-shrink: 0; }
.featured-card-compact .featured-title {
  margin: 0; font-size: 1rem; font-weight: 600; flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── WhatsApp-style Chat ────────────────────────────────── */
.chat-container {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  height: calc(100vh - 160px);
  min-height: 560px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* ── Sol Panel: Konuşma listesi ────────────────────────── */
.chat-sidebar {
  width: 360px;
  min-width: 300px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  background: #f8fafa;
  border-bottom: 1px solid #e5e7eb;
}
.chat-sidebar-header h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
}
.chat-new-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--esa-primary);
  color: #fff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  transition: transform .15s, background .2s;
  box-shadow: 0 2px 6px rgba(43, 122, 119, 0.25);
}
.chat-new-btn:hover {
  background: var(--esa-primary-hover, #1e5452);
  transform: scale(1.05);
}
.chat-empty-sidebar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  gap: 12px;
  padding: 30px 20px;
  text-align: center;
}
.chat-conversation-list {
  flex: 1;
  overflow-y: auto;
}
.chat-conversation-list::-webkit-scrollbar { width: 6px; }
.chat-conversation-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
.chat-conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
  position: relative;
}
.chat-conv-item:hover { background: #f8fafa; }
.chat-conv-item.active {
  background: #eaf5f4;
  border-left-color: var(--esa-primary);
}
.chat-conv-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e5e7eb;
}
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
  gap: 8px;
}
.chat-conv-name {
  font-weight: 600;
  font-size: .94rem;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-conv-time {
  font-size: .72rem;
  color: #94a3b8;
  flex-shrink: 0;
  font-weight: 500;
}
.chat-conv-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.chat-conv-last {
  font-size: .83rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.chat-conv-badge {
  background: var(--esa-primary);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 0 6px;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(43, 122, 119, 0.3);
}

/* ── Sağ Panel: Sohbet detay ───────────────────────────── */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #efeae2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
  background-position: 0 0, 12px 16px;
}
.chat-main-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  background: #f8fafa;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  z-index: 1;
}
.chat-back-btn {
  display: none;
  font-size: 1.8rem;
  color: var(--esa-primary);
  text-decoration: none;
  line-height: 1;
  padding: 0 4px;
}
.chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #e5e7eb;
}
.chat-header-name {
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  font-size: .98rem;
  display: block;
}
.chat-header-name:hover { color: var(--esa-primary); }
.chat-header-status {
  font-size: .73rem;
  color: #94a3b8;
  display: block;
  margin-top: 2px;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 3px; }
.chat-empty-messages {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: .9rem;
}
.chat-date-divider {
  text-align: center;
  margin: 14px 0 8px;
}
.chat-date-divider span {
  background: rgba(255, 255, 255, 0.95);
  color: #6b7280;
  font-size: .73rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.chat-bubble {
  max-width: 65%;
  padding: 8px 12px 6px;
  border-radius: 8px;
  position: relative;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  animation: bubbleIn .2s ease-out;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-bubble-mine {
  align-self: flex-end;
  background: #d9fdd3;
  border-radius: 12px 2px 12px 12px;
}
.chat-bubble-theirs {
  align-self: flex-start;
  background: #fff;
  border-radius: 2px 12px 12px 12px;
}
.chat-bubble-text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.5;
  color: #1f2937;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-bubble-time {
  display: block;
  text-align: right;
  font-size: .68rem;
  color: #8696a0;
  margin-top: 4px;
  font-weight: 500;
}
.chat-bubble-status {
  margin-left: 4px;
  color: #53bdeb;
  font-weight: 600;
}

/* ── Compose ───────────────────────────────────────────── */
.chat-compose {
  padding: 14px 18px;
  background: #f0f2f5;
  border-top: 1px solid #e5e7eb;
}
.chat-compose-form {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chat-compose-input {
  flex: 1;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 24px;
  font-size: .94rem;
  outline: none;
  background: #fff;
  color: #1f2937;
  transition: box-shadow .15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.chat-compose-input::placeholder { color: #94a3b8; }
.chat-compose-input:focus {
  box-shadow: 0 0 0 2px rgba(43, 122, 119, 0.25);
}
.chat-compose-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--esa-primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, background .2s;
  box-shadow: 0 2px 6px rgba(43, 122, 119, 0.3);
  flex-shrink: 0;
}
.chat-compose-send:hover {
  background: var(--esa-primary-hover, #1e5452);
  transform: scale(1.05);
}
.chat-compose-send:active { transform: scale(0.95); }

/* ── No selection state ────────────────────────────────── */
.chat-no-selection {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 30px;
  background: #efeae2;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.4) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.3) 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
  background-position: 0 0, 12px 16px;
}
.chat-no-selection-icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}
.chat-no-selection-icon svg { width: 48px; height: 48px; color: var(--esa-primary); opacity: 0.6; }
.chat-no-selection-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #4b5563;
  margin: 0 0 6px;
}
.chat-no-selection-text {
  color: #94a3b8;
  font-size: .9rem;
  margin: 0;
}

/* ── Mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .chat-container { height: calc(100vh - 100px); min-height: 0; border-radius: 0; box-shadow: none; border: none; }
  .chat-sidebar { width: 100%; min-width: 0; }
  .chat-sidebar-hidden-mobile { display: none; }
  .chat-main-hidden-mobile { display: none; }
  .chat-main { width: 100%; }
  .chat-back-btn { display: block; }
  .chat-bubble { max-width: 80%; }
  .chat-messages { padding: 16px; }
}

/* ── Yeni Mesaj Modal ──────────────────────────────────── */
.chat-no-selection-btn {
  margin-top: 18px;
  padding: 10px 22px;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  background: var(--esa-primary);
  color: #fff;
  border-radius: 24px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(43, 122, 119, 0.25);
  transition: transform .15s, background .2s;
}
.chat-no-selection-btn:hover {
  background: var(--esa-primary-hover, #1e5452);
  transform: translateY(-1px);
}

.compose-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.compose-modal.open {
  display: flex;
  animation: modalFadeIn .2s ease-out;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.compose-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}
.compose-modal-panel {
  position: relative;
  background: #fff;
  width: 92%;
  max-width: 520px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: modalSlideIn .25s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.compose-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: #f8fafa;
}
.compose-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--esa-secondary-dark);
}
.compose-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.compose-modal-close:hover {
  background: #e5e7eb;
  color: #1f2937;
}
.compose-modal-form {
  padding: 22px;
}
.compose-modal-field {
  margin-bottom: 18px;
}
.compose-modal-field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.compose-modal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.compose-modal-at {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 500;
  pointer-events: none;
}
.compose-modal-input-wrap input {
  width: 100%;
  padding: 11px 14px 11px 32px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.compose-modal-input-wrap input:focus {
  border-color: var(--esa-primary);
  box-shadow: 0 0 0 3px rgba(43, 122, 119, 0.12);
}
.compose-modal-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: .95rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  min-height: 120px;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.compose-modal-field textarea:focus {
  border-color: var(--esa-primary);
  box-shadow: 0 0 0 3px rgba(43, 122, 119, 0.12);
}
.compose-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.btn-compose-cancel {
  padding: 10px 20px;
  background: #f3f4f6;
  color: #374151;
  border: none;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-compose-cancel:hover { background: #e5e7eb; }
.btn-compose-send {
  padding: 10px 22px;
  background: var(--esa-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 6px rgba(43, 122, 119, 0.25);
}
.btn-compose-send:hover {
  background: var(--esa-primary-hover, #1e5452);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .compose-modal-panel { width: 95%; max-width: none; border-radius: 14px; }
  .compose-modal-form { padding: 18px; }
  .compose-modal-header { padding: 14px 18px; }
}

/* ── Search Tabs ──────────────────────────────────────── */
.search-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--esa-border-passive);
  margin-bottom: 16px;
}
.search-tab {
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600; font-size: .9rem;
  color: var(--esa-grey);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}
.search-tab:hover { color: var(--esa-primary); }
.search-tab.active {
  color: var(--esa-primary);
  border-bottom-color: var(--esa-primary);
}

/* Üye arama sonuçları */
.search-user-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 20px;
  background: #fff; border: 1px solid var(--esa-border-passive);
  border-radius: 10px;
  text-decoration: none; color: inherit;
  transition: box-shadow .15s;
}
.search-user-item:hover { box-shadow: var(--esa-shadow-sm); }
.search-user-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.search-user-info { flex: 1; min-width: 0; }
.search-user-name {
  display: block; font-weight: 600; font-size: .95rem;
  color: var(--esa-font);
}
.search-user-username {
  display: block; font-size: .82rem; color: var(--esa-grey);
}

/* Kategori kartlari */
.kategori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    padding: 0.5rem 0;
}
.kategori-kart {
    display: block;
    padding: 1.2rem;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.kategori-kart:hover {
    border-color: var(--esa-primary, #2b7a77);
    box-shadow: 0 2px 8px rgba(43,122,119,.12);
}
.kategori-kart-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    color: var(--esa-primary, #2b7a77);
}
.kategori-kart-meta {
    font-size: 0.82rem;
    color: #6b7280;
    display: flex;
    gap: 0.8rem;
}
.section-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1rem;
    color: #1f2937;
}

/* Gelismis arama filtreleri */
.search-form { margin-bottom: 1.2rem; }
.search-main-row {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin-bottom: 1rem;
}
.search-input { flex: 1; }
.search-submit-btn { border: none; cursor: pointer; }
.search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 10px;
    margin-bottom: 1rem;
}
.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 160px;
    flex: 1;
}
.filter-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
}
.filter-group select,
.filter-group input[type="date"] {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    background: #fff;
}
