/*
 * Hafta Sonu Etkinlikleri yazısı (pressgpt_source = pressgpt_etkinlik_ozeti).
 * Yalnız bu yazılarda yüklenir; temadan bağımsızdır (Thema, Akış, Prime, Apex…).
 *
 * Özgüllük: temalar yazı gövdesini `.single-page .entry-content p` (0,2,1)
 * gibi kurallarla biçimler (iki yana yaslama, liste girintisi, başlık boşluğu,
 * bağlantı rengi). Her kural `body.pgeo-post` + öğe adıyla yazılır ki bunların
 * üstüne çıksın; `!important` gerekmez. Sınıf `EtkinlikOzeti\Module::bodyClass()`.
 *
 * Renk: vurgu temanın değişkeninden (Thema --pressgpt-color-accent, Akış
 * --akis-accent); çizgi ve zeminler metin renginden (currentColor) türetilir —
 * açık/koyu modda ayrı kural gerekmez. color-mix olmayan tarayıcı rgba yedeğini kullanır.
 */

body.pgeo-post {
  --pgeo-accent: var(--pressgpt-color-accent, var(--akis-accent, #e11d48));
  --pgeo-radius: 14px;
}

body.pgeo-post .pgeo {
  --pgeo-line: rgba(127, 127, 127, 0.25);
  --pgeo-line: color-mix(in srgb, currentColor 14%, transparent);
  --pgeo-soft: rgba(127, 127, 127, 0.07);
  --pgeo-soft: color-mix(in srgb, currentColor 5%, transparent);
  --pgeo-muted: rgba(127, 127, 127, 0.95);
  --pgeo-muted: color-mix(in srgb, currentColor 68%, transparent);
  --pgeo-accent-soft: rgba(225, 29, 72, 0.12);
  --pgeo-accent-soft: color-mix(in srgb, var(--pgeo-accent) 14%, transparent);
  box-sizing: border-box;
}

body.pgeo-post .pgeo *,
body.pgeo-post .pgeo *::before,
body.pgeo-post .pgeo *::after {
  box-sizing: border-box;
}

/* Tema gövde kurallarının sıfırlanması (yalnız bizim kapsayıcıların içinde). */
body.pgeo-post .pgeo p,
body.pgeo-post .pgeo h2,
body.pgeo-post .pgeo h3 {
  margin: 0;
  text-align: left;
  letter-spacing: normal;
}

body.pgeo-post .pgeo ul,
body.pgeo-post ul.pgeo {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.pgeo-post .pgeo li {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

body.pgeo-post .pgeo li::before,
body.pgeo-post .pgeo li::marker {
  content: none;
}

body.pgeo-post .pgeo a {
  color: inherit;
  text-decoration: none;
  border-bottom: 0;
  box-shadow: none;
  background-image: none;
}

/* ─── Rakam şeridi ──────────────────────────────────────────────────────── */
body.pgeo-post ul.pgeo-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 1.6em 0;
}

body.pgeo-post .pgeo-stats li.pgeo-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 14px 16px;
  background: var(--pgeo-soft);
  border: 1px solid var(--pgeo-line);
  border-radius: var(--pgeo-radius);
}

body.pgeo-post .pgeo-stats li.pgeo-stat:first-child {
  border-color: var(--pgeo-accent);
  background: var(--pgeo-accent-soft);
}

body.pgeo-post .pgeo-stats .pgeo-stat-num {
  font-size: 1.9em;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

body.pgeo-post .pgeo-stats .pgeo-stat-label {
  font-size: 0.85em;
  line-height: 1.3;
  color: var(--pgeo-muted);
}

/* ─── Bölüm başlıkları (core/heading) ──────────────────────────────────── */
body.pgeo-post h2.wp-block-heading.pgeo-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.8em 0 0.9em;
}

body.pgeo-post h2.wp-block-heading.pgeo-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(127, 127, 127, 0.25);
  background: color-mix(in srgb, currentColor 14%, transparent);
}

/* ─── Gün kartları ─────────────────────────────────────────────────────── */
body.pgeo-post section.pgeo-day {
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid var(--pgeo-line);
  border-radius: var(--pgeo-radius);
}

body.pgeo-post .pgeo-day h3.pgeo-day-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 12px 18px;
  font-size: 1.05em;
  line-height: 1.3;
  background: var(--pgeo-soft);
  border-bottom: 1px solid var(--pgeo-line);
  box-shadow: inset 4px 0 0 var(--pgeo-accent);
}

body.pgeo-post .pgeo-day .pgeo-day-name {
  font-weight: 800;
}

body.pgeo-post .pgeo-day .pgeo-day-date {
  font-weight: 500;
  color: var(--pgeo-muted);
}

body.pgeo-post .pgeo-day .pgeo-day-count {
  margin-left: auto;
  padding: 2px 10px;
  font-size: 0.76em;
  font-weight: 600;
  color: var(--pgeo-muted);
  border: 1px solid var(--pgeo-line);
  border-radius: 999px;
}

body.pgeo-post .pgeo-day li.pgeo-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 18px;
  border-top: 1px solid var(--pgeo-line);
}

body.pgeo-post .pgeo-day li.pgeo-item:first-child {
  border-top: 0;
}

body.pgeo-post .pgeo-day .pgeo-time {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 4px;
  min-width: 64px;
}

body.pgeo-post .pgeo-day .pgeo-time span {
  display: block;
  padding: 5px 8px;
  font-size: 0.92em;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  text-align: center;
  background: var(--pgeo-accent-soft);
  border-radius: 8px;
}

