/* ==========================================================
   tga tema — FULLWILD sürümü
   tam ekran, kenardan kenara, gözüpek tasarım
   ========================================================== */
:root {
    --bg: #0b0b0f;
    --surface: #14141b;
    --surface-2: #1c1c26;
    --text: #f4f4f6;
    --text-soft: #b9b9c7;
    --text-faint: #6d6d7e;
    --border: #262635;
    --acid: #d8ff3e;
    --violet: #8b5cf6;
    --pink: #f472b6;
    --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* vahşi arka plan doku — ince ızgara + parlama */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60rem 30rem at 85% -10%, rgba(139,92,246,.22), transparent 60%),
        radial-gradient(50rem 26rem at -10% 110%, rgba(216,255,62,.10), transparent 60%),
        repeating-linear-gradient(0deg, transparent 0 39px, rgba(255,255,255,.025) 39px 40px),
        repeating-linear-gradient(90deg, transparent 0 39px, rgba(255,255,255,.025) 39px 40px);
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    line-height: 1.05; letter-spacing: -0.03em;
    margin: 0 0 .5em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 700; text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1em; color: var(--text-soft); max-width: 70ch; }
a { color: var(--acid); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

::selection { background: var(--acid); color: #0b0b0f; }

/* ---------- TAM EKRAN ÜST ÇUBUK ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11,11,15,.75);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-inner {
    width: 100%; max-width: none;
    display: flex; align-items: center; justify-content: space-between;
    height: 72px; padding: 0 clamp(16px, 4vw, 48px);
}
.logo {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: 1.35rem; color: var(--text); text-decoration: none;
    letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; }
.logo-mark {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, var(--acid), var(--violet));
    color: #0b0b0f; display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem; font-weight: 700;
    transform: rotate(-6deg); transition: transform .25s ease;
}
.logo:hover .logo-mark { transform: rotate(6deg) scale(1.08); }
.site-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a {
    display: inline-block; padding: 9px 16px; border-radius: 999px;
    color: var(--text-soft); font-size: .95rem; font-weight: 600; text-decoration: none;
    border: 1px solid transparent; transition: all .18s ease;
}
.site-nav a:hover { color: var(--text); border-color: var(--border); }
.site-nav a.active {
    color: #0b0b0f; background: var(--acid);
    box-shadow: 0 0 24px rgba(216,255,62,.35);
}

/* ---------- TAM EKRAN İÇERİK ---------- */
main { width: 100%; }

main > * { padding-left: clamp(16px, 5vw, 64px); padding-right: clamp(16px, 5vw, 64px); }

/* markdown'ta tam ekran bölüm istiyorsan sayfana şunu ekle:
   <div class="full-hero">...</div> */
.full-hero {
    min-height: 82vh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 64px; padding-bottom: 64px;
    border-bottom: 1px solid var(--border);
}
.full-hero h1 {
    font-size: clamp(3.2rem, 11vw, 9rem);
    background: linear-gradient(100deg, var(--text) 30%, var(--acid) 65%, var(--violet));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.full-hero p { font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 46ch; }
.eyebrow {
    display: inline-block; font-family: 'Space Grotesk', sans-serif;
    font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--acid); margin-bottom: 18px;
}

/* ana sayfa akışı */
main h1:first-child { padding-top: clamp(48px, 8vw, 96px); }
main p, main ul, main ol, main blockquote, main table, main pre { margin-left: clamp(16px, 5vw, 64px); margin-right: clamp(16px, 5vw, 64px); }
main p, main li { max-width: 70ch; }
main h1, main h2, main h3, main h4 { margin-left: clamp(16px, 5vw, 64px); margin-right: clamp(16px, 5vw, 64px); margin-top: 1.6em; }
main > p:first-of-type { font-size: 1.25rem; color: var(--text-soft); }

blockquote {
    margin-top: 1.5em; margin-bottom: 1.5em;
    padding: 20px 28px; max-width: none !important;
    border-left: 4px solid var(--acid);
    background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.25rem; font-family: 'Space Grotesk', sans-serif; color: var(--text);
}
blockquote p { color: var(--text); margin: 0; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .85em; background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 6px; padding: 2px 8px; color: var(--acid);
}
pre {
    background: #060609; border: 1px solid var(--border);
    padding: 22px 26px; border-radius: var(--radius);
    overflow-x: auto; font-size: .92rem; line-height: 1.65;
}
pre code { background: none; border: none; padding: 0; color: #e4e4ef; }

table { width: calc(100% - 2 * clamp(16px, 5vw, 64px)); border-collapse: collapse; font-size: .95rem; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
th { font-family: 'Space Grotesk', sans-serif; color: var(--acid); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
tr:last-child td { border-bottom: none; }

hr { border: none; border-top: 1px solid var(--border); margin: 56px 0; }

/* ---------- BUTONLAR ---------- */
.btn, main a.btn {
    display: inline-block; padding: 14px 30px; border-radius: 12px;
    background: var(--acid); color: #0b0b0f;
    font-weight: 700; font-size: 1rem; text-decoration: none;
    box-shadow: 0 0 32px rgba(216,255,62,.25);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px) scale(1.02); box-shadow: 0 0 48px rgba(216,255,62,.45); }

/* ---------- BLOG — TAM EKRAN KART IZGARASI ---------- */
.posts-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; padding: 32px clamp(16px, 5vw, 64px) 72px;
}
.post {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px;
    position: relative; overflow: hidden;
    transition: transform .2s ease, border-color .2s ease;
}
.post::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--acid), var(--violet), var(--pink));
    transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.post:hover { transform: translateY(-4px); border-color: #3a3a4e; }
.post:hover::after { transform: scaleX(1); }
.post h2, .post h3 { margin: 0 0 10px; font-size: 1.3rem; }
.post h2 a, .post h3 a { color: var(--text); }
.post h2 a:hover, .post h3 a:hover { color: var(--acid); text-decoration: none; }
.post p { margin: 0; font-size: .95rem; }
.post .date { display: block; margin-top: 16px; font-size: .8rem; color: var(--text-faint); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- 404 — TAM EKRAN ---------- */
.error-page {
    min-height: 78vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; text-align: center;
}
.error-page .code {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(7rem, 26vw, 20rem); font-weight: 700; line-height: .9;
    background: linear-gradient(120deg, var(--acid), var(--violet), var(--pink));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.error-page p { font-size: 1.3rem; margin: 20px 0 32px; }

/* ---------- TAM EKRAN FOOTER + KAYAN YAZI ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-marquee { overflow: hidden; border-bottom: 1px solid var(--border); padding: 18px 0; }
.marquee-track {
    display: flex; gap: 0; white-space: nowrap; width: max-content;
    font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.6rem); text-transform: uppercase;
    color: transparent; -webkit-text-stroke: 1px #3a3a4e;
    animation: kaydir 22s linear infinite;
}
.marquee-track span { padding-right: 24px; }
@keyframes kaydir { to { transform: translateX(-50%); } }
.footer-bar {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
    padding: 22px clamp(16px, 4vw, 48px); color: var(--text-faint); font-size: .9rem;
}
.to-top { color: var(--acid); font-weight: 600; }

/* ---------- MOBİL ---------- */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .nav-inner { height: 60px; }
    .logo { font-size: 1.1rem; }
    .site-nav a { padding: 7px 11px; font-size: .85rem; }
    .full-hero { min-height: 70vh; }
    .posts-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}
