/**
 * Стили для страницы отдельной записи
 */

/* Контейнер */
.site-main .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* Заголовок */
.entry-title {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--white);
}

/* Мета-информация */
.entry-meta {
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.entry-meta .posted-on {
    margin-right: 15px;
}

.entry-meta .categories {
    display: inline-block;
}

.entry-meta .categories a {
    color: var(--accent-red);
}

/* Изображение записи */
.post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* Содержимое записи */
.entry-content {
    line-height: 1.8;
    margin-bottom: 40px;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--white);
}

.entry-content ul, 
.entry-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.entry-content li {
    margin-bottom: 8px;
}

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

.entry-content blockquote {
    margin: 2em 0;
    padding: 20px 30px;
    border-left: 5px solid var(--accent-red);
    background-color: rgba(255, 255, 255, 0.05);
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Подвал записи */
.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.entry-tags {
    margin-bottom: 30px;
}

.entry-tags a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px 5px 0;
    border-radius: 4px;
    background-color: #2d3748;
    color: var(--white);
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.entry-tags a:hover {
    background-color: var(--accent-red);
    text-decoration: none;
}

/* Навигация по записям */
.post-navigation {
    margin-top: 40px;
}

.post-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
    flex: 1;
    min-width: 200px;
    background-color: #2d3748;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-navigation .nav-previous:hover,
.post-navigation .nav-next:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.post-navigation .nav-subtitle {
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, 0.7);
}

.post-navigation .nav-title {
    font-weight: 600;
}

.post-navigation a {
    color: var(--white);
    text-decoration: none;
}

.post-navigation a:hover {
    color: var(--accent-red);
}

/* Сайдбар */
.sidebar {
    position: relative;
}

.related-posts {
    position: sticky;
    top: 20px;
}

.related-posts h3 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.related-posts h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--accent-red);
}

.related-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-post-card {
    background-color: #2d3748;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.related-post-thumbnail {
    display: block;
    height: 150px;
    background-size: cover;
    background-position: center;
}

.related-post-content {
    padding: 15px;
}

.related-post-title {
    margin: 0 0 10px;
    font-size: 16px;
}

.related-post-title a {
    color: var(--white);
    text-decoration: none;
}

.related-post-title a:hover {
    color: var(--accent-red);
}

.related-post-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

/* Комментарии */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    margin-bottom: 30px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    margin-bottom: 30px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author .fn {
    font-weight: 600;
}

.comment-metadata {
    font-size: 12px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.comment-content {
    background-color: #2d3748;
    padding: 20px;
    border-radius: 8px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

.comment-reply-link {
    display: inline-block;
    margin-top: 15px;
    padding: 5px 15px;
    background-color: var(--accent-red);
    color: var(--white);
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
}

.comment-reply-link:hover {
    background-color: #d63031;
    text-decoration: none;
}

.comment-form-comment label {
    display: block;
    margin-bottom: 10px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: var(--accent-red);
}

.form-submit input[type="submit"] {
    background-color: var(--accent-red);
    color: var(--white);
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.form-submit input[type="submit"]:hover {
    background-color: #d63031;
}

/* Responsive */
@media (max-width: 768px) {
    .site-main .container {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 32px;
    }
    
    .related-posts {
        position: static;
    }
} 