/* ============================================================
   Rızahan Osman — açık & ferah tasarım sistemi
   ============================================================ */
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #f0f2f5;
    --border: #e5e8ed;
    --border-strong: #d4d9e0;
    --text: #161a22;
    --text-dim: #5b6472;
    --text-mute: #8b93a1;
    --accent: #ef3e54;
    --accent-2: #ff7a45;
    --accent-soft: #fdeef0;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
    --shadow: 0 12px 32px -12px rgba(16, 24, 40, 0.18);
    --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, 0.28);
    --maxw: 1180px;
    --font: 'Plus Jakarta Sans', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .18s ease; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.14; letter-spacing: -.025em; color: var(--text); }
.accent { color: var(--accent); }
.muted { color: var(--text-dim); }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; flex-shrink: 0; }

/* ---------- navbar ---------- */
.nav {
    position: sticky; top: 0; z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 800; font-size: 1.12rem; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.nav-links { display: flex; gap: 28px; align-items: center; list-style: none; }
.nav-links a { color: var(--text-dim); font-weight: 600; font-size: .92rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.4rem; }

/* ---------- hero (saf CSS, JS yok) ---------- */
.hero { position: relative; padding: 130px 0 96px; text-align: center; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -10% -10% auto -10%; height: 120%; z-index: 0; pointer-events: none;
    background:
        radial-gradient(560px circle at 22% 18%, rgba(239, 62, 84, 0.12), transparent 55%),
        radial-gradient(620px circle at 80% 12%, rgba(255, 122, 69, 0.12), transparent 55%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-content { position: relative; z-index: 1; }
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border: 1px solid var(--border);
    border-radius: 100px; font-size: .8rem; color: var(--text-dim); background: var(--surface);
    margin-bottom: 26px; font-weight: 600; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-bottom: 18px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero .typed-wrap { font-size: clamp(1.1rem, 3vw, 1.7rem); color: var(--text-dim); font-weight: 700; min-height: 2em; }
.hero .typed-text { color: var(--accent); }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero-social { display: flex; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-social a {
    width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 1.15rem;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); box-shadow: var(--shadow-sm);
    transition: all .22s ease;
}
.hero-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; padding: 12px 24px; border-radius: 100px; font-weight: 700; font-size: .92rem; border: 1px solid transparent; transition: all .2s ease; font-family: var(--font); }
.btn-primary { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 22px -10px rgba(239, 62, 84, 0.7); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -10px rgba(239, 62, 84, 0.6); }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- section heading ---------- */
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { color: var(--accent); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin: 12px 0; }
.section-head p { color: var(--text-dim); }

/* ---------- filter pills ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 42px; }
.filter-pill { padding: 9px 20px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font-weight: 600; font-size: .86rem; cursor: pointer; transition: all .18s ease; }
.filter-pill:hover { color: var(--text); border-color: var(--border-strong); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- cards ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.card.hide { display: none; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-body { padding: 20px 22px; }
.card-tag { font-size: .72rem; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .08em; }
.card-body h3 { font-size: 1.18rem; margin: 8px 0 6px; }
.card-body p { color: var(--text-dim); font-size: .9rem; }
.card-featured { position: absolute; top: 14px; right: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; font-size: .68rem; font-weight: 800; padding: 6px 11px; border-radius: 100px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow-sm); }

/* ---------- article ---------- */
.article-card .card-media { aspect-ratio: 16/9; }
.article-meta { display: flex; gap: 8px; align-items: center; color: var(--text-mute); font-size: .8rem; margin-top: 12px; }
.kind-badge { display: inline-block; padding: 4px 12px; border-radius: 100px; font-size: .72rem; font-weight: 800; }
.kind-software { background: #eaf2ff; color: #2563eb; }
.kind-hobby { background: #e7f8f0; color: #0d9f6e; }

/* ---------- detail ---------- */
.detail-hero { padding: 56px 0 0; }
.breadcrumb { color: var(--text-mute); font-size: .85rem; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--accent); }
.detail-title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 10px 0 18px; }
.detail-meta { display: flex; gap: 22px; flex-wrap: wrap; color: var(--text-dim); font-size: .9rem; margin-bottom: 34px; align-items: center; }
.detail-meta span { color: var(--text); font-weight: 700; }
.detail-meta > div { display: inline-flex; align-items: center; gap: 7px; }
.detail-cover { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 42px; }
.prose { max-width: 760px; margin: 0 auto; color: var(--text-dim); font-size: 1.06rem; }
.prose h2, .prose h3 { color: var(--text); margin: 32px 0 14px; }
.prose p { margin-bottom: 18px; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: var(--radius-sm); margin: 24px 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 42px auto; max-width: 900px; }
.gallery img { border-radius: var(--radius-sm); border: 1px solid var(--border); width: 100%; box-shadow: var(--shadow-sm); }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.tag { padding: 5px 14px; border-radius: 100px; background: var(--surface-2); border: 1px solid var(--border); font-size: .8rem; color: var(--text-dim); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 50px 0 38px; margin-top: 64px; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer .social { display: flex; gap: 12px; }
.footer .social a { color: var(--text-mute); font-size: 1.2rem; }
.footer .social a:hover { color: var(--accent); }
.footer small { color: var(--text-mute); }
.footer a:hover { color: var(--accent); }

.empty { text-align: center; padding: 60px 20px; color: var(--text-mute); grid-column: 1 / -1; }

@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { position: fixed; inset: 60px 0 auto 0; flex-direction: column; background: var(--surface); padding: 22px 24px; border-bottom: 1px solid var(--border); display: none; gap: 16px; box-shadow: var(--shadow); }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
}
@media (max-width: 600px) { .grid, .grid-2, .gallery { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
