/* ==========================================================
   Kişisel Web Sitesi — Mert Can CANPOLAT
   Liquid Glass & Script Tasarım Sistemi
   ========================================================== */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
}

@font-face {
    font-family: "JetBrains Mono";
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
    src: url("fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1EFF;
}

/* ---------- Renk & Liquid Glass Değişkenleri ---------- */

:root {
    --bg: #07090e;
    --glass-top: rgba(255, 255, 255, 0.08);
    --glass-bottom: rgba(255, 255, 255, 0.025);
    --glass-hover-top: rgba(255, 255, 255, 0.13);
    --glass-hover-bottom: rgba(255, 255, 255, 0.045);
    --glass-pill: rgba(255, 255, 255, 0.095);
    --glass-highlight: rgba(255, 255, 255, 0.22);
    --glass-inner: rgba(255, 255, 255, 0.035);
    --glass-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.6), 0 1px 0 rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(10, 13, 20, 0.68);
    --border: rgba(255, 255, 255, 0.11);
    --border-hover: rgba(255, 255, 255, 0.26);
    --grid-dot: rgba(255, 255, 255, 0.045);
    --glow-1: rgba(56, 189, 248, 0.12);
    --glow-2: rgba(99, 102, 241, 0.09);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --subtle: #64748b;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.14);
    --status: #10b981;

    /* Oyun yüzeyleri (site paletiyle uyumlu, kopkoyu olmayan slate tonları) */
    --game-surface: #161d2b;
    --game-surface-2: #1c2536;
    --game-stats-bg: linear-gradient(180deg, rgba(30, 41, 59, 0.55), rgba(22, 29, 43, 0.5));
    --game-overlay: rgba(22, 29, 43, 0.78);
    --game-chip-bg: linear-gradient(135deg, rgba(51, 65, 85, 0.55), rgba(30, 41, 59, 0.5));
    --game-inset: inset 0 2px 8px rgba(0, 0, 0, 0.25);
    --game-window-shadow: 0 20px 48px -14px rgba(0, 0, 0, 0.5);

    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --max: 830px;
    --radius: 14px;
    --ease-fluid: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.2, 0.9, 0.3, 1);
}

[data-theme="light"] {
    --bg: #eef2f7;
    --glass-top: rgba(255, 255, 255, 0.85);
    --glass-bottom: rgba(255, 255, 255, 0.55);
    --glass-hover-top: rgba(255, 255, 255, 0.96);
    --glass-hover-bottom: rgba(255, 255, 255, 0.72);
    --glass-pill: rgba(15, 23, 42, 0.075);
    --glass-highlight: rgba(255, 255, 255, 0.98);
    --glass-inner: rgba(255, 255, 255, 0.55);
    --glass-shadow: 0 14px 32px -10px rgba(15, 23, 42, 0.1), 0 1px 0 rgba(255, 255, 255, 0.9);
    --nav-bg: rgba(240, 244, 250, 0.72);
    --border: rgba(15, 23, 42, 0.1);
    --border-hover: rgba(15, 23, 42, 0.22);
    --grid-dot: rgba(15, 23, 42, 0.055);
    --glow-1: rgba(2, 132, 199, 0.1);
    --glow-2: rgba(79, 70, 229, 0.07);
    --text: #0f172a;
    --muted: #475569;
    --subtle: #64748b;
    --accent: #0284c7;
    --accent-soft: rgba(2, 132, 199, 0.11);
    --status: #059669;

    --game-surface: #f8fafc;
    --game-surface-2: #eef2f7;
    --game-stats-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(241, 245, 249, 0.6));
    --game-overlay: rgba(248, 250, 252, 0.82);
    --game-chip-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 249, 0.85));
    --game-inset: inset 0 2px 6px rgba(15, 23, 42, 0.06);
    --game-window-shadow: 0 18px 40px -14px rgba(15, 23, 42, 0.18);
}

/* ---------- Temel Sıfırlama & Ortam Işığı ---------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(650px circle at 15% 0%, var(--glow-1), transparent 70%),
        radial-gradient(550px circle at 85% 12%, var(--glow-2), transparent 70%),
        radial-gradient(var(--grid-dot) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 24px 24px;
    background-attachment: fixed, fixed, scroll;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    touch-action: manipulation;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.25s var(--ease-fluid), color 0.25s var(--ease-fluid);
}

body.konami-boost {
    filter: saturate(140%) hue-rotate(20deg);
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent);
    color: var(--bg);
}

h1, h2, h3 {
    color: var(--text);
    letter-spacing: -0.025em;
    line-height: 1.25;
}

section[id] {
    scroll-margin-top: 5.5rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ---------- Okuma / Kaydırma İlerleme Çubuğu ---------- */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    box-shadow: 0 0 10px var(--accent);
    z-index: 200;
    transition: width 0.1s var(--ease-fluid);
}

