:root {
    --bg: #0f172a; /* dark navy */
    --panel: #111827;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --brand: #3b82f6; /* neonish blue */
    --brand-2: #10b981; /* neonish green */
    --glow: 0 0 24px rgba(59,130,246,.35);
    --radius: 12px;
    --container: 1200px;
}

* {
    box-sizing: border-box
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial
}

.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 20px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg,#0b1224,rgba(11,18,36,.7));
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px
}

.logo {
    font-family: Poppins,Inter,sans-serif;
    font-weight: 700;
    color: #fff;
    text-decoration: none
}

.primary-nav .menu {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0
}

.primary-nav a {
    color: var(--text);
    text-decoration: none;
    opacity: .9
}

    .primary-nav a:hover {
        color: #fff
    }

/* Hero (news-portal type) */
.hero {
    position: relative;
    padding: 56px 0 40px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    overflow: hidden
}

.hero-title {
    font-family: Poppins,Inter,sans-serif;
    font-weight: 700;
    font-size: clamp(24px,4vw,36px);
    margin: 0 0 8px
}

.hero-sub {
    color: var(--muted);
    margin: 0 0 16px
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(90deg,var(--brand),var(--brand-2));
    color: #0b1224;
    padding: 10px 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glow)
}

.hero-bg {
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 240px;
    background: radial-gradient(60% 60% at 20% 50%, rgba(59,130,246,.25), transparent 70%), radial-gradient(60% 60% at 80% 40%, rgba(16,185,129,.22), transparent 70%);
    pointer-events: none;
    filter: blur(30px)
}

/* Layout */
.main-wrap {
    padding: 28px 0
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px
}

@media(max-width:980px) {
    .content-area {
        grid-template-columns: 1fr
    }
}

/* AI style post cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
    gap: 20px
}

.post-card {
    background: linear-gradient(180deg,#0c1326,#0b1222);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, var(--glow);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease
}

    .post-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 32px rgba(59,130,246,.45)
    }

.card-link {
    display: block;
    color: inherit;
    text-decoration: none
}

.card-media img, .card-media .no-thumb {
    width: 100%;
    height: 168px;
    object-fit: cover;
    background: #0a1020
}

.card-body {
    padding: 14px 16px
}

.card-title {
    font-family: Poppins,Inter,sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 6px
}

.card-meta {
    color: var(--muted);
    font-size: .85rem;
    margin-bottom: 8px
}

.card-excerpt {
    color: #c9d2e3;
    margin: 0
}

/* Sidebar */
.sidebar {
    position: relative
}

.widget {
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px
}

.widget-title {
    font-family: Poppins,Inter,sans-serif;
    font-weight: 700;
    margin: 0 0 12px
}

.list {
    list-style: none;
    margin: 0;
    padding: 0
}

    .list li {
        margin: 6px 0
    }

    .list a {
        text-decoration: none;
        color: #cfe1ff
    }

.tagcloud a {
    display: inline-block;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    padding: 4px 10px;
    margin: 6px 6px 0 0;
    text-decoration: none;
    color: #cfe1ff;
    font-size: .85rem
}

/* Single/Page */
.single-post, .page {
    background: linear-gradient(180deg,#0c1326,#0b1222);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius);
    padding: 22px
}

.single-title, .page-title {
    font-family: Poppins,Inter,sans-serif
}

/* Pagination */
.pagination {
    grid-column: 1/-1;
    display: flex;
    justify-content: center
}

    .pagination .page-numbers {
        color: #cfe1ff;
        border: 1px solid rgba(255,255,255,.12);
        padding: 8px 12px;
        margin: 4px;
        border-radius: 8px;
        text-decoration: none
    }

    .pagination .current {
        background: linear-gradient(90deg,var(--brand),var(--brand-2));
        color: #001
    }

/* Footer (white) */
.site-footer {
    background: #fff;
    color: #111827;
    margin-top: 40px;
    border-top: 1px solid #e5e7eb
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 0
}

.footer-nav .menu {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0
}

.footer-nav a {
    text-decoration: none;
    color: #111827;
    opacity: .9
}

    .footer-nav a:hover {
        opacity: 1
    }

.copy {
    opacity: .7
}

/* Back to top */
.back-to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg,var(--brand),var(--brand-2));
    color: #001;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--glow);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s
}

    .back-to-top.show {
        opacity: 1;
        visibility: visible
    }

    .back-to-top:hover {
        transform: translateY(-2px)
    }
