:root {
    --bg: #111522;
    --bg-2: #171c2d;

    --surface: #1d2336;
    --surface-2: #252c43;

    --border: rgba(255,255,255,.10);
    --border-hover: rgba(139,92,246,.45);

    --text: #f5f7ff;
    --text-soft: #d8dced;
    --muted: #a1a8bd;

    --purple: #8b5cf6;
    --purple-light: #a78bfa;

    --pink: #ec4899;
    --blue: #6366f1;

    --danger: #ff4d67;
    --success: #34d399;

    --radius: 18px;
}


/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        radial-gradient(
            circle at 5% 0%,
            rgba(139,92,246,.20),
            transparent 32%
        ),
        radial-gradient(
            circle at 95% 5%,
            rgba(99,102,241,.16),
            transparent 30%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(236,72,153,.08),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            var(--bg),
            var(--bg-2)
        );

    background-attachment: fixed;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}


/* =========================
   ANA CONTAINER
========================= */

.container {
    width: min(960px, 92%);
    margin: 0 auto;

    padding:
        28px
        0
        80px;
}


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

.site-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 17px 21px;

    margin-bottom: 35px;

    background:
        linear-gradient(
            135deg,
            rgba(37,44,67,.90),
            rgba(29,35,54,.90)
        );

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,.25);

    position: sticky;
    top: 14px;

    z-index: 50;
}


/* LOGO */

.logo {
    text-decoration: none;

    color: white;

    font-size: 22px;

    font-weight: 850;

    letter-spacing: -.6px;

    white-space: nowrap;
}

.logo span {
    color: var(--purple-light);
}


/* NAV */

.nav {
    display: flex;

    gap: 6px;

    flex-wrap: wrap;

    justify-content: flex-end;
}

.nav a {
    color: var(--muted);

    text-decoration: none;

    padding:
        9px
        12px;

    border-radius: 10px;

    font-size: 14px;

    transition:
        .2s ease;
}

.nav a:hover {
    color: white;

    background:
        rgba(255,255,255,.08);
}


/* =========================
   HERO
========================= */

.hero {
    text-align: center;

    padding:
        45px
        15px
        50px;
}

.hero-badge {
    display: inline-flex;

    align-items: center;

    padding:
        8px
        14px;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(139,92,246,.18),
            rgba(236,72,153,.14)
        );

    border:
        1px solid
        rgba(167,139,250,.30);

    color:
        #c4b5fd;

    font-size: 13px;

    font-weight: 700;

    box-shadow:
        0 8px 30px
        rgba(139,92,246,.12);
}

.hero h1 {
    margin:
        18px
        0
        12px;

    font-size:
        clamp(38px, 7vw, 64px);

    line-height: 1.05;

    letter-spacing: -2.5px;

    background:
        linear-gradient(
            90deg,
            #ffffff,
            #c4b5fd,
            #f9a8d4
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.hero p {
    margin: 0;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.6;
}


/* =========================
   CARD
========================= */

.card {
    background:
        linear-gradient(
            145deg,
            rgba(37,44,67,.94),
            rgba(29,35,54,.94)
        );

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding: 25px;

    margin-bottom: 20px;

    box-shadow:
        0 18px 55px
        rgba(0,0,0,.18);

    backdrop-filter:
        blur(12px);

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.card:hover {
    border-color:
        rgba(167,139,250,.20);

    box-shadow:
        0 20px 65px
        rgba(0,0,0,.22);
}

.card h1,
.card h2,
.card h3 {
    color: white;
}


/* =========================
   FORM
========================= */

label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 14px;

    font-weight: 700;
}

input,
textarea {
    width: 100%;

    padding:
        13px
        14px;

    margin-bottom: 17px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background:
        rgba(10,14,28,.35);

    color: white;

    outline: none;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}

input:hover,
textarea:hover {
    background:
        rgba(10,14,28,.45);
}

input:focus,
textarea:focus {
    border-color:
        rgba(139,92,246,.75);

    background:
        rgba(10,14,28,.50);

    box-shadow:
        0 0 0 3px
        rgba(139,92,246,.14);
}

input::placeholder,
textarea::placeholder {
    color:
        #727990;
}

textarea {
    min-height: 160px;

    resize: vertical;

    line-height: 1.6;
}


/* =========================
   BUTTON
========================= */

button {
    border: 0;

    padding:
        12px
        19px;

    border-radius: 12px;

    color: white;

    font-weight: 750;

    cursor: pointer;

    background:
        linear-gradient(
            135deg,
            var(--purple),
            var(--pink)
        );

    box-shadow:
        0 8px 25px
        rgba(139,92,246,.22);

    transition:
        transform .2s,
        box-shadow .2s,
        filter .2s;
}

button:hover {
    transform:
        translateY(-1px);

    filter:
        brightness(1.08);

    box-shadow:
        0 12px 32px
        rgba(139,92,246,.32);
}

button:active {
    transform:
        translateY(0);
}


/* =========================
   SECTION TITLE
========================= */

.section-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin:
        35px
        0
        15px;
}

.section-title h2 {
    margin: 0;
}

.section-title span {
    color: var(--muted);

    font-size: 13px;
}


/* =========================
   POST / TOPIC
========================= */

.post {
    display: block;

    color: inherit;

    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            rgba(29,35,54,.90),
            rgba(37,44,67,.78)
        );

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius);

    padding: 22px;

    margin-bottom: 13px;

    transition:
        transform .2s,
        border-color .2s,
        background .2s,
        box-shadow .2s;
}

