/* ============================================================
   Rızahan Osman — v6 · mühendis atölyesi (olgun, sade, teknik)
   ============================================================ */
:root {
    --paper: #f5f4ef;
    --white: #ffffff;
    --ink: #15191c;
    --muted: #535a5f;
    --faint: #80878c;
    --line: #d9d7cf;
    --line-strong: #15191c;
    --grid: #ebe9e2;
    --accent: #0f5c63;
    --accent-dark: #0a4349;
    --copper: #b4541f;
    --maxw: 1140px;
    --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    background-color: var(--paper);
    background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
    background-size: 32px 32px;
    color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); }
.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* ---------- üst çubuk ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 244, 239, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-strong); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; }
.brand .dot { display: none; }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; transition: color .15s, border-color .15s; }
.nav-links a:hover { color: var(--ink); border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); font-size: 1.2rem; cursor: pointer; padding: 4px 8px; }

/* ---------- butonlar / bağlantılar ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; font-family: var(--mono); font-size: .76rem; letter-spacing: .05em; text-transform: uppercase; font-weight: 500; border: 1px solid var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; border-radius: 2px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.more, .more-link { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid transparent; }
.more:hover, .more-link:hover { border-color: var(--accent); }

/* ---------- hero ---------- */
.hero-me { padding: 80px 0 84px; border-bottom: 1px solid var(--line-strong); }
.hero-me-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.eyebrow { display: block; font-family: var(--mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.hero-me h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin-bottom: 26px; }
.hero-me h1 .u { background: none; }
.hero-me .lead { font-size: 1.12rem; color: var(--muted); max-width: 500px; }
.tags-line { display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 4px; font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tags-line span + span::before { content: "/"; margin: 0 12px; color: var(--line); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }

.mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; }
.mosaic figure { position: relative; overflow: hidden; background: var(--white); border: 1px solid var(--line-strong); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); color: #fff; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; }
.m-a { grid-row: span 2; }
.m-d { grid-column: span 2; }

/* ---------- bölümler ---------- */
.section { padding: 92px 0; border-bottom: 1px solid var(--line-strong); }
.section.alt { background: rgba(255, 255, 255, .7); }
.section.tint { background: #ecf1f0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 10px; font-weight: 600; }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 520px; }
.kicker { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); background: none; border: 0; padding: 0; }
.kicker::before { content: ""; width: 32px; height: 1px; background: var(--accent); margin: 0; opacity: 1; }
.center { text-align: left; }

/* etkinlik listesi */
.rows { list-style: none; border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 104px 1fr auto; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.row-year { font-family: var(--mono); font-size: .82rem; color: var(--copper); letter-spacing: .02em; padding-top: 3px; }
.row-year:empty { display: none; }
.row-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.row h3 { font-size: 1.28rem; margin: 4px 0 6px; font-weight: 600; }
.row p { color: var(--muted); max-width: 640px; font-size: .95rem; }
.row .more { margin-top: 12px; }
.row-media { width: 200px; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--line); background: #fff; }
.row-media.contain { object-fit: contain; padding: 6px; }

/* ödüller (koyu bölüm) */
.section.dark { background: #14181b; color: #e9ebec; border-bottom-color: #14181b; }
.section.dark h2 { color: #fff; }
.section.dark .kicker { color: #8fc3c8; }
.section.dark .kicker::before { background: #8fc3c8; }
.awards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(255,255,255,.4); border-bottom: 1px solid rgba(255,255,255,.14); align-items: start; }
.award { padding: 30px 32px 32px 0; display: flex; flex-direction: column; gap: 10px; }
.award + .award { padding: 30px 0 32px 32px; border-left: 1px solid rgba(255,255,255,.14); }
.award .prize { font-size: 2.4rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.award h3 { font-size: 1.1rem; color: #fff; }
.award p { color: #aeb5b9; font-size: .94rem; }
.award .card-tag { color: #8fc3c8; }
.award .more-link { color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); align-self: flex-start; }
.award .more-link:hover { border-color: #fff; }
.award-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border: 1px solid rgba(255,255,255,.2); }
.card-tag { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* Ivarium */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 68px; align-items: center; }
.split h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 16px; }
.split p { color: var(--muted); margin-bottom: 22px; }
.shadow-img { width: 100%; border: 1px solid var(--line); background: #fff; }
.facts-list { list-style: none; border-top: 1px solid var(--line-strong); margin-bottom: 28px; }
.facts-list li { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.facts-list span { font-family: var(--mono); font-size: .8rem; color: var(--copper); }

/* oyunlar */
.game-hero { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--white); border: 1px solid var(--line-strong); margin-bottom: 36px; }
.game-hero .g-media { border-right: 1px solid var(--line-strong); }
.game-hero .g-media img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }
.game-hero .g-body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.game-hero h3 { font-size: 1.9rem; }
.game-hero p { color: var(--muted); }
.game-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: block; background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.card:hover { border-color: var(--ink); }
.card-media { aspect-ratio: 16/10; overflow: hidden; background: #eceae4; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { font-size: 1.15rem; margin: 6px 0 8px; }
.card-body p { color: var(--muted); font-size: .93rem; }

/* galeri */
.gal { padding: 0 0 36px; }
.gal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; margin-bottom: 14px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.gal-head h3 { font-size: 1.2rem; }
.gal-head p { color: var(--muted); font-size: .9rem; }
.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gal-grid a { display: block; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); background: #eceae4; }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gal-grid a:hover img { transform: scale(1.04); }

/* pist */
.spec { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 36px; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line); }
.spec div { display: flex; flex-direction: column; padding: 16px 18px 16px 0; }
.spec div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.spec b { font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.spec span { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-top: 2px; }
.sub-title { margin: 52px 0 16px; font-size: 1.15rem; font-family: var(--mono); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.yt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 24px; }
.yt-thumb { position: relative; display: block; width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); padding: 0; cursor: pointer; background: #000; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.yt-thumb:hover img { opacity: .85; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play .icon { width: 54px; height: 54px; padding: 15px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); box-sizing: border-box; }
.yt iframe { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); }
.yt-title { margin-top: 12px; font-size: .93rem; font-weight: 500; line-height: 1.4; }
.shorts { display: flex; gap: 20px; overflow-x: auto; padding: 4px 4px 20px 0; scroll-snap-type: x mandatory; }
.yt.short { flex: 0 0 200px; scroll-snap-align: start; }
.yt.short .yt-thumb, .yt.short iframe { aspect-ratio: 9/16; }
.yt.short .yt-title { font-size: .85rem; }
.yt.short .yt-play .icon { width: 44px; height: 44px; padding: 12px; }

/* basında */
.news-list { list-style: none; border-top: 1px solid var(--line-strong); }
.news-list a { display: grid; grid-template-columns: 230px 1fr 20px; gap: 24px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid var(--line); transition: padding .2s; }
.news-list a:hover { padding-left: 8px; }
.news-list a:hover b { color: var(--accent); }
.news-src { font-family: var(--mono); font-size: .68rem; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.news-list b { font-weight: 500; font-size: 1.05rem; line-height: 1.4; letter-spacing: -.01em; }
.news-list .icon { color: var(--faint); }

/* iletişim */
.cta { padding: 88px 0; background: #14181b; color: #e9ebec; }
.cta h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); margin-bottom: 18px; }
.cta .mail { font-family: var(--mono); font-size: clamp(1.05rem, 2.4vw, 1.5rem); color: #fff; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; transition: border-color .2s; }
.cta .mail:hover { border-color: #fff; }
.cta-links { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 34px; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.cta-links a { color: #aeb5b9; border-bottom: 1px solid transparent; }
.cta-links a:hover { color: #fff; border-color: #fff; }

.footer { background: #14181b; color: #8e969b; padding: 0 0 32px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 28px; font-size: .84rem; }
.footer .brand { color: #fff; font-size: 1rem; margin-bottom: 4px; }
.footer a:hover { color: #fff; }
.footer .social { display: flex; gap: 18px; font-size: 1.1rem; }

/* ---------- iç sayfalar ---------- */
.detail-hero { padding: 64px 0 0; }
.breadcrumb { font-family: var(--mono); font-size: .74rem; color: var(--faint); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .06em; }
.breadcrumb a:hover { color: var(--ink); }
.detail-title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 8px 0 16px; }
.detail-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; margin-bottom: 28px; align-items: center; }
.detail-meta span { color: var(--ink); font-weight: 600; }
.detail-meta > div { display: inline-flex; align-items: center; gap: 7px; }
.detail-cover { border: 1px solid var(--line-strong); margin-bottom: 44px; background: #fff; }
.prose { max-width: 720px; margin: 0 auto; color: #30363a; font-size: 1.05rem; }
.prose h2, .prose h3 { margin: 38px 0 12px; font-size: 1.5rem; }
.prose p { margin-bottom: 18px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose img { margin: 24px 0; border: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 40px auto; max-width: 900px; }
.gallery img { border: 1px solid var(--line); width: 100%; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.tag { padding: 3px 12px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .74rem; }
.ticks { list-style: none; margin: 0 0 18px; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: 8px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 10px; height: 1px; background: var(--copper); }
.game-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.game-icon { width: 108px; height: 108px; border-radius: 22px; border: 1px solid var(--line); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 48px 0 0; }
.shots img { border: 1px solid var(--line); width: 100%; }
.article-card .card-media { aspect-ratio: 16/9; }
.article-meta { display: flex; gap: 8px; align-items: center; color: var(--faint); font-family: var(--mono); font-size: .74rem; margin-top: 12px; }
.kind-badge { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-pill { padding: 6px 16px; border: 1px solid var(--line-strong); font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.filter-pill:hover { background: var(--ink); color: #fff; }
.filter-pill.active { background: var(--ink); color: #fff; }
.empty { padding: 56px 20px; color: var(--faint); grid-column: 1 / -1; }
.text-danger { color: #b3261e; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); }
.link-card { display: flex; align-items: center; gap: 16px; padding: 20px 8px; border-bottom: 1px solid var(--line); font-size: 1.4rem; color: var(--accent); transition: padding .2s; }
.link-card:hover { padding-left: 16px; }
.link-card div { display: flex; flex-direction: column; color: var(--ink); font-size: 1rem; line-height: 1.3; }
.link-card span { color: var(--faint); font-size: .84rem; }
main > .section:first-child { padding-top: 64px; }

/* ---------- hareket ---------- */
.reveal { opacity: 0; transition: opacity .5s ease; }
.reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transition: none; } html { scroll-behavior: auto; } }

/* ---------- duyarlı ---------- */
.hero-me-grid > *, .split > *, .game-hero > * { min-width: 0; }
@media (max-width: 960px) {
    .hero-me-grid, .split, .game-hero, .awards { grid-template-columns: 1fr; gap: 40px; }
    .game-hero .g-media { border-right: 0; border-bottom: 1px solid var(--line-strong); }
    .award, .award + .award { padding: 26px 0; border-left: 0; }
    .award + .award { border-top: 1px solid rgba(255,255,255,.14); }
    .mosaic { grid-auto-rows: 120px; }
    .grid, .yt-grid { grid-template-columns: repeat(2, 1fr); }
    .gal-grid { grid-template-columns: repeat(2, 1fr); }
    .spec { grid-template-columns: repeat(2, 1fr); }
    .spec div:nth-child(3) { padding-left: 0; border-left: 0; }
    .row { grid-template-columns: 90px 1fr; }
    .row-media { display: none; }
    .nav-links { position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 28px 14px; border-bottom: 1px solid var(--line-strong); display: none; }
    .nav-links.open { display: flex; }
    .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-toggle { display: block; }
}
@media (max-width: 620px) {
    .section { padding: 60px 0; }
    .hero-me { padding: 48px 0 56px; }
    .grid, .grid-2, .yt-grid, .gallery { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; gap: 6px; }
    .news-list a { grid-template-columns: 1fr 20px; gap: 4px 12px; }
    .news-src, .news-list b { grid-column: 1; }
    .news-list .icon { grid-column: 2; grid-row: 1 / span 2; }
    .game-hero .g-body { padding: 24px; }
    .spec { grid-template-columns: 1fr; }
    .spec div, .spec div + div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); }
}
