/* Comments section styles */
.comments-section {
    margin: 40px 0;
    padding: 25px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

.comments-title {
    color: #2E6D4D;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-title i {
    color: #78BF9B;
}

.comments-count {
    font-size: 1rem;
    color: #718096;
    align-self: flex-end;
    margin-bottom: 3px;
}

.comment-form {
    margin-bottom: 30px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    color: #4a5568;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #78BF9B;
    box-shadow: 0 0 0 3px rgba(120, 191, 155, 0.2);
}

.comment-submit-btn {
    background: linear-gradient(135deg, #78BF9B, #2E6D4D);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comment-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(120, 191, 155, 0.2);
    background: linear-gradient(135deg, #2E6D4D, #78BF9B);
}

.auth-required {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    text-align: center;
}

.auth-required a {
    color: #78BF9B;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-required a:hover {
    color: #FD8D0D;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.comment-card:hover {
    box-shadow: 0 4px 12px rgba(120, 191, 155, 0.1);
    transform: translateY(-2px);
}

.comment-card.author-comment {
    border-left: 4px solid #78BF9B;
    background: rgba(120, 191, 155, 0.03);
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.comment-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.comment-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 1.2rem;
    font-weight: bold;
    color: #718096;
}

.comment-author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.comment-author-name {
    font-weight: 600;
    color: #2E6D4D;
    font-size: 0.95rem;
}

.comment-author-badge {
    background: #FD8D0D;
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.comment-date {
    font-size: 0.8rem;
    color: #718096;
}

.comment-body {
    color: #4a5568;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.comment-body p {
    margin: 0;
}

.comment-actions {
    display: flex;
    justify-content: flex-end;
}

.comment-delete-btn {
    color: #e53e3e;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.comment-delete-btn:hover {
    color: #c53030;
}

.comment-delete-btn i {
    font-size: 0.9em;
}

.no-comments {
    text-align: center;
    padding: 20px;
    color: #718096;
    font-style: italic;
}

/* Responsive styles */
@media (max-width: 768px) {
    .comments-section {
        padding: 15px;
    }

    .comments-title {
        font-size: 1.3rem;
    }

    .comment-card {
        padding: 15px;
    }

    .comment-header {
        gap: 10px;
    }

    .comment-author-avatar {
        width: 36px;
        height: 36px;
    }
}