:root {
    --accent: #7311E0;
    --accent-strong: #5c0db5;
    --accent-soft: rgba(115, 17, 224, 0.08);
    --teal: #0f766e;
    --text: #0f172a;
    --muted: #64748b;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

::selection {
    background: rgba(115, 17, 224, 0.16);
}

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

body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.68;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 22px;
}

.container-fluid {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */

.site-header {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 12px rgba(15, 23, 42, 0.05);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__inner {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 62px;
}

.logo {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    gap: 0;
    text-decoration: none;
}

.logo__badge {
    display: block;
}

.logo__badge path:first-child {
    transition: fill 0.15s ease;
}

.logo:hover .logo__badge path:first-child { fill: #5c0db5; }

/* "o" harfi rozetin sag kenarindaki isiriga yuvalanir */
.logo__text {
    color: #7311E0;
    font-size: 1.42rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1;
    margin-left: -5px;
    position: relative;
    top: -3px;
    transition: color 0.15s ease;
}

.logo:hover .logo__text { color: #5c0db5; }

.site-header__badge {
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 13px;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .site-header__badge { display: none; }
}

/* --- Kategori navigasyonu --- */
.site-nav {
    -webkit-overflow-scrolling: touch;
    display: flex;
    gap: 8px;
    margin-left: auto;
    overflow-x: auto;
    scrollbar-width: none;
}

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

.site-nav__pill {
    border: 1px solid transparent;
    border-radius: 999px;
    flex-shrink: 0;
    font-size: 0.87rem;
    font-weight: 700;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.site-nav__pill--teknoloji { background: #eef2ff; color: #3730a3; }
.site-nav__pill--oyun { background: #fef2f2; color: #b91c1c; }
.site-nav__pill--yapay-zeka { background: #ecfdf5; color: #047857; }

.site-nav__pill--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--muted);
}

.site-nav__pill:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 3px 10px rgba(115, 17, 224, 0.28);
    color: #fff;
    transform: translateY(-1px);
}

/* ============ MAKALE AKIŞI (kart tasarımı) ============ */

.article-list {
    display: grid;
    gap: 26px;
    padding-top: 30px;
}

.article-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0;
    overflow: hidden;
    padding: 0;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.article-card__media {
    display: block;
    line-height: 0;
}

.article-card__body {
    padding: 20px 24px 22px;
}

.article-card h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.3rem, 3vw, 1.56rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.26;
}

.article-card h2 a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}

.article-card h2 a:hover { color: var(--accent); }

.article-card p {
    margin: 0 0 14px;
}

.meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.84rem;
    gap: 7px;
    margin: 0 0 10px;
}

.meta a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.meta a:hover { text-decoration: underline; }

.read-more {
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.read-more:hover {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(115, 17, 224, 0.3);
    color: #fff;
}

/* --- Görseller --- */

.card-image,
.hero-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--surface-soft);
    border: none;
    border-radius: 0;
    display: block;
}

.card-image { margin: 0; }

.hero-image {
    border-radius: 12px;
    margin-top: 20px;
}

.image-credit {
    color: var(--muted);
    font-size: 0.76rem;
    margin-top: 8px;
}

/* --- Kategori rozetleri --- */

.cat-badge {
    border-radius: 6px;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.cat-badge--teknoloji { background: #eef2ff; color: #3730a3; }
.cat-badge--oyun { background: #fef2f2; color: #b91c1c; }
.cat-badge--yapay-zeka { background: #ecfdf5; color: #047857; }

/* ============ MAKALE SAYFASI ============ */

.single-article {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 30px 0;
    padding: 32px 34px 36px;
}

.single-article h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 10px;
}

.single-article .content {
    margin-top: 26px;
    font-size: 1.06rem;
}

.single-article .content p { margin-bottom: 1.25em; }

.single-article .content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 1.6em 0 0.6em;
}

.single-article .content h3 {
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.4em 0 0.5em;
}

.single-article .content ul,
.single-article .content ol {
    margin: 0 0 1.25em;
    padding-left: 1.3em;
}

.single-article .content li { margin-bottom: 0.5em; }

.single-article .content blockquote {
    background: var(--surface-soft);
    border-left: 4px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    margin: 1.4em 0;
    padding: 0.8em 1.1em;
}

.single-article .content a,
.internal-link {
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: rgba(115, 17, 224, 0.3);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.single-article .content a:hover,
.internal-link:hover {
    color: var(--teal);
    text-decoration-color: rgba(15, 118, 110, 0.42);
}

.article-divider {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    text-transform: uppercase;
}

.article-divider::before,
.article-divider::after {
    background: var(--border);
    content: "";
    flex: 1;
    height: 1px;
}

.article-stream__sentinel {
    color: var(--muted);
    min-height: 44px;
    text-align: center;
}

.article-stream__sentinel span {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    font-size: 0.86rem;
    padding: 9px 16px;
}

.article-stream__sentinel.is-loading span::after {
    content: "...";
}

/* ============ FOOTER ============ */

.site-footer {
    margin-top: 60px;
    padding: 34px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 0.85rem;
    text-align: center;
}

.site-footer__links a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
}

.site-footer__links a:hover { color: var(--accent); }

/* ============ GENEL ============ */

.alert {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    color: #881337;
    padding: 12px 16px;
    margin: 20px 0;
}

.badge {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    background: var(--surface-soft);
}

.badge-published { background: #ccfbf1; color: #115e59; }
.badge-draft { background: #fef3c7; color: #92400e; }

button,
.danger {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}

button:hover { background: var(--accent-strong); }

button.danger,
.danger { background: #be123c; }

.pagination {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin: 28px 0 10px;
}

.pagination__arrow {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.pagination__arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.pagination__arrow--disabled {
    background: transparent;
    border-color: var(--border);
    box-shadow: none;
    color: #5b6673;
}

.pagination__status {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ============ MOBİL ============ */

@media (max-width: 720px) {
    .container { padding: 0 14px; }
    .container-fluid { padding: 0 14px; }

    .site-header__inner {
        min-height: 54px;
    }

    .logo__badge {
        height: 32px;
        width: 32px;
    }

    .logo__text { font-size: 1.2rem; }

    .article-list {
        gap: 18px;
        padding-top: 18px;
    }

    .article-card__body { padding: 16px 16px 18px; }

    .single-article {
        border-radius: 12px;
        margin: 16px 0;
        padding: 20px 18px 24px;
    }
}
