/* ==========================================================================
   ae-modern.css — modern gorus katmani (Lingonberry uzerine)
   Faz 0: tasarim sistemi (renk/typografi/mesafe)
   Faz 1: hero + yapiskan cam menu
   Faz 2: proje karolari
   Not: /aestyle.css, /btnstil.css SONRA linklenir (cascade sirasi: bu dosya kazanir).
   ========================================================================== */

/* ---------------- 0. TASARIM SISTEMI ---------------- */
:root {
  --ae-primary: #0077b6;
  --ae-primary-soft: #33a9dc;
  --ae-primary-deep: #023047;
  --ae-cta: #43a047;
  --ae-cta-dark: #2e7d32;
  --ae-ink: #182430;
  --ae-body: #41505f;
  --ae-muted: #64748b;
  --ae-line: #e2e8f0;
  --ae-bg-soft: #f4f7fa;
  --ae-radius-sm: 8px;
  --ae-radius-md: 14px;
  --ae-radius-lg: 22px;
  --ae-shadow-sm: 0 1px 3px rgba(2,24,40,.08), 0 4px 14px rgba(2,24,40,.06);
  --ae-shadow-md: 0 8px 28px rgba(2,24,40,.14);
  --ae-shadow-lg: 0 18px 48px rgba(2,24,40,.22);
  --ae-font: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ae-font-display: "Raleway", "Lato", "Segoe UI", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ae-font);
  color: var(--ae-body);
  font-size: clamp(15.5px, 0.35vw + 14.5px, 17px);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--ae-font-display);
  color: var(--ae-ink);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
}

::selection { background: rgba(0,119,182,.28); }

:focus-visible {
  outline: 3px solid rgba(0,119,182,.55);
  outline-offset: 2px;
  border-radius: 3px;
}

/* aestyle.css'in GLOBAL link sweep'ini (a::before aquamarine + her linkte
   hover shadow) kapatir; efekt yalnizca makale icerigi linklerinde yasamaya
   devam eder (oraya ait bir stildir). */
a::before { display: none; }
a:hover { box-shadow: none; border-radius: 0; }
.post-content a::before, .entry-content a::before { display: block; }
.post-content a:hover, .entry-content a:hover {
  border-radius: 5px;
  box-shadow: 6px 6px 4px rgba(0,0,0,.16);
}

/* ---------------- 1. HERO + NAV ---------------- */
.header { height: 200px; }

/* Hero arkaplan: night.jpg 1341x200'luk bir bant — hero'nun ~450px
   yuksekliginde varsayilan 'repeat' ile tekrar ediyordu (cover ise 2x
   blur yapardi). Yerine header bandiyla ton uyumlu CSS gradyan:
   gece govdesi (ustte koyu lacivert) -> alacakaranlik mavisine akis. */
.ae-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
  background-color: #030b14;
  background-image:
    radial-gradient(1100px 480px at 82% -8%, rgba(51, 169, 220, .22), transparent 60%),
    radial-gradient(900px 460px at 12% 112%, rgba(0, 119, 182, .30), transparent 55%),
    linear-gradient(165deg, #04121f 0%, #062a40 48%, #0a3a58 100%);
}
/* header bandindan hero'ya akis icin ustte neredeyse seffaf,
   altta koyu gradient (metin kontrasti) */
.ae-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(1,8,16,.12) 0%, rgba(1,12,26,.55) 55%, rgba(1,14,30,.82) 100%);
}
.ae-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 78px 20px 92px;
  text-align: center;
}
.ae-hero-eyebrow {
  font-family: var(--ae-font-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .8rem;
  color: rgba(178,224,250,.92);
  margin: 0 0 16px;
}
.ae-hero-title {
  font-size: clamp(1.85rem, 4.6vw, 3.25rem);
  line-height: 1.14;
  margin: 0 0 18px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.5);
  font-weight: 800;
}
.ae-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  color: rgba(233,244,252,.85);
  margin: 0 0 36px;
  letter-spacing: .01em;
}
.ae-hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.ae-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--ae-font-display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.ae-btn-primary {
  background: var(--ae-cta);
  color: #fff;
  box-shadow: 0 6px 20px rgba(67,160,71,.42);
}
.ae-btn-primary:hover {
  background: var(--ae-cta-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(67,160,71,.5);
}
.ae-btn-ghost {
  border: 2px solid rgba(255,255,255,.75);
  color: #fff;
  background: rgba(255,255,255,.06);
}
.ae-btn-ghost:hover {
  background: rgba(255,255,255,.16);
  border-color: #fff;
  transform: translateY(-2px);
}

/* Yapiskan cam menu (scroll'da ustte kaliyor) */
.ae-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ae-line);
  box-shadow: 0 2px 14px rgba(2,24,40,.07);
}
.ae-nav .blog-menu a {
  font-family: var(--ae-font-display);
  font-weight: 600;
  color: var(--ae-ink);
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ae-nav .blog-menu a:hover {
  color: var(--ae-primary);
  border-bottom-color: var(--ae-primary-soft);
}
.ae-nav .blog-menu li.current a,
.ae-nav .blog-menu li.current-menu-item a {
  color: var(--ae-primary);
  border-bottom-color: var(--ae-primary);
}

/* ---------------- 2. PROJE KAROLARI ---------------- */
/* Flex + justify-center: son satir (orn. 3+2 dizilim) sayfa ortasinda
   hizalaniyor; grid'de kalinan bozukluk olusmuyordu. */
.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  max-width: 1120px;
  margin: 40px auto 48px;
  padding: 0 16px;
}
.button-container > a {
  display: block;
  flex: 0 1 300px;
  min-width: 250px;
}

