:root {
    --bg: #0e0a0a;
    --bg-deep: #0a0606;
    --blood-oxidized: #2a0000;
    --blood-deep: #6e0000;
    --blood-fresh: #b00000;
    --blood-vibrant: #d40000;
    --blood-bright: #ff1a1a;
    --gold: #a08848;
    --gold-light: #d4b060;
    --text-primary: #f0e8dc;
    --text-secondary: #b0a494;
    --text-muted: #6a6058;
    --border: rgba(160, 136, 72, .22);
    --border-blood: rgba(212, 0, 0, .25);
    --card-bg: rgba(16, 8, 8, .97);
    --surface: rgba(255, 255, 255, .035);
    --surface-hover: rgba(255, 255, 255, .065);
    --border-light: rgba(160, 136, 72, .14);
    --radius: 18px;
    --radius-sm: 12px;
    --radius-pill: 999px;
    --font-cinzel: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    --ease: cubic-bezier(.19, 1, .22, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

::selection {
    background: var(--blood-deep);
    color: var(--text-primary);
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 120% 80% at 20% 30%, rgba(100, 0, 0, .04) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 80% 70%, rgba(80, 0, 0, .03) 0%, transparent 50%);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.hidden-assets {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.atmosphere {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(80, 0, 0, .08) 0%, transparent 60%),
        radial-gradient(ellipse 100% 100% at 50% 100%, rgba(0, 0, 0, .6) 0%, transparent 70%);
}

.texture-overlay {
    position: fixed;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 2px,
        rgba(0, 0, 0, .03) 2px, rgba(0, 0, 0, .03) 4px);
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(12, 7, 7, .94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(30px);
}

.site-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-vibrant), transparent);
    opacity: .4;
}

.nav-link {
    font-family: var(--font-cinzel);
    font-size: .52rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    padding: 20px 28px;
    position: relative;
    transition: color .4s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--blood-vibrant);
    box-shadow: 0 0 8px var(--blood-vibrant);
    transition: width .4s var(--ease);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::before,
.nav-link:hover::before {
    width: 100%;
}

.blog-wrap {
    position: relative;
    z-index: 100;
    max-width: 780px;
    margin: 0 auto;
    padding: 100px 24px 120px;
}

