/* ===== POST PAGE STYLES ===== */

/* Фон страницы — мягкий светлый серый */
.post-page {
    background: #f2f4f7; 
    padding: 60px 0 40px;
    display: block;
    width: 100%;
}

/* ----- WHITE PAPER SHEET (Белый лист) ----- */
.post-paper {
    max-width: 800px; 
    margin: 0 auto 40px !important; /* Центрируем лист на странице */
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04); 
    border-radius: 4px;
    padding: 60px 80px; 
}

/* Изменяем порядок и центрируем фото на листе */
.post-featured-image {
    text-align: center;
    margin-bottom: 40px;
    line-height: 0;
}
.post-featured-image img {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: inline-block;
    border-radius: 2px;
}

/* Заголовок и мета-данные */
.post-header {
    text-align: center; 
    margin-bottom: 40px;
}
.post-meta {
    font-size: 0.8rem;
    color: #8a94a6; 
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    justify-content: center; 
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.post-meta a {
    color: #2d3748;
    text-decoration: none;
}
.meta-separator {
    color: #e2e8f0;
}
.post-author {
    color: #2d3748;
    font-weight: 500;
}

/* Название статьи */
.post-title {
    font-size: 1.65rem; 
    font-weight: 400; 
    line-height: 1.4;
    margin: 0;
    color: #2d3748; 
    letter-spacing: -0.01em;
    text-transform: none; /* Отменяем capitalize из основного стиля */
}

/* Содержание статьи */
.post-content {
    line-height: 1.8;
    color: #4a5568; 
    font-size: 0.95rem;
}
.post-content p {
    margin-bottom: 1.5rem !important;
}

/* Подзаголовки статьи */
.post-content h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2d3748;
    letter-spacing: -0.01em;
    text-transform: none;
}

.post-content ul {
    list-style: none !important; 
    padding-left: 0;
    margin-bottom: 1.5rem;
}
.post-content ul li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.6rem;
    line-height: 1.7;
}
.post-content ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #a0aec0;
}
.post-content ul li strong {
    color: #2d3748;
    font-weight: 500;
}

/* Цитата */
.post-content blockquote {
    border-left: 2px solid #2d3748;
    padding: 10px 0 10px 24px;
    margin: 2.5rem 0;
    font-size: 1.1rem;
    font-style: italic;
    color: #2d3748;
    line-height: 1.6;
}
.post-content blockquote p {
    margin: 0 !important;
}

/* ----- POST NAVIGATION ----- */
.post-navigation {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0; 
}
.post-nav-inner {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.post-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4a5568;
    text-decoration: none;
    background: #ffffff;
    padding: 12px 24px;
    border-radius: 30px; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}
.post-nav-link:hover {
    color: #2d3748;
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

/* ----- COMMENTS WRAPPER ----- */
.post-comments-wrapper {
    background: #ffffff; 
    border-top: 1px solid #e2e8f0;
    padding: 80px 0;
    display: block;
    width: 100%;
}
.post-comments-inner {
    max-width: 600px; 
    margin: 0 auto !important; /* Центрируем форму */
    padding: 0 20px;
}

.comments-title {
    font-size: 1.35rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 2.5rem;
    color: #2d3748;
    letter-spacing: -0.01em;
    text-transform: none;
}
.comment-notes {
    font-size: 0.8rem;
    color: #718096;
    text-align: center;
    margin-bottom: 2.5rem !important;
}
.comment-notes .required {
    color: #e53e3e;
}

/* Поля ввода */
.comment-form-textarea {
    margin-bottom: 2rem;
}
.comment-form-textarea textarea,
.comment-form-field input {
    width: 100%;
    padding: 12px 0;
    border: none !important;
    border-bottom: 1px solid #e2e8f0 !important; 
    border-radius: 0;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #2d3748;
    outline: none;
    background: transparent;
    transition: border-color 0.3s ease;
}
.comment-form-textarea textarea {
    resize: none;
    min-height: 80px;
}
.comment-form-textarea textarea:focus,
.comment-form-field input:focus {
    border-bottom-color: #2d3748 !important;
}

/* Сетка полей */
.comment-form-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Чекбокс */
.comment-form-cookies {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 2.5rem !important;
    line-height: 1.4;
}
.comment-form-cookies input[type="checkbox"] {
    width: auto;
    margin-top: 2px;
    accent-color: #2d3748;
}

/* Кнопка отправки */
.form-submit {
    text-align: center;
    margin-bottom: 0 !important;
}
.btn-submit {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 14px 40px;
    border: 1px solid #2d3748;
    border-radius: 2px;
    background: #2d3748;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-submit:hover {
    background: transparent;
    color: #2d3748;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .post-paper {
        margin: 0 20px 40px !important;
        padding: 40px 40px;
    }
    .post-navigation {
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .post-page {
        padding: 30px 0 0;
    }
    .post-paper {
        padding: 30px 24px;
        margin-bottom: 30px !important;
    }
    .post-title {
        font-size: 1.45rem;
    }
    .comment-form-fields {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .post-paper {
        margin: 0 10px 20px !important;
        padding: 24px 16px;
    }
}