.category-button {
  position: relative;
  width: auto !important;
  height: auto !important;
  min-height: 215px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  border-radius: var(--ae-radius-md);
  overflow: hidden;
  background-color: #06283d;
  color: #fff;
  font-family: var(--ae-font-display);
  font-size: 1.18rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  box-shadow: var(--ae-shadow-sm);
  transition: transform .35s ease, box-shadow .35s ease;
}
/* btnstil.css'in ::before'ina (gorsel) modern davranis: tam opak, hover'da yumusak zoom */
.category-button::before {
  opacity: 1;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
/* gradient: metin ortada oldugu icin tum yuze hafif, altta kuvvetli
   karartma (okunurluk) */
.category-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3,20,34,.28) 0%, rgba(3,20,34,.38) 55%, rgba(3,20,34,.72) 100%);
}
.ae-tile-label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ae-tile-arrow {
  font-size: .9em;
  transition: transform .3s ease;
}
.category-button:hover,
.button-container > a:hover .category-button {
  transform: translateY(-5px);
  box-shadow: var(--ae-shadow-lg);
}
/* btnstil'deki 3D rotasyonu sade zoom'a cevirir (ayni spesifiklik, bu dosya sonra) */
.category-button:hover::before {
  transform: scale(1.08) rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  opacity: 1;
}
.category-button:hover .ae-tile-arrow { transform: translateX(5px); }

/* ---------------- MIKRO 4: TABLOLAR ----------------
   Yalnizca makale govdesi (papers/ statik sayfa — kendi stili var,
   dokunulmaz). Siner: borderless lingonberry varsayilani -> modern
   tablo: koyu mavi baslik, ince iletken grid, yumusak hover.
   aestyle.css'in 'table tr:hover td { #ddd !important }' kuralini
   yalnizca bu kapsami icinde ustun spesifikasyonla degistirir;
   diger tablolari (orn. CSE arama) etkilemez. */
.post .post-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ae-line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.92em;
  margin: 1.3em 0;
  box-shadow: var(--ae-shadow-sm);
  background: #fff;
}
.post .post-content th {
  background: var(--ae-primary-deep);
  color: #fff;
  text-align: left;
  padding: 9px 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.post .post-content td {
  padding: 8px 13px;
  border-top: 1px solid var(--ae-line);
  color: var(--ae-body);
}
.post .post-content tbody tr { transition: background-color 0.15s ease; }
.post .post-content tbody tr:hover td {
  background-color: rgba(0, 119, 182, 0.06) !important;
}
@media (max-width: 640px) {
  .post .post-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ---------------- MIKRO 3: TEK YAZI TIPOGRAFISI ----------------
   Yalnizca metin stili (boyut/mesafe/renk); yerlesim/baloncuk
   kart degismez. Kapsam: .post .post-content (makale govdesi). */
.post .post-content > p { margin: 0 0 1.15em; line-height: 1.75; }
.post .post-content h2 {
  font-size: 1.45rem;
  margin: 1.8em 0 0.7em;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ae-line);
}
.post .post-content h3 {
  font-size: 1.2rem;
  margin: 1.6em 0 0.55em;
  color: var(--ae-primary-deep);
}
.post .post-content h4 { font-size: 1.05rem; margin: 1.4em 0 0.45em; }
.post .post-content blockquote {
  margin: 1.4em 0;
  padding: 12px 20px;
  border-left: 4px solid var(--ae-primary);
  background: var(--ae-bg-soft);
  border-radius: 0 8px 8px 0;
  color: var(--ae-ink);
}
.post .post-content blockquote p { margin-bottom: 0; }
.post .post-content ul,
.post .post-content ol { margin: 0 0 1.2em; padding-left: 1.5em; }
.post .post-content li { margin-bottom: 0.4em; line-height: 1.65; }

/* Tek yazi basligi + meta (yalnizca .posts'ta tek .post oldugunda) */
.post:only-child .post-title { font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.22; }
.post:only-child .post-title a { color: var(--ae-ink); transition: color .2s ease; }
.post:only-child .post-title a:hover { color: var(--ae-primary); }
.post:only-child .post-meta { color: var(--ae-muted); margin-top: 10px; font-size: 0.9rem; }

/* ---------------- MIKRO 2: OKUMA ILERLEME CUBUGU ----------------
   Sabit ust cizgi (3px, mavi gradyan). Yalnizca tek yazi/proje
   sayfalarinda (tek .post icinde .post-content) gosterilir; liste
   sayfalarinda ve iceriksiz sayfalarda JS gizler. */
.ae-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ae-primary), var(--ae-primary-soft));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 1200;
  pointer-events: none;
}

/* ---------------- MIKRO 1: MODERN KOD BLOKLARI ----------------
   Inline <code> (sudo apt ..., Ctrl+B; d ...): gri #EEE -> mavi tonlu,
   yumusak radius. <pre> (blok kod): aydinlatma yerine koyu modern blok,
   uzun satirlarda yatay kaydirma (pre-wrap degil). */
code, kbd, pre {
  font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}
.post-content code {
  background: rgba(0, 119, 182, .10);
  color: #023e5e;
  padding: 2px 7px;
  border-radius: 6px;
}
.post-content pre {
  background: #0e1c28;
  color: #d9e6f2;
  padding: 14px 18px;
  border-radius: 8px;
  overflow-x: auto;
  line-height: 1.55;
  margin: 1.2em 0;
  white-space: pre;
  word-wrap: normal;
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* ---------------- MOBIL CILASI ---------------- */
@media (max-width: 640px) {
  .ae-hero-inner { padding: 56px 16px 64px; }
  .ae-btn { padding: 12px 24px; font-size: .95rem; }
  .button-container { margin-top: 26px; }
  .button-container > a { flex: 1 1 100%; max-width: 440px; min-width: 0; }
  .category-button { min-height: 185px; font-size: 1.08rem; }
}
