/* ============================================================
   BYTE AKADEMİ — v3 site katmanı (sade ana sayfa, arama, etiketler, favicon dışı her şey)
   main.css üzerine yazar; tasarım dili aynı: koyu zemin, fosfor yeşili, bakır, mono etiketler.
   ============================================================ */

/* ---------- Genel sadeleştirme ---------- */
.grain { opacity: 0.009; }
.field-grid { opacity: 0.2; }
.section--tight { padding-block: clamp(64px, 8vw, 110px); }
.btn--sm { padding: 6px 7px 6px 16px; font-size: 11px; gap: 9px; }
.btn--sm .btn-orb { width: 26px; height: 26px; }
.hl { color: var(--phosphor); }

/* ---------- Duyuru bandı ---------- */
.announce {
  position: relative; z-index: 70;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; font-size: 0.86rem; color: #04120C;
  background: linear-gradient(90deg, var(--phosphor), color-mix(in srgb, var(--phosphor) 70%, #fff));
  text-align: center;
}
.announce .led { background: #04120C; box-shadow: none; }
.announce a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body:has(.announce) .chrome { top: 38px; }

/* ---------- Menüde arama butonu ---------- */
.nav-search {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 8px 7px 12px; border-radius: 999px;
  border: 1px solid var(--hairline-2); background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
  transition: border-color .35s var(--ease), color .35s var(--ease), background-color .35s var(--ease);
}
.nav-search svg { width: 15px; height: 15px; }
.nav-search kbd, .hs-kbd, .cmdk kbd {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 3px 7px; border-radius: 6px; color: var(--ink-faint);
  border: 1px solid var(--hairline-2); background: rgba(255, 255, 255, 0.04);
}
.nav-search:hover { border-color: var(--phosphor-soft); color: var(--ink); background: var(--phosphor-faint); }
@media (max-width: 1080px) { .nav-search kbd { display: none; } }

/* ---------- Hero v3 ---------- */
.hero--v3 { min-height: min(100dvh, 980px); }
.hero--v3 .hero-inner { padding-block: 30px 110px; }
.hero--v3 .hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.16rem); color: var(--ink-dim); max-width: 560px; margin-top: 26px; }
.hero--v3 .hero-sub .hl { color: var(--phosphor); }

.hero-search {
  position: relative; margin-top: 38px; max-width: 620px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 20px; border-radius: 18px;
  background: rgba(13, 15, 22, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline-2);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), 0 0 0 0 var(--phosphor-faint);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
  cursor: text;
}
.hero-search:hover, .hero-search:focus-within {
  border-color: var(--phosphor-soft);
  box-shadow: 0 24px 70px -20px rgba(0, 0, 0, 0.8), 0 0 0 6px var(--phosphor-faint);
}
.hero-search .hs-ico { width: 20px; height: 20px; color: var(--phosphor); flex: 0 0 auto; }
.hero-search input {
  flex: 1; min-width: 0; height: 46px; background: transparent; border: 0; outline: 0;
  color: var(--ink); font: inherit; font-size: 1.02rem;
}
.hero-search input::placeholder { color: var(--ink-faint); }
.hero-search input::-webkit-search-cancel-button { display: none; }
.hero-search--page { margin-top: 26px; max-width: 760px; }

.hero-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; max-width: 680px; }
.hero-tags-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); margin-right: 4px; }

