/* 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);
}
.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); }
.content-body p { margin: 0 0 1rem; }

/* 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 { background: var(--esa-white); border-radius: 12px; box-shadow: var(--esa-shadow); padding: 24px; }
.comments-section h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 16px; color: var(--esa-secondary-dark); border-bottom: 1px solid var(--esa-border-passive); padding-bottom: 12px; }
.comment-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--esa-border-passive); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--esa-primary-light); flex-shrink: 0; }
.comment-body .comment-author { font-size: 13px; font-weight: 600; color: var(--esa-secondary-dark); }
.comment-body .comment-date { font-size: 12px; color: var(--esa-grey); margin-left: 8px; }
.comment-body .comment-text { font-size: 14px; color: var(--esa-font); margin-top: 4px; line-height: 1.5; }
.comment-form { margin-top: 20px; }
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--esa-border-passive);
  border-radius: 8px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}
.comment-form textarea:focus { outline: none; border-color: var(--esa-primary); }
.comment-form .btn-comment { margin-top: 8px; padding: 8px 20px; background: var(--esa-primary); color: var(--esa-white); border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.comment-form .btn-comment:hover { background: var(--esa-primary-hover); }

/* ── 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; }

/* ── 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-inner { height: auto; padding: 12px 16px; gap: 12px; }
  .main-wrap { padding: 16px; gap: 16px; }
  .auth-wrap { margin: 16px; padding: 24px 20px; }
  .writer-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: 1fr; }
}

/* Profil: kategoriye göre eserler */
.profile-cat-group { overflow: hidden; }
.profile-cat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; cursor: pointer;
  border-bottom: 1px solid var(--esa-border-passive);
  transition: background .15s;
}
.profile-cat-header:hover { background: #f8fafa; }
.profile-cat-name { font-weight: 600; font-size: 15px; color: var(--esa-secondary-dark); flex: 1; }
.profile-cat-meta { font-size: 13px; color: var(--esa-grey); 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 #f0f0f0;
}
.profile-post-row:last-child { border-bottom: none; }
.profile-post-title {
  font-size: 14px; color: var(--esa-secondary-dark); text-decoration: none;
  flex: 1; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.profile-post-title:hover { color: var(--esa-primary); }
.profile-post-date { font-size: 12px; color: var(--esa-grey); flex-shrink: 0; margin-left: 12px; }

/* İç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; }
}

/* ── WhatsApp-style Chat ────────────────────────────────── */
.chat-container {
  display: flex;
  border: 1px solid var(--esa-border-passive);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: calc(100vh - 140px);
  min-height: 500px;
}
.chat-sidebar {
  width: 340px;
  min-width: 280px;
  border-right: 1px solid var(--esa-border-passive);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--esa-border-passive);
}
.chat-sidebar-header h2 { margin: 0; font-size: 1.15rem; }
.chat-new-btn {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--esa-primary); color: #fff;
  text-decoration: none; font-size: 1.4rem; font-weight: 700;
  transition: background .2s;
}
.chat-new-btn:hover { background: var(--esa-primary-hover); }
.chat-empty-sidebar {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #888; gap: 10px; padding: 20px;
}
.chat-conversation-list { flex: 1; overflow-y: auto; }
.chat-conv-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  text-decoration: none; color: inherit;
  border-bottom: 1px solid #f3f3f3;
  transition: background .15s;
}
.chat-conv-item:hover { background: #f8faf9; }
.chat-conv-item.active { background: var(--esa-primary-light); }
.chat-conv-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.chat-conv-info { flex: 1; min-width: 0; }
.chat-conv-top {
  display: flex; justify-content: space-between;
  align-items: baseline; margin-bottom: 2px;
}
.chat-conv-name {
  font-weight: 600; font-size: .9rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-conv-time { font-size: .75rem; color: var(--esa-grey); flex-shrink: 0; }
.chat-conv-bottom {
  display: flex; align-items: center; justify-content: space-between;
}
.chat-conv-last {
  font-size: .82rem; color: #777;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-conv-badge {
  background: var(--esa-primary); color: #fff;
  font-size: .7rem; font-weight: 700;
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50px; padding: 0 6px; flex-shrink: 0;
}

/* Sağ panel */
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  background: #e5ddd5;
}
.chat-main-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  background: #ededed; border-bottom: 1px solid #ddd;
}
.chat-back-btn {
  display: none; font-size: 1.6rem; color: var(--esa-primary);
  text-decoration: none; line-height: 1;
}
.chat-header-avatar {
  width: 40px; height: 40px; border-radius: 50%; object-fit: cover;
}
.chat-header-name {
  font-weight: 600; color: inherit; text-decoration: none;
  font-size: .95rem;
}
.chat-header-name:hover { text-decoration: underline; }
.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 4px;
}
.chat-empty-messages {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: #999; font-size: .9rem;
}
.chat-date-divider {
  text-align: center; margin: 12px 0;
}
.chat-date-divider span {
  background: rgba(225,218,208,.9); color: #555;
  font-size: .75rem; padding: 4px 14px;
  border-radius: 8px;
}
.chat-bubble {
  max-width: 70%; padding: 7px 12px; border-radius: 8px;
  position: relative; word-wrap: break-word;
}
.chat-bubble-mine {
  align-self: flex-end;
  background: #dcf8c6;
  border-radius: 8px 0 8px 8px;
}
.chat-bubble-theirs {
  align-self: flex-start;
  background: #fff;
  border-radius: 0 8px 8px 8px;
}
.chat-bubble-text { margin: 0; font-size: .9rem; line-height: 1.45; color: #303030; }
.chat-bubble-time {
  display: block; text-align: right;
  font-size: .7rem; color: #999; margin-top: 2px;
}
.chat-bubble-status { margin-left: 3px; }

/* Compose */
.chat-compose {
  padding: 10px 14px; background: #f0f0f0;
  border-top: 1px solid #ddd;
}
.chat-compose-form { display: flex; gap: 8px; }
.chat-compose-input {
  flex: 1; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 24px;
  font-size: .9rem; outline: none;
  background: #fff;
}
.chat-compose-input:focus { border-color: var(--esa-primary); }
.chat-compose-send {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--esa-primary); color: #fff;
  border: none; font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.chat-compose-send:hover { background: var(--esa-primary-hover); }

.chat-no-selection {
  flex: 1; display: flex; align-items: center; justify-content: center;
  text-align: center;
}

/* Mobile */
@media (max-width: 768px) {
  .chat-container { height: calc(100vh - 120px); }
  .chat-sidebar { width: 100%; }
  .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: 85%; }
}

/* ── 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);
}
