/* Sıfırdan Pi'ye · sifirdanpiye.com
   Dış bağlantı yok: yazı tipi sistemden, görseller sitenin kendisinden. */
:root {
  --mavi: #1e3aaa;
  --mavi-2: #2a4fd6;
  --sari: #ffcd28;
  --koyu: #121830;
  --zemin: #f3f5fc;
  --kart: #ffffff;
  --yazi: #172040;
  --soluk: #56607f;
  --cizgi: #dfe4f3;
  --odak: #ffcd28;
  --golge: 0 1px 2px rgba(18, 24, 48, .06), 0 6px 20px rgba(18, 24, 48, .07);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --zemin: #0c1129;
    --kart: #151d3f;
    --yazi: #e8ecfa;
    --soluk: #a3acd0;
    --cizgi: #263063;
    --golge: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--yazi);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--odak);
  outline-offset: 3px;
  border-radius: 10px;
}
img { display: block; max-width: 100%; height: auto; }

/* Üst bölüm: kanal kapağındaki mavi ızgara */
.ust {
  color: #fff;
  background-color: var(--mavi-2);
  background-image:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 40%, #3157dd 0%, #2342c4 55%, #1c36a6 100%);
  background-size: 28px 28px, 28px 28px, 100% 100%;
  padding: 40px 16px 56px;
  text-align: center;
}
.ust-ic { max-width: 640px; margin: 0 auto; }
.profil {
  width: 112px; height: 112px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 0 0 6px var(--sari), 0 10px 26px rgba(10, 20, 70, .45);
  overflow: hidden;
  background: var(--sari);
}
.profil img { width: 100%; height: 100%; object-fit: cover; }
h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.01em;
  text-shadow: 0 3px 0 rgba(10, 20, 70, .55);
}
.alt-baslik { margin: 10px 0 0; font-size: 1.06rem; font-weight: 600; opacity: .95; }
.rozet {
  display: inline-block;
  margin-top: 14px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--sari);
  color: var(--koyu);
  font-weight: 800;
}
.ana-dugme {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 24px auto 0;
  max-width: 340px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #fff;
  color: var(--koyu);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 6px 0 rgba(10, 20, 70, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.ana-dugme:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(10, 20, 70, .35); }
.ana-dugme:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(10, 20, 70, .35); }
.ana-dugme svg { width: 26px; height: 26px; flex: none; }

main { max-width: 640px; margin: -28px auto 0; padding: 0 16px 40px; position: relative; }
section {
  background: var(--kart);
  border: 1px solid var(--cizgi);
  border-radius: 18px;
  box-shadow: var(--golge);
  padding: 22px 20px;
  margin-bottom: 18px;
}
h2 { margin: 0 0 14px; font-size: 1.25rem; line-height: 1.25; font-weight: 800; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }
.soluk { color: var(--soluk); font-size: .92rem; }

/* Bağlantılar */
.baglantilar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.baglantilar a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--cizgi);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: border-color .12s ease, transform .12s ease;
}
.baglantilar a:hover { border-color: var(--mavi-2); transform: translateY(-1px); }
.baglantilar .simge {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--mavi);
  color: #fff;
}
.baglantilar .simge svg { width: 22px; height: 22px; }
.baglantilar small { display: block; font-weight: 500; color: var(--soluk); font-size: .86rem; }

/* TYT geri sayımı */
.sayac { display: flex; align-items: center; gap: 18px; }
.sayac-kutu {
  flex: none;
  min-width: 112px;
  padding: 12px 10px;
  border-radius: 16px;
  background: var(--sari);
  color: var(--koyu);
  text-align: center;
  line-height: 1;
}
.sayac-sayi { display: block; font-size: 2.6rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.sayac-birim { display: block; margin-top: 6px; font-weight: 800; font-size: .95rem; }
.sayac p { margin: 0 0 4px; }

/* Ders kartı */
.ders { display: grid; gap: 14px; }
.ders-resim { border-radius: 12px; overflow: hidden; border: 1px solid var(--cizgi); }
.ders-ust { font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mavi-2); }
@media (prefers-color-scheme: dark) { .ders-ust { color: var(--sari); } }
.ders h3 { margin: 2px 0 6px; font-size: 1.15rem; line-height: 1.3; }
.dugmeler { display: flex; flex-wrap: wrap; gap: 10px; }
.dugme {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  background: var(--mavi);
  color: #fff;
}
.dugme.ikincil { background: transparent; color: inherit; border: 2px solid var(--cizgi); }
.dugme:hover { filter: brightness(1.08); }
.dugme svg { width: 18px; height: 18px; }

/* Sezon planı */
.plan { margin: 0; padding: 0; list-style: none; counter-reset: konu; }
.plan li {
  counter-increment: konu;
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--cizgi);
}
.plan li:last-child { border-bottom: 0; }
.plan li::before {
  content: counter(konu);
  flex: none;
  width: 28px;
  font-weight: 800;
  color: var(--soluk);
  font-variant-numeric: tabular-nums;
}
.etiket {
  margin-left: auto;
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}
.etiket.yayinda { background: #d9f5e3; color: #0d5b2b; }
.etiket.sirada { background: var(--sari); color: var(--koyu); }
@media (prefers-color-scheme: dark) { .etiket.yayinda { background: #12452a; color: #b9f1cf; } }
details { margin-top: 6px; }
summary { cursor: pointer; font-weight: 800; color: var(--mavi-2); padding: 6px 0; }
@media (prefers-color-scheme: dark) { summary { color: var(--sari); } }

/* Ödev sayfası */
.geri { display: inline-block; margin-bottom: 14px; font-weight: 700; color: #fff; text-decoration: none; opacity: .92; }
.geri:hover { opacity: 1; text-decoration: underline; }
.odev-resim { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--cizgi); margin-bottom: 14px; }
.adimlar { margin: 0; padding-left: 22px; }
.adimlar li { margin-bottom: 6px; }

footer { max-width: 640px; margin: 0 auto; padding: 0 16px 36px; text-align: center; color: var(--soluk); font-size: .88rem; }
footer a { color: var(--soluk); }

@media (max-width: 420px) {
  .sayac { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