/* ---------- Üst Navigasyon (Liquid Glass Bar) ---------- */

.top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: saturate(190%) blur(22px);
    -webkit-backdrop-filter: saturate(190%) blur(22px);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 -1px 0 0 var(--glass-inner), 0 8px 24px -10px rgba(0, 0, 0, 0.4);
}

.top-bar-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.brand {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
    padding: 0.26rem 0.54rem;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: border-color 0.2s var(--ease-fluid), background 0.2s var(--ease-fluid), transform 0.2s var(--ease-fluid);
}

.brand:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.brand:active {
    transform: translateY(0.5px) scale(0.98);
}

.brand-logo {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: transform 0.2s var(--ease-fluid);
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-path {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--subtle);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.brand-path strong {
    color: var(--muted);
    font-weight: 500;
}

.cursor {
    display: inline-block;
    width: 6px;
    height: 13px;
    background: var(--accent);
    margin-left: 4px;
    opacity: 0.8;
    animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink {
    to { visibility: hidden; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 0.22rem;
    border-radius: 999px;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.18s var(--ease-fluid), background 0.18s var(--ease-fluid), box-shadow 0.18s var(--ease-fluid);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-links a.active {
    color: var(--text);
    background: var(--glass-pill);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-shrink: 0;
}

.cmd-btn,
.theme-btn {
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.73rem;
    padding: 0.32rem 0.58rem;
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: color 0.18s var(--ease-fluid), border-color 0.18s var(--ease-fluid), background 0.18s var(--ease-fluid), transform 0.18s var(--ease-fluid);
}

.cmd-btn:hover,
.theme-btn:hover {
    color: var(--text);
    border-color: var(--border-hover);
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    transform: translateY(-1px);
}

.cmd-btn:active,
.theme-btn:active {
    transform: translateY(0.5px) scale(0.98);
}

.cmd-btn kbd {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--subtle);
}

/* ---------- Sayfa İçi Gezinti Yolu (Breadcrumb) ---------- */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--subtle);
    padding-top: 2rem;
}

.breadcrumb a {
    color: var(--muted);
    transition: color 0.18s var(--ease-fluid);
}

.breadcrumb a:hover {
    color: var(--text);
}

.breadcrumb-current {
    color: var(--accent);
}

/* ---------- Sayfa İskeleti ---------- */

.layout {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- 1. Hero (Giriş) ---------- */

.hero {
    padding: 3.5rem 0 2.25rem;
}

.hero-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.hero-logo {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    transition: transform 0.22s var(--ease-fluid), box-shadow 0.22s var(--ease-fluid);
}

.hero-logo:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 24px -2px rgba(0, 0, 0, 0.55), 0 0 16px var(--glow-1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.3rem 0.78rem;
    border-radius: 999px;
}

.live-clock {
    color: var(--accent);
    font-weight: 600;
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status);
    box-shadow: 0 0 8px var(--status);
}

.hero h1 {
    font-size: clamp(2.15rem, 4.8vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    margin-bottom: 0.45rem;
}

.hero-role {
    font-family: var(--font-mono);
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.95rem;
}

.hero-bio {
    color: var(--muted);
    font-size: 1rem;
    max-width: 62ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.45rem;
}

/* ---------- Bölüm Başlıkları (Script / Modül İndeksi) ---------- */

.section {
    padding: 2.75rem 0 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.05rem;
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-soft), transparent);
    margin: 0 0.5rem;
}

.section-header h2 {
    font-size: 1.08rem;
    font-weight: 600;
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}

.sec-num {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
}

.section-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    transition: color 0.18s var(--ease-fluid), transform 0.18s var(--ease-fluid);
    display: inline-flex;
    align-items: center;
}

.section-link:hover {
    color: var(--accent);
    transform: translateX(2px);
}