/* ---------- Etiket çipi (her yerde aynı) ---------- */
.tagchip {
  --tc: var(--phosphor);
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.86rem; line-height: 1.2; color: var(--ink-dim);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--hairline-2);
  transition: color .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
  cursor: pointer;
}
.tagchip > span { color: var(--tc); font-family: var(--font-mono); font-weight: 600; }
.tagchip b {
  margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.72em; font-weight: 500; color: var(--ink-faint);
  background: rgba(255, 255, 255, 0.06);
}
.tagchip:hover {
  color: var(--ink); border-color: color-mix(in srgb, var(--tc) 60%, transparent);
  background: color-mix(in srgb, var(--tc) 9%, transparent);
  box-shadow: 0 0 22px -6px color-mix(in srgb, var(--tc) 70%, transparent);
  transform: translateY(-1px);
}
.tagchip:hover b { color: #04120C; background: var(--tc); }
.tagchip:nth-child(3n+2) { --tc: #F59E0B; }
.tagchip:nth-child(3n) { --tc: #7DD3FC; }

/* ---------- Bölüm başlığı v3 (sade) ---------- */
.sec-head {
  display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: clamp(16px, 2.4vw, 28px);
  margin-bottom: clamp(28px, 4vw, 46px); padding-bottom: 22px; border-bottom: 1px solid var(--hairline);
}
.sec-no {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; color: var(--phosphor);
  padding: 6px 10px; border: 1px solid var(--phosphor-soft); border-radius: 8px; align-self: center;
}
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 650; letter-spacing: -0.03em; line-height: 1.08; }
.sec-desc { margin-top: 8px; color: var(--ink-faint); font-size: 1rem; max-width: 560px; line-height: 1.6; }
.sec-link {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim);
  padding-bottom: 4px; border-bottom: 1px solid transparent; transition: color .3s, border-color .3s;
}
.sec-link svg { width: 12px; height: 12px; }
.sec-link:hover { color: var(--phosphor); border-color: var(--phosphor-soft); }
@media (max-width: 720px) {
  .sec-head { grid-template-columns: 1fr; gap: 12px; }
  .sec-no { justify-self: start; }
}

/* ---------- Son yazılar ---------- */
.v3-feature { margin-bottom: 18px; }
.v3-feature .card--featured.card--media .core { display: grid; grid-template-columns: 1.25fr 1fr; }
.v3-feature .card--featured .card-media { aspect-ratio: auto; height: 100%; min-height: 360px; border-bottom: 0; border-right: 1px solid var(--hairline); grid-row: 1 / span 5; }
.v3-feature .card--featured .card-top { padding-top: clamp(26px, 3vw, 40px); }
.v3-feature .card--featured .card-excerpt { font-size: 1rem; }
.v3-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) {
  .v3-grid { grid-template-columns: repeat(2, 1fr); }
  .v3-feature .card--featured.card--media .core { display: flex; }
  .v3-feature .card--featured .card-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 640px) { .v3-grid { grid-template-columns: 1fr; } }

