/* =============================================
   Selenga.ai — Kategori & İçerik Grid CSS
   assets/css/kategori.css
   ============================================= */

/* ─── Genel ─────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Tüm Kategoriler: Liste Hero ───────────── */
.liste-hero {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%);
  padding: 64px 20px 48px;
  text-align: center;
  color: #fff;
}

.liste-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
}

.liste-hero-desc {
  font-size: 1.125rem;
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* ─── Kategori Liste Grid ────────────────────── */
.kategori-liste-section {
  padding: 56px 0 80px;
}

.kategori-liste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.kategori-liste-kart {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  padding: 24px 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  position: relative;
  overflow: hidden;
}

.kategori-liste-kart::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--kart-color, #7c6fcd);
  border-radius: 16px 0 0 16px;
}

.kategori-liste-kart:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,.10);
  border-color: var(--kart-color, #7c6fcd);
}

.kat-icon {
  font-size: 2.5rem;
  line-height: 1;
  flex-shrink: 0;
  width: 56px;
  text-align: center;
}

.kat-info {
  flex: 1;
  min-width: 0;
}

.kat-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #1a1040;
}

.kat-desc {
  font-size: .875rem;
  color: #6b6b8a;
  margin: 0 0 8px;
  line-height: 1.4;
}

.kat-count {
  display: inline-block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--kart-color, #7c6fcd);
  background: color-mix(in srgb, var(--kart-color, #7c6fcd) 10%, transparent);
  padding: 2px 10px;
  border-radius: 20px;
}

.kat-arrow {
  font-size: 1.2rem;
  color: #bbb;
  flex-shrink: 0;
  transition: transform .2s, color .2s;
}

.kategori-liste-kart:hover .kat-arrow {
  transform: translateX(4px);
  color: var(--kart-color, #7c6fcd);
}

/* ─── Tek Kategori: Hero ─────────────────────── */
.kategori-hero {
  background: linear-gradient(135deg, #1a1040 0%, #2d1b69 100%);
  padding: 56px 20px 40px;
  color: #fff;
}

.kategori-hero-inner {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.kategori-icon-lg {
  font-size: 4rem;
  line-height: 1;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
  border-radius: 20px;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kategori-breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.kategori-breadcrumb a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .15s;
}

.kategori-breadcrumb a:hover {
  color: #fff;
}

.kategori-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.kategori-hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  margin: 0 0 14px;
  max-width: 560px;
  line-height: 1.6;
}

.kategori-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kategori-count {
  font-size: .875rem;
  font-weight: 600;
  background: rgba(255,255,255,.15);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
}

/* ─── İçerik Grid ────────────────────────────── */
.icerik-grid-section {
  padding: 52px 0 80px;
}

.icerik-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ─── Kart ───────────────────────────────────── */
.icerik-kart {
  background: #fff;
  border: 1px solid #ede8f5;
  border-radius: 16px;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.icerik-kart:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(100,72,200,.12);
}

.icerik-kart--premium {
  border-color: #f0e6a0;
}

.kart-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Thumbnail */
.kart-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f0ecfc;
}

.kart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.icerik-kart:hover .kart-thumb img {
  transform: scale(1.04);
}

.kart-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #f0ecfc 0%, #e8e0f8 100%);
}

.kart-premium-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #f5d020, #f6a81c);
  color: #3a2a00;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(245,208,32,.4);
}

/* Kart Gövde */
.kart-body {
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kart-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1040;
  margin: 0 0 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kart-excerpt {
  font-size: .875rem;
  color: #6b6b8a;
  line-height: 1.55;
  margin: 0 0 auto;
  padding-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.kart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f0ecfc;
  padding-top: 12px;
  margin-top: 12px;
}

.kart-readtime {
  font-size: .8rem;
  color: #9090b0;
}

.kart-arrow {
  font-size: 1rem;
  color: #c0b8e0;
  transition: transform .2s, color .2s;
}

.icerik-kart:hover .kart-arrow {
  transform: translateX(4px);
  color: #7c6fcd;
}

/* ─── Sayfalama ──────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 52px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #ede8f5;
  color: #4a3f7a;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
}

.pagination-btn:hover {
  background: #f0ecfc;
  border-color: #7c6fcd;
  color: #7c6fcd;
}

.pagination-btn--active {
  background: #7c6fcd;
  border-color: #7c6fcd;
  color: #fff;
}

/* ─── Boş Durum ──────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #6b6b8a;
}

.empty-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.empty-state h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: #1a1040;
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0 0 24px;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .kategori-hero-inner {
    flex-direction: column;
    gap: 16px;
  }

  .kategori-icon-lg {
    width: 64px;
    height: 64px;
    font-size: 2.5rem;
    border-radius: 14px;
  }

  .icerik-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }

  .kategori-liste-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .icerik-grid {
    grid-template-columns: 1fr;
  }

  .liste-hero,
  .kategori-hero {
    padding: 40px 16px 28px;
  }
}
