/* =====================================================
   HABERLER SAYFASI — Modern Editorial
===================================================== */

/* ===== HERO ===== */
.hb-hero {
  background:
    radial-gradient(circle at top left, rgba(117, 0, 1, 0.08), transparent 30%),
    linear-gradient(180deg, #fff 0%, #fbf8f8 100%);
  border-bottom: 1px solid #ebe1de;
  padding: 2.75rem 0 0;
}

.hb-breadcrumb {
  margin-bottom: 1.5rem;
}
.hb-breadcrumb .breadcrumb-item a {
  color: #4b5563;
  text-decoration: none;
  font-weight: 500;
}
.hb-breadcrumb .breadcrumb-item a:hover { color: #111; }
.hb-breadcrumb .breadcrumb-item.active { color: #6b7280; }
.hb-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: #9ca3af; }

.hb-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.hb-hero-left {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.hb-hero-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, #750001 0%, #5a0001 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 14px 28px rgba(117,0,1,0.18);
}

.hb-hero-icon i {
  color: #fff;
  font-size: 1.5rem;
}

.hb-hero-title {
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: #1f1716;
  letter-spacing: -0.03em;
  margin: 0 0 0.3rem 0;
  line-height: 1.02;
}

.hb-hero-desc {
  color: #6d5e5b;
  font-size: 1rem;
  line-height: 1.72;
  margin: 0;
  max-width: 62ch;
}

/* Stats */
.hb-stats-row {
  display: flex;
  gap: 1rem;
  flex-shrink: 0;
}

.hb-stat {
  background: linear-gradient(180deg, #fff 0%, #fdf9f9 100%);
  border: 1px solid #eadfdb;
  border-radius: 18px;
  padding: 1rem 1.3rem;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 10px 20px rgba(35, 24, 22, 0.05);
}

.hb-stat-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: #750001;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hb-stat-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b7280;
}

/* Category bar */
.hb-cat-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.1rem 0 0.15rem;
  border-top: 1px solid #efe5e2;
  overflow-x: auto;
  scrollbar-width: none;
}
.hb-cat-bar::-webkit-scrollbar { display: none; }

.hb-cat-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.83rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s ease;
  gap: 2px;
}

.hb-cat-tab:hover {
  border-color: #d1d5db;
  color: #1a1a1a;
  background: #f9fafb;
}

.hb-cat-tab.active {
  background: #fff0e8;
  border-color: rgba(117,0,1,0.25);
  color: #750001;
}

.hb-cat-tab.hb-cat-guide.active {
  background: #edf2ea;
  border-color: rgba(95,113,71,0.3);
  color: #5f7147;
}

.hb-cat-tab.hb-cat-ministry.active {
  background: #ebeef5;
  border-color: rgba(87,102,136,0.3);
  color: #576688;
}

.hb-cat-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.7rem;
  font-weight: 800;
  margin-left: 5px;
}

.hb-cat-tab.active .hb-cat-tab-count {
  background: rgba(117,0,1,0.12);
  color: #750001;
}