/* ---------- 2. Öne Çıkan Projeler (Liquid Glass Kartlar) ---------- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.35rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 20px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    transition:
        background 0.22s var(--ease-fluid),
        border-color 0.22s var(--ease-fluid),
        box-shadow 0.22s var(--ease-fluid),
        transform 0.22s var(--ease-fluid);
}

.project-card::before,
.stack-box::before,
.page-nav-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        280px circle at var(--x, 50%) var(--y, 50%),
        var(--accent-soft),
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.22s var(--ease-fluid);
    pointer-events: none;
}

.project-card:hover {
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    border-color: var(--border-hover);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 20px 0 var(--glass-inner),
        0 14px 34px -8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2.5px);
}

.project-card:hover::before,
.stack-box:hover::before,
.page-nav-card:hover::before {
    opacity: 1;
}

.project-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--subtle);
    margin-bottom: 0.45rem;
}

.project-card h3 {
    font-size: 1.02rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.project-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1.05rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.71rem;
    color: var(--muted);
    background: var(--glass-pill);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    transition: color 0.18s var(--ease-fluid), border-color 0.18s var(--ease-fluid), background 0.18s var(--ease-fluid), transform 0.18s var(--ease-fluid);
}

.tag:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* ---------- 3. Teknik Yetkinlikler & Araçlar ---------- */

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.9rem;
}

.stack-box {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 18px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    transition: border-color 0.22s var(--ease-fluid), background 0.22s var(--ease-fluid), box-shadow 0.22s var(--ease-fluid), transform 0.22s var(--ease-fluid);
}

.stack-box:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 18px 0 var(--glass-inner),
        0 12px 28px -6px rgba(0, 0, 0, 0.35);
}

.stack-box h3 {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.stack-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
}

.stack-box li {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.stack-box li::before {
    content: "›";
    color: var(--subtle);
    font-weight: 600;
}

/* ---------- 4. Hakkımda & Arka Plan ---------- */

.about-box {
    padding: 1.5rem 1.55rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 20px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.about-box p {
    color: var(--muted);
    font-size: 0.96rem;
}

/* ---------- 5. Yazılar Listesi ---------- */

.post-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.post-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 18px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition: border-color 0.22s var(--ease-fluid), background 0.22s var(--ease-fluid), transform 0.22s var(--ease-fluid), box-shadow 0.22s var(--ease-fluid);
}

.post-item:hover {
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 14px 32px -8px rgba(0, 0, 0, 0.42);
}

.post-title {
    font-size: 0.96rem;
    font-weight: 500;
    color: var(--text);
}

.post-desc {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.post-meta {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--subtle);
    white-space: nowrap;
}

/* ---------- Alt Sayfa Gezinti Kartları (Önceki / Sonraki) ---------- */

.page-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 3rem;
}

.page-nav-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.05rem 1.25rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition:
        background 0.22s var(--ease-fluid),
        border-color 0.22s var(--ease-fluid),
        box-shadow 0.22s var(--ease-fluid),
        transform 0.22s var(--ease-fluid);
}

.page-nav-card:hover {
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 12px 28px -6px rgba(0, 0, 0, 0.35);
}

.page-nav-label {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    color: var(--accent);
}

.page-nav-title {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
}

/* ---------- Makale Detay Sayfası ---------- */

.article-container {
    padding: 1.5rem 0 1rem;
}

.article-header {
    padding-bottom: 1.75rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.article-header time {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
}

.article-header h1 {
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 700;
    margin-top: 0.5rem;
}

.article-lead {
    margin-top: 0.75rem;
    font-size: 1.05rem;
    color: var(--muted);
}

.article-content {
    font-size: 1.01rem;
    line-height: 1.8;
    color: var(--muted);
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    margin: 2.4rem 0 0.85rem;
}

pre {
    position: relative;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), var(--glass-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1.25rem 1.35rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--text);
}

code {
    font-family: var(--font-mono);
    background: var(--glass-pill);
    border: 1px solid var(--border);
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85em;
    color: var(--text);
}

pre code {
    background: none;
    border: none;
    padding: 0;
}

.copy-button {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.18s var(--ease-fluid), border-color 0.18s var(--ease-fluid), background 0.18s var(--ease-fluid), transform 0.18s var(--ease-fluid);
}

.copy-button:hover {
    color: var(--text);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.copy-button:active {
    transform: translateY(0.5px) scale(0.96);
}

/* ---------- Butonlar (Liquid Glass Pill) ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 500;
    padding: 0.48rem 0.92rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 4px 14px -4px rgba(0, 0, 0, 0.35);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    color: var(--text);
    cursor: pointer;
    transition:
        background 0.2s var(--ease-fluid),
        border-color 0.2s var(--ease-fluid),
        box-shadow 0.2s var(--ease-fluid),
        color 0.2s var(--ease-fluid),
        transform 0.2s var(--ease-fluid);
}

.btn:hover {
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    border-color: var(--border-hover);
    transform: translateY(-1.5px);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 8px 20px -4px rgba(0, 0, 0, 0.42);
}

.btn:active {
    transform: translateY(0.5px) scale(0.98);
}

/* ---------- Komut Paleti (Ctrl+K Liquid Glass Modalı) ---------- */

.cmd-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12vh 1rem 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s var(--ease-fluid), visibility 0.22s var(--ease-fluid);
}