/* ---------- Eğitim bandı ---------- */
.course-band { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.course-card { display: block; }
.course-card .core { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 3vw, 34px); }
.course-card[data-lang="cpp"] { --cc: #F59E0B; }
.course-card { --cc: var(--phosphor); }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-icon {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; color: #0B0D13;
  background: var(--cc); box-shadow: 0 10px 40px -10px var(--cc);
}
.cc-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.cc-title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.15; transition: color .3s; }
.course-card:hover .cc-title { color: var(--cc); }
.cc-desc { color: var(--ink-dim); line-height: 1.6; }
.cc-code {
  display: block; border-radius: 12px; overflow: hidden;
  background: #07080C; border: 1px solid var(--hairline);
}
.cc-dots { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--hairline); }
.cc-dots i { width: 9px; height: 9px; border-radius: 50%; background: #2A2F3C; }
.cc-dots i:first-child { background: #FF5F57; } .cc-dots i:nth-child(2) { background: #FEBC2E; } .cc-dots i:nth-child(3) { background: #28C840; }
.cc-dots em { margin-left: auto; font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.cc-code pre { margin: 0; padding: 16px 18px; font-family: var(--font-mono); font-size: 0.84rem; line-height: 1.7; color: #CBD2E0; white-space: pre; overflow-x: auto; }
.cc-code .k { color: var(--cc); } .cc-code .s { color: #A5E8A0; } .cc-code .n { color: #F59E0B; } .cc-code .f { color: #7DD3FC; }
.course-card[data-lang="cpp"] .cc-code .f { color: #7DD3FC; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.cc-progress { flex: 1; display: grid; gap: 7px; }
.cc-bar { height: 5px; border-radius: 9px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.cc-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--cc); border-radius: inherit; transition: width 1s var(--ease); }
.cc-pct { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; }
.course-card:hover.shell { border-color: color-mix(in srgb, var(--cc) 50%, transparent); }
@media (max-width: 900px) { .course-band { grid-template-columns: 1fr; } }

/* ---------- Laboratuvar satırı ---------- */
.lab-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lab-tile { display: block; }
.lab-tile .core { display: flex; align-items: center; gap: 18px; padding: 22px; }
.lt-ico { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; font-size: 1.4rem; background: var(--copper-faint); border: 1px solid rgba(217, 119, 6, 0.3); }
.lt-body { display: grid; gap: 5px; flex: 1; }
.lt-title { font-weight: 600; font-size: 1.05rem; line-height: 1.3; transition: color .3s; }
.lt-desc { color: var(--ink-faint); font-size: 0.9rem; line-height: 1.5; }
.lab-tile:hover .lt-title { color: var(--phosphor); }
.lab-tile:hover .card-arrow { background: var(--phosphor); border-color: var(--phosphor); color: #04120C; transform: translate(3px, -3px); }
.lab-tile:hover.shell { border-color: rgba(0, 255, 163, 0.35); }
@media (max-width: 1000px) { .lab-row { grid-template-columns: 1fr; } }

/* ---------- Keşfet (sekmeli kategoriler) ---------- */
.explore-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: none; }
.explore-tabs::-webkit-scrollbar { display: none; }
.explore-tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px; font-size: 0.96rem; color: var(--ink-dim);
  border: 1px solid var(--hairline-2); background: rgba(255, 255, 255, 0.02);
  transition: all .3s var(--ease); cursor: pointer;
}
.et-no { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.et-n { font-family: var(--font-mono); font-size: 11px; padding: 1px 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--ink-faint); }
.explore-tab:hover { color: var(--ink); border-color: var(--phosphor-soft); }
.explore-tab.is-on { color: #04120C; background: var(--phosphor); border-color: var(--phosphor); box-shadow: 0 10px 30px -12px var(--phosphor-soft); }
.explore-tab.is-on .et-no, .explore-tab.is-on .et-n { color: #04120C; background: rgba(4, 18, 12, 0.12); }
.explore-desc { color: var(--ink-faint); margin-bottom: 18px; }
.explore-panel.is-on { animation: ba-belir .5s var(--ease-out) both; }
@keyframes ba-belir { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Sayılarla ---------- */
.stats-band .core { display: grid; grid-template-columns: repeat(4, 1fr); }
.sb-item { padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 6px; border-right: 1px solid var(--hairline); }
.sb-item:last-child { border-right: 0; }
.sb-v { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.sb-item:nth-child(odd) .sb-v { color: var(--phosphor); text-shadow: 0 0 30px var(--phosphor-faint); }
.sb-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
@media (max-width: 760px) {
  .stats-band .core { grid-template-columns: repeat(2, 1fr); }
  .sb-item:nth-child(2) { border-right: 0; }
  .sb-item:nth-child(-n+2) { border-bottom: 1px solid var(--hairline); }
}

/* ---------- Yazar bandı ---------- */
.author-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.ab-card .core { display: flex; gap: 26px; padding: clamp(24px, 3.2vw, 38px); }
.ab-photo { width: 120px; height: 120px; border-radius: 26px; object-fit: cover; flex: 0 0 auto; border: 1px solid var(--hairline-2); box-shadow: 0 0 0 6px var(--phosphor-faint); }
.ab-body { display: grid; gap: 10px; align-content: start; }
.ab-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--phosphor); }
.ab-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.ab-role { color: var(--ink-dim); }
.ab-bio { color: var(--ink-faint); line-height: 1.7; max-width: 520px; }
.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ab-circuit .core { padding: clamp(20px, 2.6vw, 30px); display: grid; gap: 12px; align-content: center; }
@media (max-width: 1000px) { .author-band { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ab-card .core { flex-direction: column; } }

/* ---------- Sosyal butonlar ---------- */
.social-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.social-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  color: var(--ink-dim); border: 1px solid var(--hairline-2); background: rgba(255, 255, 255, 0.03);
  transition: all .3s var(--ease);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { color: #04120C; background: var(--phosphor); border-color: var(--phosphor); transform: translateY(-2px); }

/* ---------- Arama sonuç sayfası ---------- */
.list-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-top: 18px; }
.search-hero { padding-bottom: 20px; }
.search-count { margin: 18px 0 14px; color: var(--ink-faint); }
.search-results { display: grid; gap: 14px; margin-top: 10px; }
.search-row { display: block; }
.search-row .core { display: flex; gap: 20px; padding: 16px; align-items: center; }
.sr-img { width: 200px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; flex: 0 0 auto; border: 1px solid var(--hairline); }
.sr-body { display: grid; gap: 8px; }
.sr-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--ink-faint); text-transform: uppercase; }
.sr-title { font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-weight: 600; line-height: 1.3; transition: color .3s; }
.search-row:hover .sr-title { color: var(--phosphor); }
.search-row:hover.shell { border-color: rgba(0, 255, 163, 0.35); }
.sr-desc { color: var(--ink-faint); line-height: 1.6; }
.sr-tags { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-faint); }
mark { background: color-mix(in srgb, var(--phosphor) 22%, transparent); color: var(--ink); border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -2px 0 var(--phosphor-soft); }
.search-extra { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 6px 0 22px; }
.search-extra-item { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--hairline-2); background: rgba(183, 148, 246, 0.05); transition: border-color .3s; }
.search-extra-item:hover { border-color: #B794F6; }
.se-kind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #B794F6; }
.se-title { font-weight: 600; }
.se-desc { color: var(--ink-faint); font-size: 0.9rem; }
.search-empty { text-align: center; padding: 50px 0 20px; display: grid; gap: 10px; justify-items: center; }
.search-empty h2 { font-size: 1.6rem; }
.search-empty p { color: var(--ink-faint); max-width: 480px; }
.se-scope { width: 220px; color: var(--phosphor); opacity: .8; }
.tag-cloud-wrap { margin: clamp(40px, 6vw, 70px) 0 clamp(60px, 8vw, 100px); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
@media (max-width: 640px) {
  .search-row .core { flex-direction: column; align-items: stretch; }
  .sr-img { width: 100%; }
}

/* ---------- Komut paleti (Ctrl+K) ---------- */
.cmdk { position: fixed; inset: 0; z-index: 9000; display: flex; justify-content: center; align-items: flex-start; padding: 10vh 16px 16px; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(5, 6, 9, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .22s ease; }
.cmdk-panel {
  position: relative; width: min(720px, 100%); max-height: 76vh; display: flex; flex-direction: column;
  background: linear-gradient(180deg, #10131B, #0B0D13); border: 1px solid var(--hairline-2); border-radius: 20px;
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 255, 163, 0.08), 0 0 80px -30px var(--phosphor-soft);
  overflow: hidden; transform: translateY(-10px) scale(.98); opacity: 0; transition: transform .25s var(--ease-out), opacity .2s ease;
}
.cmdk.is-open .cmdk-backdrop { opacity: 1; }
.cmdk.is-open .cmdk-panel { transform: none; opacity: 1; }
.cmdk-scan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--phosphor), transparent); opacity: 0; }
.cmdk-panel.is-scan .cmdk-scan { animation: ba-tarama .7s ease-out; }
@keyframes ba-tarama { 0% { opacity: 1; transform: translateX(-100%); } 100% { opacity: 0; transform: translateX(100%); } }
.cmdk-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--hairline); }
.cmdk-head svg { width: 20px; height: 20px; color: var(--phosphor); flex: 0 0 auto; }
.cmdk-input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 1.12rem; height: 34px; caret-color: var(--phosphor); cursor: text; }
.cmdk-input::placeholder { color: var(--ink-faint); }
.cmdk-input::-webkit-search-cancel-button { display: none; }
.cmdk-esc { font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-faint); padding: 5px 8px; border-radius: 7px; border: 1px solid var(--hairline-2); cursor: pointer; }
.cmdk-body { overflow-y: auto; padding: 8px 10px 12px; overscroll-behavior: contain; }
.cmdk-group { display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.cmdk-group span { color: var(--phosphor); }
.cmdk-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 6px; }
.cmdk-item {
  display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.cmdk-item.is-sel, .cmdk-item:hover { background: rgba(0, 255, 163, 0.06); border-color: rgba(0, 255, 163, 0.25); }
.ci-img { width: 64px; height: 42px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; border: 1px solid var(--hairline); }
.ci-img img { width: 100%; height: 100%; object-fit: cover; }
.ci-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; color: var(--phosphor); background: var(--phosphor-faint); border: 1px solid rgba(0, 255, 163, 0.2); }
.ci-ico svg { width: 20px; height: 20px; }
.ci-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ci-title { font-weight: 550; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-desc { font-size: 0.86rem; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-cat { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-faint); white-space: nowrap; text-transform: uppercase; }
.cmdk-item.is-sel .ci-title { color: var(--phosphor); }
.cmdk-foot { display: flex; align-items: center; gap: 16px; padding: 11px 18px; border-top: 1px solid var(--hairline); font-size: 0.8rem; color: var(--ink-faint); }
.cmdk-foot kbd { margin-right: 4px; }
.cmdk-all { margin-left: auto; color: var(--phosphor); font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.cmdk-empty { display: grid; justify-items: center; gap: 8px; padding: 34px 10px; text-align: center; color: var(--ink-faint); }
.cmdk-empty svg { width: 200px; color: var(--phosphor); opacity: .7; }
.cmdk-empty b { color: var(--ink); font-size: 1.05rem; }
.cmdk-loading { display: flex; justify-content: center; gap: 6px; padding: 40px; }
.cmdk-loading i { width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); animation: ba-nokta 1s infinite ease-in-out; }
.cmdk-loading i:nth-child(2) { animation-delay: .15s; } .cmdk-loading i:nth-child(3) { animation-delay: .3s; }
@keyframes ba-nokta { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
html.cmdk-open { overflow: hidden; }
@media (max-width: 640px) {
  .cmdk { padding: 0; align-items: stretch; }
  .cmdk-panel { max-height: none; height: 100%; border-radius: 0; }
  .cmdk-foot span { display: none; }
  .ci-cat { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cmdk-panel, .cmdk-backdrop, .explore-panel.is-on { transition: none; animation: none; }
}

/* ---------- Yazı gövdesi: admin'den eklenen kutular (not, ipucu, uyarı) ---------- */
.not-kutusu, .ipucu-kutusu, .uyari-kutusu {
  --kc: #7DD3FC;
  position: relative; margin: 1.8em 0; padding: 18px 20px 18px 54px; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--kc) 35%, transparent);
  background: color-mix(in srgb, var(--kc) 7%, transparent);
  line-height: 1.7;
}
.ipucu-kutusu { --kc: var(--phosphor); }
.uyari-kutusu { --kc: #F59E0B; }
.not-kutusu::before, .ipucu-kutusu::before, .uyari-kutusu::before {
  position: absolute; left: 18px; top: 17px; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #07080C; background: var(--kc);
}
.not-kutusu::before { content: "i"; }
.ipucu-kutusu::before { content: "✓"; }
.uyari-kutusu::before { content: "!"; }
.not-kutusu > :first-child, .ipucu-kutusu > :first-child, .uyari-kutusu > :first-child { margin-top: 0; }
.not-kutusu > :last-child, .ipucu-kutusu > :last-child, .uyari-kutusu > :last-child { margin-bottom: 0; }

/* ---------- Mobil düzeltmeleri ---------- */
.course-band > *, .v3-grid > *, .lab-row > *, .author-band > *, .course-card .core, .cc-code { min-width: 0; }
@media (max-width: 640px) {
  /* telefonda ana sayfa daha kısa: son yazılardan 3, keşfette 2 kart */
  #son-yazilar .v3-grid > :nth-child(n+4) { display: none; }
  .explore-panel .v3-grid > :nth-child(n+3) { display: none; }
  .cc-foot { flex-wrap: wrap; }
  .cc-code pre { font-size: 0.76rem; }
  .hero-search { padding-left: 14px; }
  .hero-search .hs-kbd { display: none; }
  .hero-search input { font-size: 0.95rem; }
}
/* tablolar kutusunu tam doldursun (yazı + ders gövdesi) */
main .table-wrap > table, main article table { width: 100%; }

/* ---------- Ana sayfa: hesap araçları şeridi ---------- */
.tools-strip {
  margin-top: 18px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center;
  padding: clamp(22px, 3vw, 34px); border-radius: var(--r-shell);
  border: 1px solid rgba(217, 119, 6, .35);
  background: radial-gradient(600px 200px at 0% 0%, rgba(217, 119, 6, .12), transparent 70%), rgba(255,255,255,.02);
}
.ts-kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .18em; color: var(--copper-bright); }
.ts-title { margin-top: 10px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.ts-desc { margin-top: 8px; color: var(--ink-faint); line-height: 1.6; }
.ts-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.ts-chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border-radius: 12px;
  border: 1px solid var(--hairline-2); background: rgba(255,255,255,.03); color: var(--ink-dim); font-size: .95rem;
  transition: all .3s var(--ease);
}
.ts-ico { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--font-mono); font-size: 13px; color: #0B0D13; background: var(--copper-bright); }
.ts-chip:hover { color: var(--ink); border-color: rgba(245,158,11,.6); transform: translateY(-2px); box-shadow: 0 10px 30px -14px rgba(245,158,11,.7); }
.ts-chip--all { color: var(--copper-bright); border-color: rgba(245,158,11,.4); }
.ts-chip--all svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .tools-strip { grid-template-columns: 1fr; } .ts-chips { justify-content: flex-start; } }

