/* Perekup24 — стили внутренних страниц (блог, страницы, 404, поиск). */

.site-main {
    min-height: 60vh;
    padding: 140px 0 80px;
    background-color: var(--bg-main, #0c0c0c);
    color: var(--color-text-main, #f5f5f5);
}

.site-main .container {
    max-width: 900px;
}

.page-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-header .page-title,
.entry-title {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--color-white, #fff);
    margin: 0;
}

.entry-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: var(--color-primary, #d82229);
}

.entry-meta {
    margin-top: 10px;
    font-size: 0.85rem;
    color: var(--color-text-muted, #a0a0a0);
}

.entry-meta a {
    color: var(--color-text-muted, #a0a0a0);
    text-decoration: none;
}

.entry-content,
.entry-summary {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d8d8d8;
}

.entry-content p { margin: 0 0 1.2em; }

.entry-content a {
    color: var(--color-primary-hover, #f32b33);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    color: var(--color-white, #fff);
    margin: 1.6em 0 0.6em;
    line-height: 1.2;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.entry-content ul,
.entry-content ol { margin: 0 0 1.2em 1.4em; }
.entry-content li { margin-bottom: 0.4em; }

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 12px 22px;
    border-left: 4px solid var(--color-primary, #d82229);
    background: var(--bg-card, #141414);
    color: #cfcfcf;
    border-radius: 0 8px 8px 0;
}

.entry-thumb {
    display: block;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
}
.entry-thumb img { width: 100%; height: auto; display: block; }

/* Post list */
.post-list { display: grid; gap: 30px; }

.post-card {
    background: var(--bg-card, #141414);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.post-card:hover {
    border-color: rgba(216, 34, 41, 0.5);
    transform: translateY(-3px);
}
.post-card .entry-title { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
.post-card .entry-summary { margin-top: 12px; }

.read-more {
    display: inline-block;
    margin-top: 16px;
    font-weight: 700;
    color: var(--color-primary-hover, #f32b33);
    text-decoration: none;
}
.read-more:hover { text-decoration: underline; }

/* Pagination */
.perekup-pagination { margin-top: 50px; }
.perekup-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.perekup-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--bg-card, #141414);
    color: var(--color-text-main, #f5f5f5);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.perekup-pagination .page-numbers.current,
.perekup-pagination .page-numbers:hover {
    background: var(--color-primary, #d82229);
    border-color: var(--color-primary, #d82229);
    color: #fff;
}

/* Search form */
.search-form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin-top: 10px;
}
.search-form .search-field {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-card, #141414);
    color: #fff;
    font-size: 1rem;
}
.search-form .search-submit {
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    background: var(--color-primary, #d82229);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.search-form .search-submit:hover { background: var(--color-primary-hover, #f32b33); }

/* 404 */
.error-404 { text-align: center; }
.error-404 .error-code {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: clamp(5rem, 18vw, 11rem);
    font-weight: 900;
    line-height: 1;
    color: var(--color-primary, #d82229);
}
.error-404 .btn { margin-top: 24px; }

/* Comments (minimal) */
.comments-area { margin-top: 60px; }
.comments-area .comment-list { list-style: none; margin: 0; padding: 0; }
.comments-area .comment-body {
    padding: 18px;
    margin-bottom: 16px;
    background: var(--bg-card, #141414);
    border-radius: 10px;
}
.comments-area input[type="text"],
.comments-area input[type="email"],
.comments-area input[type="url"],
.comments-area textarea {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: var(--bg-card, #141414);
    color: #fff;
}

@media (max-width: 600px) {
    .site-main { padding: 110px 0 60px; }
    .search-form { flex-direction: column; }
}