.cmd-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cmd-modal {
    width: 100%;
    max-width: 520px;
    background: var(--nav-bg);
    backdrop-filter: saturate(200%) blur(28px);
    -webkit-backdrop-filter: saturate(200%) blur(28px);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 24px 60px rgba(0, 0, 0, 0.55);
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.24s var(--ease-fluid), box-shadow 0.24s var(--ease-fluid);
}

.cmd-backdrop.open .cmd-modal {
    transform: translateY(0) scale(1);
}

.cmd-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.2rem 1.15rem;
    border-bottom: 1px solid var(--border);
}

.cmd-logo {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    flex-shrink: 0;
}

.cmd-input {
    width: 100%;
    padding: 0.85rem 0;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-size: 1rem;
}

.cmd-input::placeholder {
    color: var(--subtle);
}

.cmd-list {
    max-height: 310px;
    overflow-y: auto;
    padding: 0.45rem;
}

.cmd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: none;
    background: transparent;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    border-radius: 9px;
    cursor: pointer;
    text-align: left;
    transition: background 0.16s var(--ease-fluid), color 0.16s var(--ease-fluid), transform 0.16s var(--ease-fluid);
}

.cmd-item:hover,
.cmd-item.cmd-selected {
    background: var(--glass-pill);
    box-shadow: inset 0 1px 0 0 var(--glass-inner);
    color: var(--accent);
    transform: translateX(3px);
}

.cmd-item span:last-child {
    font-size: 0.7rem;
    color: var(--subtle);
}

.cmd-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 1rem;
    border-top: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--subtle);
}

.cmd-shortcut-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cmd-shortcut-hint kbd {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    color: var(--muted);
}

/* ---------- Yukarı Çık (Back to Top) Butonu ---------- */

.to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border-hover);
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.92);
    transition: opacity 0.22s var(--ease-fluid), transform 0.22s var(--ease-fluid), border-color 0.18s var(--ease-fluid), color 0.18s var(--ease-fluid);
    z-index: 90;
}

.to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.to-top:hover {
    transform: translateY(-2px) scale(1.06);
    border-color: var(--accent);
    color: var(--accent);
}

.to-top:active {
    transform: translateY(0) scale(0.96);
}

/* ---------- İnteraktif Bildirimler (Toasts) ---------- */

.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: max-content;
    max-width: 90vw;
}

.toast {
    background: var(--nav-bg);
    border: 1px solid var(--border-hover);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 12px 30px rgba(0, 0, 0, 0.45);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px) scale(0.95);
    transition: opacity 0.22s var(--ease-fluid), transform 0.22s var(--ease-fluid);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ---------- 6. İletişim / Footer (Liquid Glass Dock) ---------- */

footer {
    max-width: var(--max);
    margin: 4.5rem auto 1.75rem;
    padding: 1.25rem 1.6rem max(1.25rem, env(safe-area-inset-bottom));
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 20px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(190%) blur(20px);
    -webkit-backdrop-filter: saturate(190%) blur(20px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--subtle);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.footer-brand > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.footer-logo {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}

.last-updated {
    font-size: 0.7rem;
    color: var(--subtle);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.last-updated time {
    color: var(--accent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
}

.footer-links a {
    transition: color 0.18s var(--ease-fluid);
}

.footer-links a:hover {
    color: var(--text);
}

/* ---------- 7. Sistem Laboratuvarı & Arcade Hub ---------- */

.arcade-nav {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.2rem;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    margin-bottom: 1rem;
    padding: 0.32rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 0 var(--glass-highlight), 0 8px 24px -8px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.arcade-nav-btn {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    padding: 0.44rem 0.5rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s var(--ease-fluid), background 0.18s var(--ease-fluid), border-color 0.18s var(--ease-fluid), box-shadow 0.18s var(--ease-fluid);
}

.arcade-nav-btn:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.arcade-nav-btn.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(129, 140, 248, 0.22));
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.arcade-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
    width: 100%;
}

.arcade-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 1.65rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 20px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    cursor: pointer;
    text-align: left;
    transition:
        background 0.22s var(--ease-fluid),
        border-color 0.22s var(--ease-fluid),
        box-shadow 0.22s var(--ease-fluid),
        transform 0.22s var(--ease-fluid);
}

.arcade-card:first-child {
    grid-column: 1 / -1;
}

.arcade-card:hover {
    background: linear-gradient(135deg, var(--glass-hover-top), var(--glass-hover-bottom));
    border-color: var(--border-hover);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 14px 34px -8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2.5px);
}