/* ---------- Sesli dinle ---------- */
.m-listen { display: inline-flex; gap: 6px; align-items: center; }
.listen-btn, .listen-speed {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--phosphor); border: 1px solid var(--phosphor-soft); background: var(--phosphor-faint); transition: all .3s var(--ease);
}
.listen-btn svg { width: 15px; height: 15px; }
.listen-btn:hover { background: var(--phosphor); color: #04120C; }
.listen-btn.is-on { background: var(--phosphor); color: #04120C; box-shadow: 0 0 0 5px var(--phosphor-faint); }
.listen-btn.is-on .lw { animation: dalga 1s ease-in-out infinite; }
@keyframes dalga { 50% { opacity: .25; } }
.listen-speed { color: var(--ink-dim); border-color: var(--hairline-2); background: transparent; }
.article-body .is-okunuyor { background: linear-gradient(90deg, var(--phosphor-faint), transparent 85%); box-shadow: -3px 0 0 var(--phosphor); border-radius: 6px; transition: background .3s; }
@media (prefers-reduced-motion: reduce) { .listen-btn.is-on .lw { animation: none; } }

/* ---------- Menü: okuma listesi ikonu ---------- */
.nav-list { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--hairline-2); color: var(--ink-dim); transition: all .3s var(--ease); }
.nav-list svg { width: 16px; height: 16px; }
.nav-list:hover { color: var(--phosphor); border-color: var(--phosphor-soft); background: var(--phosphor-faint); }
.nav-list-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: #04120C; background: var(--phosphor); box-shadow: 0 0 0 2px var(--void); }

/* Üst menü rozeti (admin → Üst panel ve menü → "Rozet": YENİ, CANLI…) */
.nav-rozet { display: inline-block; margin-left: 6px; padding: 2px 6px 1px; border-radius: 99px; font-style: normal; font-size: 8.5px; letter-spacing: .14em; line-height: 1.3; vertical-align: 2px; color: #04120C; background: var(--phosphor); box-shadow: 0 0 12px rgba(0,255,163,.45); animation: navRozet 2.4s ease-in-out infinite; }
.mobile-menu .nav-rozet { font-size: 10px; vertical-align: 6px; }
@keyframes navRozet { 50% { box-shadow: 0 0 2px rgba(0,255,163,.2); } }
@media (prefers-reduced-motion: reduce) { .nav-rozet { animation: none; } }