/*
  Makale sayfalarinin ortak stili.

  Bu sayfalar uygulamanin kendisinden (SPA) BAGIMSIZDIR: arama motorlari
  JavaScript beklemeden okuyabilsin diye duz HTML olarak yayinlanir. Bu yuzden
  burada da harici yazi tipi / betik yuklenmez; sayfa tek istekte acilir.
  Gorseller de fotograf degil, birkac KB'lik SVG cizimlerdir (bkz.
  scripts/build-article-art.js).
*/

:root {
  --navy: #0a1024;
  --navy-soft: #111936;
  --navy-card: #141d3d;
  --navy-line: #1e2a4d;
  --gold: #c9a227;
  --gold-light: #e8c75a;
  --text: #eef1f8;
  --text-muted: #a7b0c8;
  --text-faint: #7b86a4;
  --green: #4caf50;
  --radius: 16px;
  --radius-lg: 22px;
  --max: 780px;
  --max-wide: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;

  /* Zemin: lacivetin uzerine iki yumusak isik lekesi. Duz renk fazla
     "belge" gibi duruyordu. */
  background:
    radial-gradient(1100px 520px at 12% -6%, rgba(201, 162, 39, 0.14), transparent 60%),
    radial-gradient(900px 480px at 92% 4%, rgba(76, 110, 245, 0.12), transparent 62%),
    var(--navy);
  background-attachment: fixed;
}

a { color: var(--gold-light); }
a:hover { color: var(--gold); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: var(--max-wide); margin: 0 auto; padding: 0 20px; }

img { max-width: 100%; height: auto; display: block; }

/* ------------------------------------------------------------------ ust bar */

.topbar {
  border-bottom: 1px solid var(--navy-line);
  background: rgba(10, 16, 36, 0.88);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

.brand span { color: var(--gold-light); }

.topbar nav { display: flex; align-items: center; gap: 14px; font-size: 15px; }
.topbar nav a { text-decoration: none; color: var(--text-muted); }
.topbar nav a:hover { color: var(--gold-light); }

/* Ust bardaki "Oyna" dugmesi: sayfanin tek parlak eylemi. */
.topbar nav .play {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color: #1a1206;
  font-weight: 800;
  padding: 7px 16px;
  border-radius: 999px;
}
.topbar nav .play:hover { color: #1a1206; filter: brightness(1.07); }

/* --------------------------------------------------------------- basliklar */

h1 {
  font-size: clamp(32px, 5.4vw, 48px);
  line-height: 1.14;
  letter-spacing: -1px;
  margin: 0 0 16px;
}

h2 {
  font-size: clamp(23px, 3.6vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.4px;
  margin: 46px 0 12px;
  padding-top: 6px;
}

/* Baslik oncesi ince altin cizgi: bolumler goz ile ayrilsin. */
h2::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-light), rgba(201, 162, 39, 0));
  margin-bottom: 14px;
}

h3 {
  font-size: 20px;
  margin: 28px 0 8px;
  color: var(--gold-light);
}

p { margin: 0 0 18px; }

ul, ol { margin: 0 0 18px; padding-left: 22px; }
li { margin-bottom: 8px; }
li::marker { color: var(--gold); }

strong { color: #fff; }

/* ------------------------------------------------------------------ makale */

article { padding: 8px 0 10px; }

.lead {
  font-size: 20.5px;
  color: var(--text-muted);
  margin-bottom: 26px;
}

.meta {
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--navy-line);
}

.breadcrumb {
  font-size: 14px;
  color: var(--text-faint);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--text-faint); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-light); }

/*
  Makale basligi: tahta cizimi serit halinde, uzerinde koyu bir gecis.
  Yazinin kendisi seridin altinda baslar.
*/
.banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 26px 0 30px;
  border: 1px solid var(--navy-line);
  background: var(--navy-soft);
}

.banner img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  opacity: 0.9;
}

.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 16, 36, 0.1) 0%, rgba(10, 16, 36, 0.86) 100%);
}

.banner .tag {
  position: absolute;
  left: 18px;
  bottom: 14px;
  z-index: 2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(10, 16, 36, 0.72);
  border: 1px solid rgba(201, 162, 39, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
}

/* -------------------------------------------------------------- bilesenler */

.card {
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 26px 0;
}

.card h3 { margin-top: 0; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }

figure { margin: 28px 0; }
figure img {
  border-radius: var(--radius);
  border: 1px solid var(--navy-line);
  width: 100%;
}
figcaption {
  font-size: 14px;
  color: var(--text-faint);
  text-align: center;
  margin-top: 10px;
}

.cta {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0d477 0%, var(--gold) 100%);
  color: #1a1206;
  font-weight: 800;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
  padding: 18px 24px;
  border-radius: var(--radius);
  margin: 34px 0;
  box-shadow: 0 10px 30px rgba(201, 162, 39, 0.22);
}
.cta:hover { color: #1a1206; filter: brightness(1.06); }
.cta small { display: block; font-weight: 600; font-size: 14px; opacity: 0.78; margin-top: 2px; }

/* Ustten gecen ince parlaklik: dugme cam gibi dursun. */
.cta::before {
  content: "";
  position: absolute;
  left: 4px; right: 4px; top: 3px;
  height: 42%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 16px;
  display: block;
  overflow-x: auto;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
}
th, td {
  text-align: left;
  padding: 12px 15px;
  border-bottom: 1px solid var(--navy-line);
  vertical-align: top;
}
thead th { background: rgba(201, 162, 39, 0.08); }
tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.022); }
tbody tr:last-child td { border-bottom: none; }
th { color: var(--gold-light); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
td.yes { color: var(--green); }
td.no { color: #e5786b; }

/* --------------------------------------------------------- makale listesi */

/* Liste sayfasinin kahramani: solda yazi, sagda tahta cizimi. */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 54px 0 30px;
}

.hero-text h1 { margin-bottom: 12px; }
.hero .lead { font-size: 20px; margin-bottom: 0; }

.hero-art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--navy-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  transform: rotate(-1.2deg);
}

/* Kartlar: iki sutun, solda konu simgesi. */
.posts {
  list-style: none;
  padding: 0;
  margin: 10px 0 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.posts li { margin: 0; }

.post {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  height: 100%;
  background: var(--navy-card);
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.post:hover {
  border-color: var(--gold);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}
.post img { width: 56px; height: 56px; border-radius: 14px; }
.post h2 { margin: 0 0 6px; font-size: 20px; padding-top: 0; color: var(--text); letter-spacing: -0.2px; }
.post h2::before { display: none; }
.post p { margin: 0; color: var(--text-muted); font-size: 15.5px; line-height: 1.6; }
.post .tag {
  display: inline-block;
  font-size: 11.5px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
}

/* ------------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--navy-line);
  margin-top: 60px;
  padding: 30px 0 48px;
  color: var(--text-faint);
  font-size: 15px;
  background: rgba(10, 16, 36, 0.5);
}
footer a { text-decoration: none; }
footer .links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .hero-art { transform: none; order: -1; }
  .posts { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .topbar nav { gap: 10px; font-size: 14px; }
  .card, .post { padding: 18px; }
  .post { grid-template-columns: 46px 1fr; gap: 13px; }
  .post img { width: 46px; height: 46px; border-radius: 12px; }
  .banner img { height: 140px; }
}
