/* Общий контейнер для формы комментариев */
#comment-form-container {
    margin-bottom: 30px;
}

.comment-form-wrapper {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Форма комментария */
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-input-group input[type="text"],
.comment-input-group input[type="email"],
.comment-input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    font-size: 1rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.comment-input-group textarea {
    resize: vertical;
    min-height: 100px;
}

.comment-input-group input[type="text"]:focus,
.comment-input-group input[type="email"]:focus,
.comment-input-group textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
    outline: none;
    background: #fff;
}

/* Рейтинг в форме */
.comment-rating-input {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.rating-label {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1rem;
    text-transform: uppercase;
}

.rating-stars-input {
    color: #f1c40f;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    gap: 5px;
}

.rating-stars-input i {
    transition: all 0.3s ease;
    padding: 5px;
    background: #f8f9fa;
    border-radius: 50%;
}

.rating-stars-input i:hover {
    color: #e67e22;
    transform: scale(1.1);
    background: #ecf0f1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rating-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    font-style: italic;
    font-weight: 500;
    min-width: 100px;
    transition: all 0.3s ease;
}

.rating-description:not(:empty) {
    color: #28a745;
    font-weight: 600;
}

.rating-error {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8d7da;
    padding: 5px 10px;
    border-radius: 4px;
}

/* Кнопка отправки */
.comment-form button[type="submit"] {
    padding: 10px 25px;
    background: linear-gradient(90deg, #28a745, #218838);
    border: none;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.comment-form button[type="submit"]:hover {
    background: linear-gradient(90deg, #218838, #1e7e34);
    transform: scale(1.05);
}

/* Секция комментариев */
.comments-section {
    margin-top: 20px;
}

.comments-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Заголовок комментариев */
.comments-header {
    margin-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.comments-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    text-transform: uppercase;
}

/* Список комментариев */
.comment-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.comment {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: background 0.3s ease;
}

.comment:hover {
    background: #f8f9fa;
}

/* Заголовок комментария */
.comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.comment-header strong {
    font-size: 1rem;
    color: #2c3e50;
    font-weight: 600;
}

.user-rating-stars {
    color: #f1c40f;
    font-size: 1rem;
}

.rating-value {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-left: 8px;
    font-style: italic;
}

/* Контент комментария */
.comment-content p {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #34495e;
    line-height: 1.5;
}

.comment-content small {
    color: #95a5a6;
    font-size: 0.85rem;
    font-style: italic;
}

/* Действия с комментарием */
.comment-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.comment-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vote-up {
    background: #28a745;
    color: white;
}

.vote-up:hover {
    background: #218838;
    transform: translateY(-2px);
}

.vote-down {
    background: #dc3545;
    color: white;
}

.vote-down:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.vote-up.disabled, .vote-down.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vote-score {
    font-weight: 600;
    color: #007bff;
    min-width: 20px;
    text-align: center;
    font-size: 1rem;
}

/* Кнопка "Load more" */
#load-more {
    display: block;
    margin: 20px auto;
    padding: 10px 25px;
    background: linear-gradient(90deg, #007bff, #00b4ff);
    color: white;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

#load-more:hover {
    background: linear-gradient(90deg, #0069d9, #0097e6);
    transform: scale(1.05);
}
/*alert*/
#comment-message {
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}
.text-danger {
    color: #dc3545;
    background-color: #f8d7da;
}
.text-success {
    color: #28a745;
    background-color: #d4edda;
}