.post:hover {
    transform:
        translateY(-3px);

    background:
        linear-gradient(
            135deg,
            rgba(37,44,67,.98),
            rgba(44,50,75,.90)
        );

    border-color:
        var(--border-hover);

    box-shadow:
        0 14px 40px
        rgba(0,0,0,.20);
}

.post h2 {
    margin:
        0
        0
        9px;

    color: white;

    font-size: 20px;

    line-height: 1.35;
}

.meta {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;
}

.meta strong {
    color:
        var(--purple-light);
}

.preview {
    color:
        #c2c6d5;

    line-height: 1.65;

    margin-bottom: 0;
}


/* =========================
   CONTENT
========================= */

.content {
    color:
        #e0e3ee;

    line-height: 1.85;

    white-space: pre-wrap;

    overflow-wrap: anywhere;

    margin-top: 18px;
}


/* =========================
   COMMENTS
========================= */

.comment {
    padding:
        17px
        0;

    border-top:
        1px solid
        var(--border);
}

.comment:first-child {
    border-top: 0;
}

.comment-author {
    color:
        var(--purple-light);

    font-weight: 750;
}

.comment-date {
    color:
        #777f96;

    font-size: 12px;

    margin-top: 3px;
}

.comment p {
    color:
        #cdd1df;

    line-height: 1.65;

    margin-bottom: 0;
}


/* =========================
   BACK
========================= */

.back {
    display: inline-block;

    margin-bottom: 18px;

    color:
        var(--muted);

    text-decoration: none;

    font-weight: 600;

    transition:
        color .2s,
        transform .2s;
}

.back:hover {
    color: white;

    transform:
        translateX(-2px);
}


/* =========================
   ACTION BUTTON
========================= */

.entry-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-wrap: wrap;

    margin-top: 20px;
}

.entry-actions form {
    margin: 0;
}

.action-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding:
        10px
        15px;

    border-radius: 11px;

    border:
        1px solid
        var(--border);

    background:
        rgba(255,255,255,.06);

    color:
        #dce0ed;

    text-decoration: none;

    font-weight: 650;

    cursor: pointer;

    transition:
        .2s;
}

.action-button:hover {
    color: white;

    background:
        rgba(139,92,246,.16);

    border-color:
        rgba(139,92,246,.35);
}


/* =========================
   DELETE
========================= */

.delete-button {
    border: 0;

    background:
        rgba(255,77,103,.15);

    border:
        1px solid
        rgba(255,77,103,.28);

    color:
        #ff8b9c;

    padding:
        10px
        15px;

    border-radius:
        11px;

    cursor: pointer;

    font-weight: 700;

    transition:
        .2s;
}

