/**
 * Исправление дизайна блога для тёмной темы
 * Фиксит белые блоки на светлом фоне
 */

/* Комментарии - тёмный фон */
.blog-post-comments {
    background: #1a1a2e !important;
}

.blog-post-comments .comment-respond,
.blog-post-comments .comment-form,
.blog-post-comments .comments-area {
    background: #16213e;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.blog-post-comments h2,
.blog-post-comments h3,
.blog-post-comments label {
    color: #ffffff !important;
}

.blog-post-comments input[type="text"],
.blog-post-comments input[type="email"],
.blog-post-comments input[type="url"],
.blog-post-comments textarea {
    width: 100% !important;
    background: #0f3460 !important;
    border: 1px solid #533483 !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

.blog-post-comments input[type="text"]:focus,
.blog-post-comments input[type="email"]:focus,
.blog-post-comments input[type="url"]:focus,
.blog-post-comments textarea:focus {
    border-color: #764ba2 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.2);
}

.blog-post-comments input[type="submit"],
.blog-post-comments button[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-post-comments input[type="submit"]:hover,
.blog-post-comments button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
}

.blog-post-comments a {
    color: #667eea !important;
}

.blog-post-comments a:hover {
    color: #764ba2 !important;
}

/* Список комментариев */
.blog-post-comments .comment-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.blog-post-comments .comment {
    background: #16213e;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #667eea;
}

.blog-post-comments .comment-author,
.blog-post-comments .comment-meta,
.blog-post-comments .comment-content {
    color: #e0e0e0 !important;
}

.blog-post-comments .comment-author strong {
    color: #ffffff !important;
}

/* Навигация между постами - тёмный фон */
.blog-post-navigation {
    background: #1a1a2e !important;
    border-top: 2px solid #533483 !important;
    border-bottom: 2px solid #533483 !important;
}

.nav-previous,
.nav-next {
    background: #16213e !important;
    border: 2px solid #533483 !important;
}

.nav-previous:hover,
.nav-next:hover {
    border-color: #764ba2 !important;
    background: #0f3460 !important;
}

.nav-previous::before,
.nav-next::before {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%) !important;
}

.nav-subtitle {
    color: #667eea !important;
}

.nav-title {
    color: #ffffff !important;
}

.nav-previous:hover .nav-title,
.nav-next:hover .nav-title {
    color: #764ba2 !important;
}

/* Автор поста - тёмный фон */
.blog-post-author {
    background: #1a1a2e !important;
}

.author-box {
    background: #16213e !important;
    border: 2px solid #533483;
}

.author-box:hover {
    box-shadow: 0 12px 28px rgba(118, 75, 162, 0.3) !important;
}

.author-name {
    color: #ffffff !important;
}

.author-bio {
    color: #b0b0b0 !important;
}

/* Футер поста (теги) - тёмный фон */
.blog-post-footer {
    background: #1a1a2e !important;
    border-top: 2px solid #533483 !important;
}

.tags-label {
    color: #ffffff !important;
}

.post-tag {
    background: #16213e !important;
    border-color: #533483 !important;
    color: #b0b0b0 !important;
}

.post-tag:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #764ba2 !important;
}

/* Контент поста - улучшенная читаемость на тёмном фоне */
.blog-post-content {
    background: #1a1a2e;
}

.content-wrapper {
    color: #e0e0e0 !important;
}

.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #ffffff !important;
}

.content-wrapper a {
    color: #667eea !important;
}

.content-wrapper a:hover {
    color: #764ba2 !important;
}

.content-wrapper blockquote {
    background: #16213e !important;
    border-left-color: #667eea !important;
    color: #e0e0e0 !important;
}

.content-wrapper code {
    background: #16213e !important;
    color: #f472b6 !important;
    border-color: #533483 !important;
}

.content-wrapper pre {
    background: #0f3460 !important;
    border: 1px solid #533483;
}

/* Хлебные крошки - тёмный фон */
.blog-breadcrumbs {
    background: #0f3460 !important;
}

.blog-breadcrumbs a {
    color: #b0b0b0 !important;
}

.blog-breadcrumbs a:hover {
    color: #667eea !important;
}

.blog-breadcrumbs .current {
    color: #ffffff !important;
}

.blog-breadcrumbs .separator {
    color: #6b7280 !important;
}