.blog-header {
    text-align: center;
    padding: 48px 0 28px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.blog-title {
    font-family: var(--font-cinzel);
    font-size: clamp(1.6rem, 5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: linear-gradient(120deg, var(--blood-deep) 0%, var(--blood-vibrant) 60%, var(--blood-bright) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.blog-sub {
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 1rem;
    font-style: italic;
}

.news-list {
    display: flex;
    flex-direction: column;
}

.news-item {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light);
    animation: fadeUp .5s ease both;
}

.news-item:last-child {
    border-bottom: none;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 8px;
}

.newstitle {
    font-family: var(--font-cinzel);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.3;
    transition: color .3s ease;
    min-width: 0;
    overflow-wrap: anywhere;
}

.news-item:hover .newstitle,
.newstitle:hover {
    color: var(--gold-light);
}

.newsdate {
    font-size: .82rem;
    color: var(--text-muted);
    letter-spacing: .04em;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.newsdate::before {
    content: '';
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    background-color: var(--text-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 6v11H5V8h14z'/%3E%3C/svg%3E") center/contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 2v2H5a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2V2h-2v2H9V2H7zm12 6v11H5V8h14z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.news-image {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: 8px 0 20px;
    border: 1px solid var(--border-blood);
}

.newscontent {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.read-more {
    display: inline-block;
    margin-top: 14px;
    color: var(--gold);
    font-family: var(--font-cinzel);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s ease;
}

.read-more:hover {
    color: var(--gold-light);
}

.like-container {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    flex-shrink: 0;
    cursor: default;
}

.heart-btn {
    font-size: 1.1rem;
    line-height: 1;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    transition: transform .2s ease, color .2s ease;
}

.heart-btn:hover:not(:disabled) {
    transform: scale(1.25);
    color: var(--blood-vibrant);
}

.heart-btn.liked {
    color: var(--blood-vibrant);
}

.heart-btn:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.likes-count {
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 16px;
    text-align: center;
}

.news-buttons {
    margin-top: 22px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-btn {
    padding: 9px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-cinzel);
    font-size: .66rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: var(--radius-pill);
    transition: all .25s ease;
}

.news-btn:hover {
    background: var(--surface-hover);
    border-color: var(--gold);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-primary);
    min-width: 42px;
    height: 42px;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-cinzel);
    font-size: .7rem;
    letter-spacing: .05em;
    text-decoration: none;
    transition: all .2s ease;
}

.page-btn:hover {
    background: var(--surface-hover);
    border-color: var(--gold);
    transform: translateY(-2px);
}

.page-btn.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-deep);
    font-weight: 700;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    color: var(--text-muted);
    font-family: var(--font-cinzel);
    font-size: .66rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .3s ease;
}

.back-link:hover {
    color: var(--gold);
}

.post-title {
    font-family: var(--font-cinzel);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    letter-spacing: .04em;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.25;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.views-count {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .82rem;
    color: var(--text-muted);
}

.post-body {
    margin-top: 28px;
    line-height: 1.9;
    color: var(--text-secondary);
    font-size: 1.12rem;
}

.post-body h1,
.post-body h2 {
    font-family: var(--font-cinzel);
    color: var(--text-primary);
    margin: 2em 0 .7em;
    letter-spacing: .04em;
}

.post-body h3,
.post-body h4 {
    color: var(--gold);
    margin: 1.6em 0 .6em;
}

.post-body p {
    margin-bottom: 1.2em;
}

.post-body a {
    color: var(--gold-light);
    text-decoration: underline;
}

.post-body a:hover {
    color: var(--gold);
}

.post-body blockquote {
    border-left: 3px solid var(--blood-vibrant);
    padding-left: 18px;
    color: var(--text-primary);
    font-style: italic;
    margin: 1.5em 0;
}

.post-body pre {
    overflow-x: auto;
    padding: 16px 18px;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 1.4em;
}

.post-body code {
    font-size: .92em;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 5px;
}

.post-body pre code {
    background: transparent;
    border: none;
    padding: 0;
}

.post-body img {
    display: block;
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    margin: 22px 0;
    border: 1px solid var(--border-blood);
    border-radius: var(--radius-sm);
}

.post-body table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1.4em;
}

.post-body th,
.post-body td {
    border: 1px solid var(--border);
    padding: 8px 14px;
}

.post-body th {
    background: var(--surface);
    color: var(--gold);
}

.post-body ul,
.post-body ol {
    padding-left: 1.6em;
    margin-bottom: 1.2em;
}

.post-body li {
    margin-bottom: .4em;
}

.post-body hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2em 0;
}

.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
}

.post-rating {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-rating-label {
    color: var(--text-muted);
    font-size: .88rem;
}

.post-likes {
    margin: 0;
}

.blog-footer {
    position: relative;
    z-index: 100;
    text-align: center;
    padding: 28px 20px 40px;
    font-family: var(--font-cinzel);
    font-size: .58rem;
    letter-spacing: .1em;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 0;
}

.blog-footer a {
    color: var(--gold);
    text-decoration: none;
}

.blog-footer a:hover {
    color: var(--gold-light);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 60px 0;
    font-style: italic;
}

.flash {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: .92rem;
    animation: fadeUp .4s ease;
}

.flash-success {
    background: rgba(76, 175, 80, .12);
    color: #6cd070;
    border-left: 3px solid #4caf50;
}

.flash-error {
    background: rgba(244, 67, 54, .12);
    color: #ff7a70;
    border-left: 3px solid #f44336;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 640px) {
    .blog-wrap {
        padding: 90px 16px 80px;
    }

    .news-item {
        padding: 26px 0;
    }

    .site-nav {
        gap: 0;
    }

    .nav-link {
        padding: 18px 14px;
        font-size: .46rem;
        letter-spacing: 2.5px;
    }

    .page-btn {
        min-width: 38px;
        height: 38px;
    }
}