:root {
    --primary: #4caf50;
    --primary-light: #66bb6a;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
}

.comments-section {
    margin-bottom: 16px;
}

.comment-card {
    background: var(--bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.25s ease;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    overflow: hidden;
}

.comment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-light);
}

.comment-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 16px;
}

.comment-card__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comment-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.comment-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-card__badge {
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.comment-card__text {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.comment-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}

.comment-card__date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-card__more {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.comment-card:hover .comment-card__more {
    opacity: 1;
}

/* Кнопка "Все комментарии" */
.comments-all-btn {
    text-align: right;
}

.comments-all-btn__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--primary);
}

.comments-all-btn__link:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.comments-all-btn__text {
    white-space: nowrap;
}

.comments-all-btn__icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.comments-all-btn__link:hover .comments-all-btn__icon {
    transform: translateX(2px);
}