.delete-button:hover {
    background:
        var(--danger);

    border-color:
        var(--danger);

    color: white;
}


/* =========================
   ADMIN
========================= */

.admin-header,
.admin-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.admin-header a,
.admin-top a {
    color:
        var(--text-soft);

    text-decoration: none;
}

.admin-header a:hover,
.admin-top a:hover {
    color: white;
}


/* =========================
   ADMIN STATS
========================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 15px;

    margin-bottom: 30px;
}

.stat {
    padding: 23px;

    border-radius:
        var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(37,44,67,.95),
            rgba(29,35,54,.95)
        );

    border:
        1px solid
        var(--border);

    box-shadow:
        0 15px 45px
        rgba(0,0,0,.16);
}

.stat-icon {
    font-size: 27px;

    margin-bottom: 10px;
}

.stat-number {
    font-size: 32px;

    font-weight: 850;
}

.stat-title {
    color:
        var(--muted);

    margin-top: 5px;
}


/* =========================
   ADMIN ACTIONS
========================= */

.admin-actions {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 15px;
}

.admin-action {
    display: block;

    padding: 22px;

    border-radius: 16px;

    background:
        rgba(255,255,255,.045);

    border:
        1px solid
        var(--border);

    color: white;

    text-decoration: none;

    transition:
        transform .2s,
        background .2s,
        border-color .2s;
}

.admin-action:hover {
    transform:
        translateY(-3px);

    background:
        rgba(139,92,246,.10);

    border-color:
        rgba(139,92,246,.35);
}

.admin-action-title {
    font-size: 18px;

    font-weight: 750;

    margin-bottom: 6px;
}

.admin-action-text {
    color:
        var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================
   REPORT
========================= */

.report {
    border-left:
        4px solid
        var(--danger);
}

.report-reason {
    color:
        #ff8b9c;

    font-weight: 750;

    margin-bottom: 10px;
}

.report-topic {
    color:
        var(--purple-light);

    font-weight: 750;

    margin-bottom: 8px;
}

.report-topic a {
    color:
        var(--purple-light);

    text-decoration: none;
}

.report-meta {
    color:
        var(--muted);

    font-size: 14px;

    margin-bottom: 18px;
}

.report-content {
    color:
        #e1e4ef;

    line-height: 1.7;

    white-space: pre-wrap;

    word-break: break-word;

    margin-bottom: 20px;
}

.report-actions {
    display: flex;

    gap: 8px;

    flex-wrap: wrap;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 800px) {

    .container {
        width: 94%;

        padding-top: 15px;
    }

    .site-header {
        position: static;

        align-items:
            flex-start;

        flex-direction:
            column;

        padding:
            15px
            17px;
    }

    .nav {
        width: 100%;

        justify-content:
            flex-start;
    }

    .nav a {
        padding:
            8px
            9px;

        font-size:
            13px;
    }

    .stats {
        grid-template-columns:
            1fr 1fr;
    }

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

    .admin-header,
    .admin-top {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .hero {
        padding:
            30px
            5px
            40px;
    }

    .hero h1 {
        letter-spacing:
            -1.5px;
    }
}


@media (max-width: 500px) {

    .container {
        width: 95%;
    }

    .card {
        padding: 19px;
    }

    .post {
        padding: 18px;
    }

    .stats {
        gap: 10px;
    }

    .stat {
        padding: 17px;
    }

    .stat-number {
        font-size: 27px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .entry-actions {
        align-items:
            stretch;
    }

    .action-button,
    .delete-button {
        min-height: 42px;
    }
}

.hero {
    padding-top: 0px !important;
}

/* 16 Ekim 2026 — kaydirma akiciligi ve koyu arka plan duzeltmesi.
   Testteki degisiklikleri kalici yapar; icerik/yerlesim degismez. */
html {
    background-color: #17172b;
}
body {
    background-color: #17172b;
    background-attachment: scroll;
}

/* Kaydirma sirasinda yeniden boyama yukunu azalt. */
.site-header,
.card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
}
.card:hover,
.post:hover {
    box-shadow: none;
}