.hb-cat-tab.hb-cat-guide.active .hb-cat-tab-count { background: rgba(95,113,71,0.14); color: #5f7147; }
.hb-cat-tab.hb-cat-ministry.active .hb-cat-tab-count { background: rgba(87,102,136,0.14); color: #576688; }

/* Search */
.hb-search-form {
  padding: 1rem 0 1.5rem;
}

.hb-search-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1.5px solid #e5ddda;
  border-radius: 16px;
  padding: 0 0.75rem 0 1rem;
  gap: 0.5rem;
  max-width: 600px;
  box-shadow: 0 10px 22px rgba(26, 16, 15, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hb-search-wrap:focus-within {
  border-color: rgba(117,0,1,0.35);
  box-shadow: 0 14px 28px rgba(117,0,1,0.08);
}

.hb-search-icon { color: #9ca3af; font-size: 1rem; flex-shrink: 0; }

.hb-search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.65rem 0;
  font-size: 0.92rem;
  color: #1a1a1a;
  background: transparent;
  min-width: 0;
}

.hb-search-input::placeholder { color: #9ca3af; }

.hb-search-clear {
  color: #9ca3af;
  font-size: 1rem;
  flex-shrink: 0;
  text-decoration: none;
}
.hb-search-clear:hover { color: #4b5563; }

.hb-search-btn {
  flex-shrink: 0;
  background: #750001;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 0.45rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.hb-search-btn:hover { background: #5a0001; }

/* ===== CONTENT LAYOUT ===== */
.hb-content {
  background: linear-gradient(180deg, #f7f4f4 0%, #f4f1f1 100%);
  padding: 2.6rem 0;
}

.hb-layout {
  display: block;
}

/* Filter info */
.hb-filter-info {
  background: linear-gradient(180deg, #fff 0%, #fcf8f8 100%);
  border: 1px solid #eadfdb;
  border-radius: 14px;
  padding: 0.8rem 1rem;
  color: #4b5563;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.hb-filter-info strong { color: #1a1a1a; }

/* ===== CARDS GRID ===== */
.hb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}

.hb-card {
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top right, rgba(117,0,1,0.05), transparent 32%),
    linear-gradient(180deg, #fff 0%, #fcfbfb 100%);
  border: 1px solid rgba(219, 206, 201, 0.85);
  border-radius: 22px;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 12px 24px rgba(29, 21, 19, 0.05);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s;
}

.hb-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 36px rgba(29,21,19,0.09);
  border-color: rgba(117,0,1,0.18);
}

/* Card top: category badge + date */
.hb-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hb-card-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.hb-card-cat-badge.hb-cat-news { background: #fff0e8; color: #750001; }
.hb-card-cat-badge.hb-cat-guide { background: #edf2ea; color: #5f7147; }
.hb-card-cat-badge.hb-cat-ministry { background: #ebeef5; color: #576688; }

.hb-card-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  white-space: nowrap;
}

/* Card title */
.hb-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 0.55rem 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card excerpt */
.hb-card-excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6b7280;
  margin: 0 0 0.9rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card meta: author + readmore */
.hb-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #efe5e2;
  margin-top: auto;
}

.hb-card-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex: 1;
}

.hb-card-author-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hb-author-government .hb-card-author-icon,
.hb-card-author-icon.hb-author-government { background: #3d524f; }
.hb-author-veterinarian .hb-card-author-icon,
.hb-card-author-icon.hb-author-veterinarian { background: #5b6b7a; }
.hb-author-expert .hb-card-author-icon,
.hb-card-author-icon.hb-author-expert { background: #4b5563; }

/* Apply icon color to the parent's icon div */
.hb-author-government { }
.hb-card-author-icon i { color: #fff; font-size: 0.9rem; }

.hb-card-author-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hb-card-author-type {
  font-size: 0.67rem;
  font-weight: 800;
  color: #9ca3af;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.2;
}

.hb-card-author-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hb-card-readmore {
  font-size: 0.8rem;
  font-weight: 800;
  color: #750001;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Empty state */
.hb-empty {
  background: linear-gradient(180deg, #fff 0%, #fcf8f8 100%);
  border: 1px solid #eadfdb;
  border-radius: 18px;
  padding: 3rem 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
}
.hb-empty i {
  font-size: 2.5rem;
  color: #d1d5db;
  display: block;
  margin-bottom: 1rem;
}

/* ===== PAGINATION ===== */
.hb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hb-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.hb-page-btn:hover { border-color: #750001; color: #750001; background: #fff0e8; }
.hb-page-btn.disabled { color: #9ca3af; cursor: default; pointer-events: none; }

.hb-page-nums { display: flex; gap: 0.3rem; }

.hb-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
}

.hb-page-num:hover { border-color: #750001; color: #750001; }
.hb-page-num.active { background: #750001; border-color: #750001; color: #fff; }
.hb-page-num.disabled { color: #9ca3af; cursor: default; pointer-events: none; border-color: transparent; background: transparent; }

/* ===== RESPONSIVE ===== */
@media (max-width: 991.98px) {
  .hb-layout {
    grid-template-columns: 1fr;
  }
  .hb-sidebar {
    display: none; /* Kategori bar zaten var */
  }
  .hb-hero {
    padding-top: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .hb-hero-inner {
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
  .hb-stats-row {
    width: 100%;
  }
  .hb-stat {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 0.9rem;
  }
  .hb-stat-num { font-size: 1.35rem; }
  .hb-grid {
    grid-template-columns: 1fr;
  }
  .hb-card { padding: 1.1rem; }
  .hb-card-title { font-size: 1.08rem; line-height: 1.3; }
  .hb-cat-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding: 0.85rem 0 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .hb-cat-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    gap: 3px;
  }
  .hb-cat-tab-count { display: none; }
  .hb-search-form { padding: 0.85rem 0 1.25rem; }
  .hb-search-wrap { max-width: none; padding: 0 0.4rem 0 0.85rem; border-radius: 14px; }
  .hb-search-input { font-size: 16px; padding: 0.72rem 0; }
  .hb-search-btn { padding: 0.5rem 0.9rem; font-size: 0.82rem; border-radius: 10px; }
  .hb-content { padding: 1.5rem 0; }
}

@media (max-width: 575.98px) {
  .hb-hero-title { font-size: 1.4rem; }
  .hb-hero-desc { font-size: 0.88rem; }
  .hb-hero-icon { width: 44px; height: 44px; border-radius: 12px; }
  .hb-hero-icon i { font-size: 1.15rem; }
  .hb-card-meta { flex-wrap: wrap; gap: 0.6rem; }
  .hb-card-readmore { width: 100%; text-align: right; }
  .hb-pagination { gap: 0.35rem; }
  .hb-page-nums { gap: 0.2rem; }
  .hb-page-num { min-width: 32px; height: 32px; font-size: 0.8rem; }
}
