/* Bilgi yazısı sayfası (mor-isik.html). Yalnızca bu sayfada yüklenir. */

:root {
  --uv: oklch(62% .2 301);
  --uv-deep: oklch(50% .24 298);
  --uv-ink: oklch(48% .22 301);
  --uv-on-dark: oklch(84% .09 300);
  --card-rest: 0 1px 2px rgba(22,22,21,.06), 0 8px 24px -12px rgba(22,22,21,.18);
}

/* ---------- Açılış: lake zemin üzerinde mor ışık huzmesi ---------- */
.page-hero--uv { padding-bottom: clamp(36px, 4vw, 56px); }
.page-hero--uv::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 130% at 94% -18%, oklch(55% .24 300 / .42), transparent 62%),
    radial-gradient(30% 70% at 74% 118%, oklch(50% .2 292 / .18), transparent 72%);
}
.page-hero--uv h1 { max-width: 16ch; }
.page-hero .article-meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 28px;
  font-size: .8125rem; color: var(--on-lacquer-3);
}

/* ---------- Yerleşim: içindekiler + makale sütunu ---------- */
.article-section { padding-block: clamp(44px, 5vw, 80px) clamp(64px, 7vw, 112px); }
.article-layout {
  display: grid; grid-template-columns: 210px minmax(0, 46rem);
  gap: clamp(40px, 6vw, 104px); align-items: start;
}

.article-toc { position: sticky; top: calc(var(--header-h) + 32px); }
.article-toc .label { color: var(--ink-3); margin-bottom: 14px; }
.article-toc ol { list-style: none; display: grid; border-left: 1px solid var(--line); }
.article-toc a {
  display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 2px solid transparent;
  color: var(--ink-2); font-size: .875rem; line-height: 1.4; text-decoration: none;
  transition: color .2s, border-color .2s;
}
.article-toc a:hover { color: var(--ink); }
.article-toc a[aria-current="location"] { color: var(--ink); font-weight: 600; border-left-color: var(--ink); }

/* ---------- Makale metni ---------- */
.article { min-width: 0; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.article > * + * { margin-top: 20px; }
.article h2 {
  margin-top: clamp(56px, 6vw, 84px);
  font-size: clamp(1.45rem, 1.1rem + 1vw, 1.95rem); color: var(--ink);
  scroll-margin-top: 16px; /* html scroll-padding-top başlık yüksekliğini zaten ekler */
}
.article > h2 + * { margin-top: 18px; }
.article strong { color: var(--ink); font-weight: 600; }

/* Görseller */
.article .article-figure { margin: 36px 0 0; }
.article-figure img { width: 100%; border-radius: var(--r-lg); background: var(--line-soft); }
.article-figure figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.article .article-figures {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 20px; margin-top: 36px;
}
.article-figures .article-figure { margin: 0; }
.article-figures img { aspect-ratio: 4 / 3; object-fit: cover; }

/* Yazının en üstündeki banner */
.article > .article-banner:first-child { margin-top: 0; }
.article-banner img { aspect-ratio: 21 / 9; object-fit: cover; box-shadow: var(--card-rest); }

/* Görseli henüz eklenmemiş yer */
.figure-slot {
  display: grid; place-content: center; justify-items: center; gap: 4px;
  width: 100%; padding: 16px; border: 1px dashed #c4c6c9; border-radius: var(--r-lg);
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(28,28,27,.03) 14px 15px), var(--surface);
  color: var(--ink-3); text-align: center;
}
.figure-slot svg { width: 28px; height: 28px; margin-bottom: 6px; }
.figure-slot-title { font-family: var(--font-display); font-stretch: 112%; font-weight: 640; font-size: .9375rem; color: var(--ink-2); }
.figure-slot-meta { font-size: var(--fs-micro); font-variant-numeric: tabular-nums lining-nums; }
.figure-slot-meta span { margin-inline: 4px; opacity: .6; }
.device-card .figure-slot { border-color: rgba(242,242,241,.22); border-radius: var(--r-md); background: rgba(242,242,241,.04); color: var(--on-lacquer-3); }
.device-card .figure-slot-title { color: var(--on-lacquer-2); }

/* Gün ışığı / mor ışık karşılaştırma çizimi */
.article .uv-compare { margin: 36px 0 0; }
.uv-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.uv-pane { padding: 14px 14px 18px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--card-rest); }
.uv-pane svg { width: 100%; height: auto; }
.uv-pane p { display: grid; gap: 4px; margin-top: 12px; padding-inline: 4px; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.uv-pane .label { color: var(--ink); }
.uv-pane--uv { background: linear-gradient(160deg, #1c1729, #0f0c17 70%); box-shadow: 0 1px 2px rgba(22,22,21,.1), 0 18px 36px -18px oklch(30% .12 300 / .7); }
.uv-pane--uv p { color: oklch(78% .03 300); }
.uv-pane--uv .label { color: var(--uv-on-dark); }
.uv-compare figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); }

/* Mor ışığın gösterdikleri */
.article .article-findings { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.article-findings li { padding: 22px 22px 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--card-rest); font-size: .9375rem; line-height: 1.65; }
.article-findings li::before {
  content: ""; display: block; width: 12px; height: 12px; margin: 4px 0 20px 4px; border-radius: 50%;
  background: var(--uv);
  box-shadow: 0 0 0 5px oklch(62% .2 301 / .14), 0 0 18px 4px oklch(62% .22 301 / .42);
}
.article-findings strong, .article-limits strong, .article-steps strong {
  display: block; margin-bottom: 6px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 640;
  font-size: 1.0625rem; line-height: 1.25; letter-spacing: -0.02em;
}

/* Karşılaştırma tablosu */
.article-table { margin-top: 32px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--card-rest); overflow: hidden; }
.article-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.5; }
.article-table caption {
  caption-side: top; padding: 22px 22px 6px; text-align: left;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 640; font-size: 1rem; letter-spacing: -0.015em; color: var(--ink);
}
.article-table th, .article-table td { padding: 14px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.article-table thead th {
  border-top: 0; padding-block: 12px;
  font-family: var(--font-display); font-stretch: 112%; font-weight: 600;
  font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}
.article-table tbody th { width: 26%; color: var(--ink); font-weight: 600; }
.article-table td { color: var(--ink-2); }

/* İnceleme adımları */
.article .article-steps { list-style: none; counter-reset: step; margin-top: 28px; border-top: 1px solid var(--line); }
.article-steps li { counter-increment: step; position: relative; padding: 22px 0 22px 64px; border-bottom: 1px solid var(--line); }
.article-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px;
  font-family: var(--font-display); font-stretch: 118%; font-weight: 640; font-size: 1.5rem; line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.03em; color: var(--ink);
}

