/*
 * /politikalar grid + detail — hover/focus polish + breadcrumb hardening.
 *
 * Inline styles handle the bulk of the visual language on these pages.
 * What lives here:
 *   - breadcrumb spacing (legacy style.css only sets .breadcrumb-nav
 *     gap inside .tdp-page-header, which these pages don't use)
 *   - :hover / :focus-visible states for the policy cards and prev/next
 *   - editorial typography for the article body
 *   - reduced-motion fallback
 */

/* ---------- Breadcrumb ---------- */

.breadcrumb-nav.tdp-crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  letter-spacing: 0.2px;
}

.breadcrumb-nav.tdp-crumb a {
  color: rgba(10, 10, 15, 0.55);
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb-nav.tdp-crumb a:hover,
.breadcrumb-nav.tdp-crumb a:focus-visible {
  color: #c41e3a;
  outline: none;
}

.breadcrumb-nav.tdp-crumb .separator {
  color: rgba(10, 10, 15, 0.25);
  font-weight: 300;
  user-select: none;
}

.breadcrumb-nav.tdp-crumb .current {
  color: #0a0a0f;
  font-weight: 600;
}

/* ---------- TDP Ne Diyor grid: 5+5 two rows on desktop ---------- */

.tdp-ne-diyor-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 1200px) {
  .tdp-ne-diyor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 768px) {
  .tdp-ne-diyor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .tdp-ne-diyor-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ---------- Policy card hover ---------- */

.tdp-policy-card {
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.2s ease;
  will-change: transform;
}

.tdp-policy-card:hover,
.tdp-policy-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(196, 30, 58, 0.35) !important;
  box-shadow: 0 30px 60px -24px rgba(10, 10, 15, 0.18) !important;
}

.tdp-policy-card:focus-visible {
  outline: 2px solid #c41e3a;
  outline-offset: 3px;
}

/* The arrow in "Devamını Oku" slides on card hover */
.tdp-policy-card:hover span[aria-hidden] {
  transform: translateX(4px);
}

/* The top-image zoom on card hover — only when the card has a real photo.
   Gradient fallbacks don't include an <img>, so this selector is a no-op
   for them. */
.tdp-policy-card img {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tdp-policy-card:hover img {
  transform: scale(1.05);
}

/* ---------- Detail page prev/next ---------- */

section a[href^='/politikalar/']:not(.tdp-policy-card) {
  transition: border-color 0.2s ease, transform 0.2s ease;
}

section a[href^='/politikalar/']:not(.tdp-policy-card):hover {
  border-color: rgba(196, 30, 58, 0.35) !important;
  transform: translateY(-3px);
}

/* ---------- Hero image figure on detail ---------- */

.tdp-policy-hero-figure img {
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tdp-policy-hero-figure:hover img {
  transform: scale(1.02);
}

/* ---------- Editorial body typography ---------- */

.tdp-article-content h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 44px 0 16px;
  color: #0a0a0f;
}

.tdp-article-content h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 44px 0 14px;
  color: #0a0a0f;
}

/* Subsection — recurring "Xxxxx: yyy…" heads pulled out of DOCX */
.tdp-article-content h4 {
  font-size: clamp(17px, 1.5vw, 19px);
  font-weight: 800;
  letter-spacing: -0.005em;
  line-height: 1.3;
  color: #0a0a0f;
  margin: 30px 0 8px;
  position: relative;
  padding-left: 14px;
}
.tdp-article-content h4::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: #c41e3a;
  border-radius: 2px;
}
.tdp-article-content h3 + h4 {
  margin-top: 18px;
}
.tdp-article-content h4 + p {
  margin-top: 6px;
}

.tdp-article-content p {
  margin: 0 0 18px;
}

/* Drop cap on the very first paragraph of the body — editorial opener */
.tdp-article-content > p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: 0.95;
  font-weight: 900;
  color: #c41e3a;
  padding: 6px 10px 0 0;
  margin-top: 4px;
}

.tdp-article-content a {
  color: #c41e3a;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  transition: color 0.15s ease;
}
.tdp-article-content a:hover {
  color: #9a1730;
}

.tdp-article-content ul,
.tdp-article-content ol {
  margin: 0 0 22px;
  padding-left: 0;
  list-style: none;
}

.tdp-article-content li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  line-height: 1.75;
}
.tdp-article-content li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c41e3a;
  transition: transform 0.15s ease;
}
.tdp-article-content li:hover::before {
  transform: scale(1.35);
}

/* Ordered list — keep numbers visible */
.tdp-article-content ol {
  counter-reset: tdp-ol;
  padding-left: 0;
}
.tdp-article-content ol > li::before {
  counter-increment: tdp-ol;
  content: counter(tdp-ol, decimal-leading-zero);
  background: transparent;
  width: auto;
  height: auto;
  top: 0;
  font-size: 12px;
  font-weight: 800;
  color: #c41e3a;
  letter-spacing: 1px;
}
.tdp-article-content ol > li {
  padding-left: 36px;
}
.tdp-article-content ol > li:hover::before {
  transform: none;
}

.tdp-article-content blockquote {
  border-left: 3px solid #c41e3a;
  padding: 14px 0 14px 24px;
  margin: 32px 0;
  font-size: 20px;
  font-style: italic;
  color: #1a1a2e;
  line-height: 1.55;
  background: linear-gradient(90deg, rgba(196,30,58,0.04), transparent 80%);
  transition: padding-left 0.25s ease, border-color 0.25s ease;
}
.tdp-article-content blockquote:hover {
  padding-left: 30px;
  border-color: #9a1730;
}

.tdp-article-content strong,
.tdp-article-content b {
  color: #0a0a0f;
  font-weight: 700;
}

/* Graceful spacing between consecutive sections */
.tdp-article-content > *:first-child {
  margin-top: 0 !important;
}
.tdp-article-content > *:last-child {
  margin-bottom: 0 !important;
}

/* ---------- Article aside (sidebar) link hover ---------- */

.tdp-article-aside-link {
  transition: background-color 0.2s ease, padding-left 0.2s ease, color 0.2s ease;
}
.tdp-article-aside-link:hover,
.tdp-article-aside-link:focus-visible {
  background-color: rgba(196, 30, 58, 0.06);
  padding-left: 16px !important;
  color: #c41e3a !important;
  outline: none;
}
.tdp-article-aside-link:hover span:last-child {
  color: #c41e3a;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .tdp-policy-card,
  .tdp-policy-card:hover,
  .tdp-policy-card img,
  .tdp-policy-card:hover img,
  .tdp-policy-hero-figure img,
  .tdp-policy-hero-figure:hover img,
  section a[href^='/politikalar/']:hover {
    transition: none !important;
    transform: none !important;
  }
}
