/* Comments Section - Based on Collaboration UI */

/* Comments Section */
.comments-section {
    padding: 3rem 0;
    background: #f8f9fa;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comment-count {
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 500;
}

/* Comment Form */
.comment-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.comment-form-inner .form-group {
    margin-bottom: 1rem;
}

.comment-form-inner .form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.8rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.comment-form-inner .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Comments List */
.comments-list {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Comment Items */
.comment-item {
    padding: 2rem;
    border-bottom: 1px solid #f1f3f4;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-content-wrapper {
    display: flex;
    gap: 1rem;
}

/* Avatar Circles */
.comment-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #6610f2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #28a745, #20c997);
    font-size: 0.9rem;
}

/* Comment Content */
.comment-main {
    flex: 1;
    min-width: 0;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

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

.comment-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.reply-indicator {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
    word-wrap: break-word;
}

/* Comment Actions */
.comment-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-btn {
    background: transparent;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.action-btn:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
}

.reply-btn:hover {
    background: #e7f3ff;
    border-color: #007bff;
    color: #007bff;
}

.delete-btn:hover {
    background: #ffeaea;
    border-color: #dc3545;
    color: #dc3545;
}

.edit-btn:hover {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Reply Items */
.reply-item {
    margin-left: 3rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f3f4;
}

.reply-item .comment-content-wrapper {
    gap: 0.75rem;
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.no-comments-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.no-comments i {
    font-size: 3rem;
    opacity: 0.5;
}

/* Loading State */
.comment-loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

/* Login Prompt */
.comment-login-prompt {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .comments-section {
        padding: 2rem 0;
    }
    
    .comment-form,
    .comments-list,
    .comment-login-prompt {
        margin: 0 -1rem;
        border-radius: 0;
    }
    
    .comment-item {
        padding: 1.5rem;
    }
    
    .comment-content-wrapper {
        gap: 0.75rem;
    }
    
    .avatar-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .reply-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .reply-item {
        margin-left: 2rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }
    
    .comment-actions {
        justify-content: flex-start;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .comment-item {
        padding: 1rem;
    }
    
    .comment-form {
        padding: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .reply-item {
        margin-left: 1rem;
    }
}