.arcade-badge {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arcade-card h3 {
    font-size: 1.18rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.arcade-card p {
    font-size: 0.94rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
}

.game-container {
    padding: 0.5rem 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.game-window {
    width: 100%;
    max-width: 530px;
    min-width: 0;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 24px 0 var(--glass-inner),
        var(--game-window-shadow),
        0 0 28px var(--glow-1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    overflow: hidden;
    transition: box-shadow 0.25s var(--ease-fluid);
}

.game-window[data-game="typing"],
.game-window[data-game="cark"] {
    max-width: 600px;
}

.game-window:hover {
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 24px 0 var(--glass-inner),
        var(--game-window-shadow),
        0 0 36px var(--glow-1);
}

.game-window-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0.7rem 1.15rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, var(--glass-top), var(--nav-bg));
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.window-dots {
    display: flex;
    align-items: center;
    gap: 0.42rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease, filter 0.15s ease;
}

.window-dot:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.window-dot:nth-child(1) { background: #ef4444; }
.window-dot:nth-child(2) { background: #f59e0b; }
.window-dot:nth-child(3) { background: #10b981; }

.game-window-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
    margin-left: 0.35rem;
}

.game-difficulty {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem;
    border-radius: 999px;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 var(--glass-inner);
}

.diff-btn {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.24rem 0.62rem;
    cursor: pointer;
    transition: all 0.16s var(--ease-fluid);
    white-space: nowrap;
}

.diff-btn:hover {
    color: var(--text);
}

.diff-btn.active {
    color: var(--text);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.24), rgba(129, 140, 248, 0.24));
    border-color: var(--accent);
    box-shadow: 0 0 10px var(--accent-soft), inset 0 1px 0 var(--glass-highlight);
}

.overlay-diff-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.overlay-diff-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.game-stats-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    padding: 0.65rem 1.15rem;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    background: var(--game-stats-bg);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    padding: 0.48rem 0.55rem;
    border-radius: 10px;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-align: center;
    min-width: 0;
}

.game-stat > span:first-child {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.game-stat-val {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.02rem;
    letter-spacing: 0.02em;
    text-shadow: 0 0 10px var(--accent-soft);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.game-canvas-wrap {
    position: relative;
    width: calc(100% - 2.3rem);
    aspect-ratio: 1 / 1;
    margin: 0.9rem auto;
    background: var(--game-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--game-inset);
    display: block;
}

.game-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.game-overlay {
    position: absolute;
    inset: 0;
    background: var(--game-overlay);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.15rem;
    padding: 2rem;
    text-align: center;
    transition: opacity 0.22s var(--ease-fluid);
    z-index: 8;
}

.hidden:not(.game-overlay) {
    display: none !important;
}

.game-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.game-overlay-title {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text) 40%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
}

.game-overlay-desc {
    font-size: 0.98rem;
    color: var(--muted);
    max-width: 38ch;
    line-height: 1.6;
}

.game-overlay .btn {
    padding: 0.82rem 1.85rem;
    font-size: 0.98rem;
    font-weight: 700;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(129, 140, 248, 0.28));
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 0 24px var(--accent-soft);
    color: var(--text);
}

.game-overlay .btn:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(129, 140, 248, 0.42));
    border-color: var(--accent);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 0 32px var(--glow-1);
    transform: translateY(-2px) scale(1.02);
}

.typing-box {
    width: 100%;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: transparent;
}

.typing-code {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    line-height: 1.9;
    background: var(--game-surface);
    border: 1px solid var(--border);
    padding: 1.65rem 1.75rem;
    border-radius: 14px;
    box-shadow: var(--game-inset), inset 0 1px 0 var(--glass-inner);
    user-select: none;
    -webkit-user-select: none;
    letter-spacing: 0.03em;
    min-height: 125px;
    word-break: break-word;
}

.typing-char {
    color: var(--muted);
    transition: color 0.08s ease;
}

.typing-char.correct {
    color: var(--status);
}

.typing-char.incorrect {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.16);
    border-radius: 2px;
}

.typing-char.current {
    color: var(--accent);
    background: var(--accent-soft);
    border-bottom: 2px solid var(--accent);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 10px var(--glow-1);
}

.typing-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s var(--ease-fluid), box-shadow 0.2s var(--ease-fluid);
}

.typing-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow-1), inset 0 1px 0 var(--glass-inner);
}

/* ---------- 🎡 Şans Çarkı (Fortune Wheel) ---------- */