/* Sınırlar */
.article .article-limits { list-style: none; margin-top: 24px; padding: 6px 26px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--card-rest); }
.article-limits li { position: relative; padding: 20px 0 20px 30px; font-size: .9375rem; line-height: 1.65; }
.article-limits li + li { border-top: 1px solid var(--line-soft); }
.article-limits li::before { content: ""; position: absolute; left: 0; top: 30px; width: 14px; height: 1.5px; background: var(--ink); }

/* Cihaz kartı */
.device-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; gap: 28px; align-items: center; margin-top: 28px;
  padding: clamp(26px, 3vw, 38px); border-radius: var(--r-xl);
  background: var(--lacquer); color: var(--on-lacquer);
  box-shadow: 0 2px 6px rgba(22,22,21,.06), 0 24px 48px -24px rgba(22,22,21,.4);
}
.device-card:has(> .article-figure) { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); }
.device-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 90% at 100% 0%, oklch(55% .24 300 / .34), transparent 65%),
    linear-gradient(170deg, transparent 0 44%, rgba(242,242,241,.07) 49%, transparent 55%);
}
.device-card .label { color: var(--uv-on-dark); }
.device-card h3 { margin-top: 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--on-lacquer); }
.device-card-text p:not(.label) { margin-top: 14px; font-size: 1rem; line-height: 1.7; color: var(--on-lacquer-2); }
.device-card-text .device-card-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(242,242,241,.12); font-size: .8125rem; line-height: 1.6; color: var(--on-lacquer-3); }
.article .device-card-figure { margin: 0; }
.device-card-figure img { border-radius: var(--r-md); background: var(--lacquer-2); }
.device-card-figure figcaption { color: var(--on-lacquer-3); }

/* Şubeden videolar */
.article .uv-videos { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.uv-videos figure { margin: 0; }
.uv-videos video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-lg); background: var(--lacquer); }
.uv-videos figcaption { margin-top: 10px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }

/* SSS: ana sayfadaki .faq stillerini kullanır */
.article .faq { margin-top: 24px; }
.article .faq .answer { padding-right: 8px; }

/* ---------- Kapanış çağrısı ---------- */
.article-cta { position: relative; overflow: hidden; isolation: isolate; }
.article-cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(45% 120% at 0% 110%, oklch(52% .22 300 / .3), transparent 65%),
    linear-gradient(172deg, transparent 0 46%, rgba(242,242,241,.08) 50%, transparent 55%);
}
.article-cta h2 { max-width: 20ch; font-size: var(--fs-h2); }
.article-cta p { max-width: 40rem; margin-top: 16px; font-size: var(--fs-lead); line-height: 1.6; color: var(--on-lacquer-2); }
.article-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: minmax(0, 46rem); gap: 36px; }
  .article-toc { position: static; padding: 22px 24px; border-radius: var(--r-lg); background: var(--paper); box-shadow: var(--card-rest); }
  .article-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; border-left: 0; }
  .article-toc a { margin-left: 0; padding: 8px 0; border-left: 0; }
  .article-toc a[aria-current="location"] { font-weight: 400; color: var(--ink-2); }
}
@media (max-width: 760px) {
  .device-card:has(> .article-figure) { grid-template-columns: minmax(0, 1fr); }
  .article .uv-videos {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62%, 220px);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; overscroll-behavior-x: contain;
  }
  .uv-videos li { scroll-snap-align: start; }
}
@media (max-width: 620px) {
  .article { font-size: 1rem; line-height: 1.7; }
  .article-toc ol { grid-template-columns: minmax(0, 1fr); }
  .article .article-findings { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .article .article-limits { padding: 4px 20px; }
  .article-steps li { padding-left: 52px; }
  .article-steps li::before { font-size: 1.3rem; }
  .article-cta-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 560px) {
  .article-table caption { padding: 20px 20px 4px; }
  .article-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .article-table tr { display: grid; padding: 14px 20px 16px; border-top: 1px solid var(--line-soft); }
  .article-table th, .article-table td { display: block; padding: 0; border: 0; }
  .article-table tbody th { width: auto; margin-bottom: 8px; }
  .article-table td { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 10px; padding-block: 3px; font-size: .875rem; }
  .article-table td::before { content: attr(data-label); color: var(--ink-3); font-size: .8125rem; }
}
@media (max-width: 420px) {
  .uv-compare-grid { grid-template-columns: minmax(0, 1fr); }
}
