/**
 * GESF Web Sitesi – okunabilirlik ve admin duyurular tablosu iyileştirmeleri
 *
 * NOT: Genel #root h1/h2/h3 override yapılmaz — ana sayfa header/logo kırılır.
 * Font büyütme yalnızca içerik alanları + admin paneline uygulanır.
 */

/* ── Genel site: hafif okunabilirlik (header/logo’ya dokunma) ── */
html {
  font-size: 16px;
}

/* Haber/duyuru içerik metinleri */
.article-content,
.article-content p,
.article-content li,
.news-detail-page .article-content,
.news-card .news-card-summary,
.announcements-list .announcement-item,
.search-results .result-item {
  font-size: 1.05rem;
  line-height: 1.7;
}

.article-content h2,
.news-detail-page .article-title {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.35;
}

.article-content h3 {
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
}

/* ── Admin panel genel ── */
.admin-dashboard,
.announcements-list-container,
.create-announcement-container {
  font-size: 1.05rem;
}

.admin-dashboard .header-title h1,
.announcements-list-container .header-title h1,
.announcements-list-container .card-title,
.create-announcement-header h1 {
  font-size: clamp(1.35rem, 2vw, 1.75rem) !important;
  font-weight: 800 !important;
}

.admin-dashboard .content-area,
.announcements-list-container .content-area {
  max-width: 1680px !important;
  padding: 28px 32px !important;
}

.admin-dashboard .records-card,
.announcements-list-container .records-card {
  padding: 28px 32px !important;
}

.announcements-list-container .ann-filter-input,
.announcements-list-container .ann-filter-select {
  font-size: 1rem !important;
  padding: 12px 14px !important;
  font-weight: 600 !important;
}

.announcements-list-container .ann-filter-count {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  margin-bottom: 12px !important;
}

/*
 * Duyurular / Haberler listesi tablosu
 * Sayfa kökü: .announcements-list-container (admin-dashboard değil)
 * Bundle'daki genel .records-table td { ellipsis; max-width:160px } kuralını ezer.
 */
.announcements-list-container .records-card .table-container {
  margin-top: 16px !important;
  overflow-x: auto !important;
}

.announcements-list-container .records-table {
  table-layout: fixed !important;
  width: 100% !important;
  font-size: 1.05rem !important;
  min-width: 900px !important;
}

.announcements-list-container .records-table thead {
  background: linear-gradient(135deg, #1e293b, #334155) !important;
}

.announcements-list-container .records-table th {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  padding: 16px 14px !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table td {
  font-size: 1.05rem !important;
  padding: 16px 14px !important;
  vertical-align: middle !important;
  color: #1e293b !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: unset !important;
  max-width: none !important;
}

/* Sütun genişlikleri: Başlık geniş, diğerleri dar */
.announcements-list-container .records-table th:nth-child(1),
.announcements-list-container .records-table td:nth-child(1) {
  width: 5% !important;
  font-weight: 700 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table th:nth-child(2),
.announcements-list-container .records-table td:nth-child(2),
.announcements-list-container .records-table td.title-cell {
  width: 48% !important;
}

.announcements-list-container .records-table th:nth-child(3),
.announcements-list-container .records-table td:nth-child(3) {
  width: 10% !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table th:nth-child(4),
.announcements-list-container .records-table td:nth-child(4) {
  width: 9% !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table th:nth-child(5),
.announcements-list-container .records-table td:nth-child(5) {
  width: 12% !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table th:nth-child(6),
.announcements-list-container .records-table td:nth-child(6) {
  width: 16% !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.announcements-list-container .records-table .title-cell,
.announcements-list-container .records-table td.title-cell {
  max-width: none !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.45 !important;
}

.announcements-list-container .records-table .category-cell,
.announcements-list-container .records-table .featured-cell {
  font-size: 0.98rem !important;
  font-weight: 700 !important;
}

.announcements-list-container .records-table tbody tr:hover {
  background: #eff6ff !important;
}

.announcements-list-container .btn-edit,
.announcements-list-container .btn-delete {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  padding: 8px 14px !important;
}

.announcements-list-container .record-card-title {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

/* Haber/duyuru formu okunabilirliği */
.announcement-form label {
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

.announcement-form input[type="text"],
.announcement-form input[type="datetime-local"],
.announcement-form select,
.announcement-form textarea {
  font-size: 1.05rem !important;
}

.announcement-form .char-count,
.announcement-form small {
  font-size: 0.95rem !important;
}

/* Görsel kütüphanesi butonları */
.gesf-media-lib-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
}

.gesf-media-lib-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 2px solid #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.gesf-media-lib-btn:hover {
  background: #dbeafe;
}

.gesf-media-lib-btn.secondary {
  border-color: #64748b;
  background: #f8fafc;
  color: #334155;
}

.gesf-media-lib-btn.secondary:hover {
  background: #e2e8f0;
}

@media (max-width: 900px) {
  .admin-dashboard .content-area,
  .announcements-list-container .content-area {
    padding: 16px !important;
  }

  .announcements-list-container .records-table {
    min-width: 720px !important;
  }
}