.wheel-box {
    width: 100%;
    padding: 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}

.wheel-canvas-wrap {
    position: relative;
    width: min(100%, 350px);
    aspect-ratio: 1 / 1;
    margin: 0.15rem auto;
    display: block;
}

.wheel-canvas {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: block;
    border-radius: 50%;
    box-shadow: var(--game-window-shadow), 0 0 0 1px var(--border);
}

.wheel-needle {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: 50% 0;
    width: 0;
    height: 0;
    border-left: 13px solid transparent;
    border-right: 13px solid transparent;
    border-top: 22px solid #f43f5e;
    filter: drop-shadow(0 2px 6px rgba(244, 63, 94, 0.7));
    z-index: 5;
    pointer-events: none;
    transition: transform 0.08s ease;
}

.wheel-result {
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(168, 85, 247, 0.15));
    border: 1px solid var(--accent);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.wheel-result-label {
    display: block;
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.wheel-winner {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 0.2rem;
}

.wheel-spin-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(168, 85, 247, 0.28));
    border: 1px solid var(--accent);
    color: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow:
        0 4px 20px rgba(56, 189, 248, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.18s var(--ease-fluid), box-shadow 0.18s var(--ease-fluid), border-color 0.18s var(--ease-fluid);
}

.wheel-spin-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow:
        0 8px 30px rgba(56, 189, 248, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    border-color: #38bdf8;
}

.wheel-spin-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.wheel-spin-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(0.5);
}

.wheel-controls {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.wheel-input-row {
    display: flex;
    gap: 0.6rem;
    width: 100%;
}

.wheel-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.94rem;
    outline: none;
    transition: border-color 0.18s var(--ease-fluid);
}

.wheel-input:focus {
    border-color: var(--accent);
}

.wheel-add-btn {
    padding: 0.75rem 1.25rem;
    background: var(--glass-hover-top);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wheel-add-btn:hover {
    background: var(--glass-hover-bottom);
    border-color: var(--accent);
}

.wheel-presets {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.wheel-presets-title {
    font-size: 0.76rem;
    font-family: var(--font-mono);
    color: var(--muted);
}

.wheel-presets-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.wheel-preset-btn {
    padding: 0.42rem 0.82rem;
    font-size: 0.8rem;
    border-radius: 8px;
    background: var(--glass-pill);
    border: 1px solid var(--border);
    color: var(--muted);
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.15s var(--ease-fluid);
}

.wheel-preset-btn:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--glass-hover-top);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.wheel-chips-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wheel-chips-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wheel-chips-count {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: var(--muted);
}

.wheel-clear-btn {
    font-size: 0.72rem;
    font-family: var(--font-mono);
    color: #ef4444;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: opacity 0.15s ease;
}

.wheel-clear-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.wheel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-height: 120px;
    overflow-y: auto;
    padding: 0.25rem 0.1rem;
}

.wheel-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    background: var(--game-chip-bg);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text);
    box-shadow: inset 0 1px 0 var(--glass-inner), 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: border-color 0.15s ease;
}

.wheel-chip:hover {
    border-color: var(--accent);
}

.wheel-chip-text {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wheel-chip-del {
    background: transparent;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.wheel-chip-del:hover {
    color: #ef4444;
}

.game-controls-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 240px;
}

.dpad-row {
    display: flex;
    gap: 0.45rem;
}

.dpad-btn {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        0 4px 12px rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: transform 0.12s var(--ease-fluid), border-color 0.12s var(--ease-fluid), box-shadow 0.12s var(--ease-fluid);
}

.dpad-btn:active {
    transform: scale(0.92);
    border-color: var(--accent);
    background: var(--glass-pill);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.4), inset 0 1px 0 var(--glass-highlight);
}

.game-instructions {
    width: 100%;
    max-width: 530px;
    min-width: 0;
    margin-top: 0.9rem;
    padding: 0.8rem 1.15rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--glass-pill);
    box-shadow: inset 0 1px 0 var(--glass-highlight);
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.game-key {
    background: linear-gradient(180deg, var(--glass-top), var(--nav-bg));
    border: 1px solid var(--border);
    border-bottom: 2px solid var(--border-hover);
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.72rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 var(--glass-highlight);
}

/* ---------- Özgeçmiş (CV) Belge Düzeni ---------- */

.cv-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.75rem 0 1.25rem;
}

.cv-toolbar .breadcrumb,
.cv-toolbar .hero-actions {
    padding-top: 0;
    margin-top: 0;
}

