/* ==========================================================================
   tuncsoyer.com.tr — ORTAK TASARIM STANDARDI (tüm sayfalarda yüklenir)
   Renkler: --ts-base (sarı #FFC13E), --ts-black (#222), --ts-gray (#777), açık zemin #F7F5EF
   Yeni bileşen eklerken önce buradakileri kullan; sayfaya özel renk/inline stil ekleme.
   ========================================================================== */
:root {
  --ts-soft: #F7F5EF;      /* açık bölüm zemini */
  --ts-line: rgba(34, 34, 34, .1);
  --ts-radius: 20px;
  --ts-radius-sm: 12px;
}

/* ---- Sayfa başlığı (page-header) ---- */
.page-header__text {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ts-gray);
}

.page-header__meta {
  margin-top: 16px;
}

/* Eski mavi başlık sınıfı artık standart görünümde */
.page-header.blue-header { background-color: #f4f4f4; }
.page-header.blue-header h2,
.page-header.blue-header li,
.page-header.blue-header li a { color: inherit; }

/* ---- Butonlar ---- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 2px solid var(--ts-base);
  background: var(--ts-base);
  color: var(--ts-black);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .3s ease;
}

.ts-btn:hover,
.ts-btn:focus-visible {
  background: var(--ts-black);
  border-color: var(--ts-black);
  color: #fff;
}

.ts-btn--dark {
  background: var(--ts-black);
  border-color: var(--ts-black);
  color: #fff;
}

.ts-btn--dark:hover,
.ts-btn--dark:focus-visible {
  background: var(--ts-base);
  border-color: var(--ts-base);
  color: var(--ts-black);
}

.ts-btn--ghost {
  background: transparent;
  border-color: var(--ts-line);
  color: var(--ts-black);
}

.ts-btn i { font-size: 13px; }

/* ---- Durum etiketleri (icraat) ---- */
.ts-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--ts-black);
  color: #fff;
}

.ts-chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.ts-chip--done    { background: var(--ts-base); color: var(--ts-black); }
.ts-chip--partial { background: #fff; color: var(--ts-black); box-shadow: inset 0 0 0 2px var(--ts-base); }
.ts-chip--failed  { background: #e9e9e6; color: #555; }
.ts-chip--extra   { background: var(--ts-black); color: var(--ts-base); }

/* Kart üzerinde (görselin köşesinde) */
.ts-chip--on-card {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
}

/* ---- Belge / PDF bağlantısı ---- */
.ts-doc-link {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 10px 0 40px;
  padding: 18px 22px;
  border-radius: var(--ts-radius-sm);
  background: var(--ts-soft);
  color: var(--ts-black);
  font-weight: 600;
  text-decoration: none;
  transition: background .3s ease;
}

.ts-doc-link > i:first-child {
  flex: 0 0 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ts-black);
  color: var(--ts-base);
  font-size: 18px;
}

.ts-doc-link > i:last-child {
  margin-left: auto;
  transition: transform .3s ease;
}

.ts-doc-link:hover {
  background: var(--ts-base);
  color: var(--ts-black);
}

.ts-doc-link:hover > i:last-child { transform: translateX(4px); }

/* ---- Bölüm başlığı (ana sayfa vb.) ---- */
.ts-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.ts-section-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ts-gray);
}

.ts-section-head__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--ts-base);
}

.ts-section-head__title {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ts-black);
}

@media (prefers-reduced-motion: reduce) {
  .ts-btn, .ts-doc-link, .ts-doc-link > i:last-child { transition: none; }
}

/* ---- Sayfa gövdesi / panelden gelen içerik ---- */
.ts-page-section {
  padding: 70px 0 100px;
}

.ts-prose {
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.85;
  color: #444;
}

.ts-prose h2, .ts-prose h3, .ts-prose h4 {
  margin: 1.6em 0 .6em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ts-black);
}

.ts-prose > :first-child { margin-top: 0; }
.ts-prose p { margin: 0 0 1.2em; }
.ts-prose a {
  color: var(--ts-black);
  text-decoration: underline;
  text-decoration-color: var(--ts-base);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ts-prose img { max-width: 100%; height: auto; }

.ts-full-img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 30px;
  border-radius: var(--ts-radius-sm);
}

@media (max-width: 575px) {
  .ts-page-section { padding: 50px 0 70px; }
  .ts-prose { font-size: 16px; }
}

/* ---- Gömülü PDF (masaüstünde göster, mobilde sadece bağlantı) ---- */
.ts-pdf-frame {
  display: block;
  width: 100%;
  height: 800px;
  border: 0;
  border-radius: var(--ts-radius-sm);
  background: var(--ts-soft);
}

@media (max-width: 768px) {
  .ts-pdf-frame { display: none; }
}

.ts-mt-30 { margin-top: 30px; }

/* ---- Kart (haber / günlük / liste) — ana sayfa haberleri, Cezaevi Günlükleri, Kentsel Dönüşüm ---- */
.ts-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--ts-radius);
  background: #fff;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(34, 34, 34, .04);
  transition: transform .35s ease, box-shadow .35s ease;
}

.ts-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px -24px rgba(34, 34, 34, .35);
}

.ts-card__img {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin: 0;
  border-radius: 0;
}

.ts-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.ts-card:hover .ts-card__img img {
  transform: scale(1.05);
}

.ts-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.ts-card__title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.ts-card__title a {
  color: var(--ts-black);
}

.ts-card__title a:hover {
  color: var(--ts-black);
  text-decoration: underline;
  text-decoration-color: var(--ts-base);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.ts-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-black);
}

.ts-card__more i {
  font-size: 12px;
  transition: transform .25s ease;
}

.ts-card:hover .ts-card__more i {
  transform: translateX(4px);
}

.ts-card__text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ts-gray);
}

@media (prefers-reduced-motion: reduce) {
  .ts-card, .ts-card__img img, .ts-card__more i { transition: none; }
}

.ts-page-section--soft { background: var(--ts-soft); }

.ts-empty { padding: 60px 0; text-align: center; color: var(--ts-gray); }