body.pgeo-post .pgeo-day .pgeo-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding-top: 2px;
}

body.pgeo-post .pgeo-day .pgeo-title {
  font-weight: 700;
  font-size: 1.02em;
  line-height: 1.35;
}

body.pgeo-post .pgeo-day a.pgeo-title:hover,
body.pgeo-post .pgeo-day a.pgeo-title:focus-visible {
  color: var(--pgeo-accent);
  text-decoration: underline;
}

body.pgeo-post .pgeo-day .pgeo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.pgeo-post .pgeo-day .pgeo-tag {
  padding: 1px 9px;
  font-size: 0.76em;
  font-weight: 600;
  line-height: 1.6;
  color: var(--pgeo-muted);
  border: 1px solid var(--pgeo-line);
  border-radius: 999px;
}

body.pgeo-post .pgeo-day .pgeo-item--kids .pgeo-tag:last-child {
  color: inherit;
  border-color: var(--pgeo-accent);
  background: var(--pgeo-accent-soft);
}

/* ─── Öne çıkanlar ─────────────────────────────────────────────────────── */
body.pgeo-post div.pgeo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0 0 1.6em;
}

body.pgeo-post .pgeo-cards article.pgeo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pgeo-soft);
  border: 1px solid var(--pgeo-line);
  border-radius: var(--pgeo-radius);
}

body.pgeo-post .pgeo-cards .pgeo-card-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--pgeo-line);
}

body.pgeo-post .pgeo-cards .pgeo-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.35s ease;
}

body.pgeo-post .pgeo-cards .pgeo-card:hover .pgeo-card-media img {
  transform: scale(1.04);
}

body.pgeo-post .pgeo-cards .pgeo-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
}

body.pgeo-post .pgeo-cards .pgeo-card--text .pgeo-card-body {
  box-shadow: inset 0 4px 0 var(--pgeo-accent);
  padding-top: 18px;
}

body.pgeo-post .pgeo-cards p.pgeo-card-meta {
  font-size: 0.74em;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pgeo-muted);
}

body.pgeo-post .pgeo-cards h3.pgeo-card-title {
  font-size: 1.08em;
  line-height: 1.3;
}

body.pgeo-post .pgeo-cards h3.pgeo-card-title a:hover,
body.pgeo-post .pgeo-cards h3.pgeo-card-title a:focus-visible {
  color: var(--pgeo-accent);
  text-decoration: underline;
}

body.pgeo-post .pgeo-cards p.pgeo-card-text {
  font-size: 0.94em;
  line-height: 1.55;
}

/* ─── Çocuklar için ────────────────────────────────────────────────────── */
body.pgeo-post aside.pgeo-callout {
  margin: 1.8em 0;
  padding: 18px 20px;
  border: 1px solid var(--pgeo-accent);
  border-radius: var(--pgeo-radius);
  background: var(--pgeo-accent-soft);
}

body.pgeo-post .pgeo-callout h2.pgeo-callout-title {
  margin-bottom: 10px;
  font-size: 1.15em;
}

body.pgeo-post .pgeo-callout ul.pgeo-kids {
  display: grid;
  gap: 8px;
}

body.pgeo-post .pgeo-callout .pgeo-kids li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
}

body.pgeo-post .pgeo-callout .pgeo-kids-title {
  font-weight: 700;
}

body.pgeo-post .pgeo-callout .pgeo-kids-when {
  color: var(--pgeo-muted);
  font-variant-numeric: tabular-nums;
}

/* ─── Bilgi kutusu ─────────────────────────────────────────────────────── */
body.pgeo-post div.pgeo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 1.8em 0 1em;
  padding: 16px 20px;
  border: 1px dashed var(--pgeo-line);
  border-radius: var(--pgeo-radius);
}

body.pgeo-post .pgeo-note p.pgeo-note-text {
  flex: 1 1 280px;
  font-size: 0.94em;
  line-height: 1.5;
  color: var(--pgeo-muted);
}

body.pgeo-post .pgeo-note a.pgeo-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 0.92em;
  font-weight: 700;
  border: 1px solid var(--pgeo-accent);
  border-radius: 999px;
  background: var(--pgeo-accent-soft);
  transition: background 0.2s ease;
}

body.pgeo-post .pgeo-note a.pgeo-button::after {
  content: '→';
}

body.pgeo-post .pgeo-note a.pgeo-button:hover,
body.pgeo-post .pgeo-note a.pgeo-button:focus-visible {
  /* Beyaz metin + vurgu zemini açık vurgularda (Thema #00d4ff) okunmaz. */
  background: rgba(225, 29, 72, 0.24);
  background: color-mix(in srgb, var(--pgeo-accent) 30%, transparent);
}

/* ─── Mobil ────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  body.pgeo-post .pgeo-day li.pgeo-item {
    gap: 12px;
    padding: 12px 14px;
  }

  body.pgeo-post .pgeo-day .pgeo-time {
    min-width: 56px;
  }

  body.pgeo-post .pgeo-day h3.pgeo-day-title {
    padding: 10px 14px;
  }

  body.pgeo-post div.pgeo-cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.pgeo-post .pgeo-cards .pgeo-card-media img {
    transition: none;
  }

  body.pgeo-post .pgeo-cards .pgeo-card:hover .pgeo-card-media img {
    transform: none;
  }
}