.cv-sheet {
    padding: 2.4rem 2.5rem;
    background: linear-gradient(135deg, var(--glass-top), var(--glass-bottom));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow:
        inset 0 1px 0 0 var(--glass-highlight),
        inset 0 0 24px 0 var(--glass-inner),
        var(--glass-shadow);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.cv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    padding-bottom: 1.4rem;
    border-bottom: 1px solid var(--border);
}

.cv-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cv-logo {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.cv-header h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}

.cv-contact {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
}

.cv-contact a:hover {
    color: var(--text);
}

.cv-section {
    margin-top: 1.55rem;
}

.cv-section h2 {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    padding-bottom: 0.4rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.cv-section p {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
}

.cv-item {
    margin-bottom: 1.1rem;
}

.cv-item:last-child {
    margin-bottom: 0;
}

.cv-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.cv-item-title {
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--text);
}

.cv-item-date {
    font-family: var(--font-mono);
    font-size: 0.76rem;
    color: var(--subtle);
    white-space: nowrap;
}

.cv-item-sub {
    font-size: 0.86rem;
    color: var(--muted);
    margin-top: 0.1rem;
}

.cv-bullets {
    margin-top: 0.45rem;
    padding-left: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv-bullets li {
    font-size: 0.89rem;
    color: var(--muted);
    line-height: 1.55;
}

.cv-skills {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.cv-skill-row {
    display: grid;
    grid-template-columns: 165px 1fr;
    gap: 0.75rem;
    font-size: 0.89rem;
    align-items: baseline;
}

.cv-skill-row strong {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.cv-skill-row span {
    color: var(--muted);
}

/* ---------- 404 ---------- */

.error-stage {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.5rem;
}

.error-logo {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
}

.error-code {
    font-family: var(--font-mono);
    font-size: 4.2rem;
    font-weight: 700;
    color: var(--accent);
}

.error-title {
    font-size: 1.45rem;
}

/* ---------- Mobil Uyum & Çoklu Cihaz Desteği ---------- */

@media (max-width: 820px) {
    .layout {
        padding: 0 1.25rem;
    }

    .project-grid {
        gap: 0.75rem;
    }

    .stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
        gap: 0.75rem;
    }
}

@media (max-width: 720px) {
    .brand-path {
        display: none;
    }

    .top-bar-inner {
        flex-wrap: wrap;
        padding: max(0.65rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.65rem max(1rem, env(safe-area-inset-left));
        gap: 0.5rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 0.2rem;
        padding: 0.28rem 0.35rem;
        mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        padding: 0.38rem 0.65rem;
        font-size: 0.74rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
    }

    .cmd-btn,
    .theme-btn {
        min-height: 36px;
        padding: 0.35rem 0.65rem;
    }

    .hero {
        padding: 2.5rem 0 2rem;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        width: 100%;
    }

    .hero-actions .btn {
        justify-content: center;
        text-align: center;
        padding: 0.55rem 0.75rem;
        min-height: 40px;
    }

    .project-grid,
    .stack-grid,
    .page-nav,
    .arcade-grid {
        grid-template-columns: 1fr;
    }

    .post-item {
        flex-direction: column;
        gap: 0.35rem;
        margin: 0;
        padding: 1rem 1.15rem;
    }

    .layout {
        padding: 0 1.1rem;
    }

    .cv-sheet {
        padding: 1.5rem 1.25rem;
    }

    .cv-header,
    .cv-item-head {
        flex-direction: column;
        gap: 0.35rem;
    }

    .cv-title-group {
        width: 100%;
    }

    .cv-contact {
        text-align: left;
    }

    .cv-skill-row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }

    .cmd-backdrop {
        padding: max(1rem, calc(0.5rem + env(safe-area-inset-top))) max(0.85rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(0.85rem, env(safe-area-inset-left));
    }

    .cmd-modal {
        max-width: 100%;
        max-height: calc(100dvh - 2.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    .cmd-list {
        flex: 1;
        max-height: 52dvh;
        -webkit-overflow-scrolling: touch;
    }

    .cmd-item {
        min-height: 44px;
        padding: 0.72rem 0.85rem;
    }

    .arcade-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        max-width: 100%;
        padding: 0.35rem 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .arcade-nav::-webkit-scrollbar {
        display: none;
    }

    .arcade-nav-btn {
        flex: 0 0 auto;
        padding: 0.45rem 0.8rem;
    }

    .game-window {
        max-width: 100%;
        margin: 0 auto;
    }

    .game-window-bar {
        padding: 0.65rem 1rem;
    }

    .game-stats-bar {
        padding: 0.65rem 1rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .game-canvas-wrap {
        width: calc(100% - 1.5rem);
        max-width: none;
        margin: 0.75rem auto;
        aspect-ratio: 1 / 1;
    }

    .game-overlay {
        padding: 1.25rem;
        gap: 0.8rem;
    }

    .game-overlay-title {
        font-size: 1.35rem;
    }

    .game-overlay-desc {
        font-size: 0.88rem;
    }

    .game-controls-mobile {
        display: flex;
        margin-top: 0.85rem;
        max-width: 240px;
        gap: 0.45rem;
    }

    .dpad-row {
        gap: 0.45rem;
    }

    .dpad-btn {
        width: 54px;
        height: 54px;
        font-size: 1.2rem;
        border-radius: 14px;
    }

    .game-instructions {
        max-width: 100%;
        margin-top: 0.85rem;
        padding: 0.75rem 1rem;
        font-size: 0.74rem;
        gap: 0.5rem;
    }

    .typing-box {
        padding: 1rem;
        gap: 0.85rem;
    }

    .typing-code {
        padding: 1.1rem;
        font-size: 0.96rem;
        line-height: 1.75;
    }

    .typing-input {
        padding: 0.8rem 1rem;
        font-size: 0.94rem;
    }

    .wheel-box {
        padding: 1rem;
        gap: 0.85rem;
    }

    .wheel-canvas-wrap {
        width: min(100%, 380px);
        max-width: none;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem 1.15rem max(1.5rem, env(safe-area-inset-bottom));
        gap: 0.85rem;
        margin: 3.5rem 1.1rem 1.5rem;
    }

    .to-top {
        right: max(1.1rem, env(safe-area-inset-right));
        bottom: max(1.1rem, calc(0.75rem + env(safe-area-inset-bottom)));
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 480px) {
    .hero-top {
        gap: 0.75rem;
    }

    .hero-logo {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 8vw, 2.3rem);
    }

    .hero-role {
        font-size: 0.88rem;
    }

    .hero-bio {
        font-size: 0.94rem;
        line-height: 1.6;
    }

    .hero-actions {
        grid-template-columns: 1fr;
    }

    .cv-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cv-toolbar .hero-actions {
        grid-template-columns: 1fr 1fr;
    }

    .cv-logo {
        width: 38px;
        height: 38px;
        border-radius: 9px;
    }

    .cv-title-group h1 {
        font-size: 1.55rem;
    }

    .cmd-modal {
        max-width: 95vw;
        border-radius: 12px;
    }

    .game-window {
        max-width: 100%;
    }

    .game-canvas-wrap {
        width: calc(100% - 1.1rem);
        max-width: none;
        margin: 0.55rem auto;
    }

    .wheel-canvas-wrap {
        width: min(100%, 340px);
        max-width: none;
    }

    .dpad-btn {
        width: 50px;
        height: 50px;
        font-size: 1.15rem;
    }
}

@media (max-width: 360px) {
    .layout {
        padding: 0 0.85rem;
    }

    .cv-toolbar .hero-actions {
        grid-template-columns: 1fr;
    }

    .top-bar-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .game-canvas-wrap {
        width: calc(100% - 0.85rem);
        max-width: none;
    }

    .dpad-btn {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@page {
    size: A4;
    margin: 12mm 15mm;
}

@media print {
    .top-bar, footer, .no-print, .to-top, .cmd-backdrop, .scroll-progress {
        display: none !important;
    }

    body {
        background: #ffffff !important;
        color: #111827 !important;
        font-size: 9.5pt;
        line-height: 1.45;
    }

    .layout {
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .cv-sheet {
        padding: 0 !important;
        background: #ffffff !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }

    .cv-header {
        padding-bottom: 0.75rem;
        border-bottom: 1.5px solid #111827 !important;
    }

    .cv-logo {
        width: 38px !important;
        height: 38px !important;
        border-radius: 6px !important;
        box-shadow: none !important;
    }

    .cv-section {
        margin-top: 1.1rem;
    }

    .cv-section h2 {
        margin-bottom: 0.55rem;
        padding-bottom: 0.25rem;
    }

    .cv-item {
        margin-bottom: 0.75rem;
    }

    .cv-header h1,
    .cv-item-title,
    .cv-skill-row strong {
        color: #111827 !important;
    }

    .hero-role,
    .cv-section h2 {
        color: #111827 !important;
        border-color: #d1d5db !important;
    }

    .cv-contact,
    .cv-section p,
    .cv-item-sub,
    .cv-item-date,
    .cv-bullets li,
    .cv-skill-row span {
        color: #374151 !important;
    }
}
