/* =========================================
   SINGLE POST STYLES
   ========================================= */

/* Скрываем нативный скролл */
html {
    scrollbar-width: none;
}
html::-webkit-scrollbar {
    display: none;
}

/* --- WRAPPER & HEADER --- */
.single-post-wrapper {
    padding-top: 150px; /* Унифицированный отступ (было 120) */
    padding-bottom: 100px;
}

.post-header-full {
    max-width: 900px;
    margin: 0 auto 60px auto;
    text-align: center;
    padding: 0 20px;
}

.post-meta {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title-full {
    font-size: 2.5rem; /* Golden Standard: Desktop H1 */
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    color: #ffffff;
}

/* --- FEATURED MEDIA --- */
.featured-media {
    max-width: 900px; /* Чуть шире, как контейнеры на других страницах */
    margin: 0 auto 60px auto;
    border-radius: 12px; /* Golden Standard: Radius */
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Стандартное соотношение */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.featured-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* --- POST BODY (TEXT CONTENT) --- */
.post-body {
    max-width: 800px;
    margin: 0 auto;
    color: #b0b0b0;
    font-size: 1.15rem; /* Чуть крупнее для чтения */
    line-height: 1.8;
    
    /* Glassmorphism Container */
    padding: 60px;
    background: rgba(42, 42, 42, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px; /* Golden Standard: Radius */
}

.post-body h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: 2.5em;
    margin-bottom: 1em;
}

.post-body h3:first-of-type {
    margin-top: 0;
}

.post-body p {
    margin-bottom: 1.5em;
}

.post-body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5em;
}

.post-body li {
    margin-bottom: 0.5em;
}

.post-body strong {
    color: #ffffff;
    font-weight: 700;
}

/* --- BACK BUTTON --- */
.back-link-wrapper {
    text-align: center;
    margin-top: 80px;
}

.back-link {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px; /* Golden Standard: Pill */
    
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
}

.back-link:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
}

/* --- BACKGROUNDS --- */
body.has-page-background {
    background-color: transparent;
}

.page-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    background-size: cover;
    background-position: center;
}

.page-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); 
}

/* --- SCROLLBAR --- */
.custom-scrollbar-track {
    position: fixed;
    top: 50px; bottom: 50px; right: 10px;
    width: 15px;
    z-index: 999;
}

.custom-scrollbar-thumb {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    width: 9px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 5px;
    cursor: grab;
}

body.is-dragging,
body.is-dragging .custom-scrollbar-thumb {
    cursor: grabbing;
    user-select: none;
}

/* --- ADAPTIVE --- */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 120px 20px 80px 20px;
    }

    .post-title-full {
        font-size: 2rem; /* Golden Standard: Mobile H1 */
    }

    .featured-media {
        border-radius: 12px;
        margin-bottom: 40px;
    }

    .post-body {
        padding: 30px 20px; /* Уменьшаем отступы внутри текста */
        font-size: 1rem;
        background: rgba(42, 42, 42, 0.85); /* Чуть темнее фон для читаемости */
    }
}