/* Latest Comments Shortcode Styles */

.lcs-wrapper {
    margin: 20px 0;
}

.lcs-latest-comments {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none !important; /* Отключаем счетчик темы */
}

/* Отключаем стили темы для элементов списка */
.widget-area .lcs-latest-comments li::before,
.lcs-latest-comments li::before {
    content: none !important;
    display: none !important;
}

.lcs-comment-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative !important; /* Сбрасываем позиционирование темы */
    padding-left: 15px !important; /* Убираем отступ для нумерации темы */
    counter-increment: none !important; /* Отключаем счетчик */
}

.lcs-comment-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.lcs-comment-item:last-child {
    margin-bottom: 0;
}

.lcs-avatar {
    margin-right: 15px;
    flex-shrink: 0;
}

.lcs-avatar img {
    border-radius: 50%;
    display: block;
}

.lcs-comment-body {
    flex: 1;
    min-width: 0; /* Для правильного обрезания текста */
}

/* Стили для комментариев без аватара */
.lcs-comment-item.lcs-no-avatar {
    padding-left: 15px;
}

.lcs-author {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.lcs-post-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.lcs-post-title a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.lcs-post-title a:hover {
    color: #005177;
    text-decoration: underline;
}

.lcs-text {
    margin-bottom: 8px;
    line-height: 1.6;
}

.lcs-text a {
    text-decoration: none;
    color: #444;
    display: block;
}

.lcs-text a:hover {
    color: #000;
}

.lcs-date {
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.lcs-no-comments {
    padding: 20px;
    text-align: center;
    background: #f0f0f0;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* Responsive дизайн */
@media screen and (max-width: 600px) {
    .lcs-comment-item {
        padding: 12px;
        flex-direction: column;
    }
    
    .lcs-avatar {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .lcs-author {
        font-size: 15px;
    }
    
    .lcs-text {
        font-size: 14px;
    }
}

/* Темная тема (опционально) */
@media (prefers-color-scheme: dark) {
    .lcs-comment-item {
        background: #2a2a2a;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .lcs-comment-item:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
    
    .lcs-author {
        color: #e0e0e0;
    }
    
    .lcs-post-title {
        color: #aaa;
    }
    
    .lcs-post-title a {
        color: #4a9eff;
    }
    
    .lcs-post-title a:hover {
        color: #72b4ff;
    }
    
    .lcs-text a {
        color: #ccc;
    }
    
    .lcs-text a:hover {
        color: #fff;
    }
    
    .lcs-date {
        color: #888;
    }
    
    .lcs-no-comments {
        background: #1a1a1a;
        color: #999;
    }
}

/* Анимация при загрузке */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lcs-comment-item {
    animation: fadeIn 0.4s ease-out;
}

.lcs-comment-item:nth-child(2) {
    animation-delay: 0.1s;
}

.lcs-comment-item:nth-child(3) {
    animation-delay: 0.2s;
}

.lcs-comment-item:nth-child(4) {
    animation-delay: 0.3s;
}

.lcs-comment-item:nth-child(5) {
    animation-delay: 0.4s;
}