/* Comments System Styles */
.comments-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comment-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.comment-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: box-shadow 0.3s ease;
}

.comment-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.avatar-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-transform: uppercase;
}

.comment-author {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 5px;
}

.comment-date {
    color: #6c757d;
    font-size: 14px;
}

.comment-content {
    color: #495057;
    line-height: 1.6;
    margin-top: 10px;
}

.comment-actions {
    display: flex;
    gap: 5px;
}

.reply-form {
    margin-top: 15px;
}

.reply-item {
    background: #f8f9fa;
    border-left: 3px solid #007bff;
    margin-bottom: 10px;
}

.reply-author {
    color: #495057;
    font-size: 14px;
}

.reply-date {
    color: #6c757d;
    font-size: 12px;
}

.reply-content {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Badge styles */
.badge {
    font-size: 11px;
    padding: 3px 6px;
}

/* Button styles */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

.btn-sm {
    font-size: 12px;
    padding: 4px 8px;
}

/* Form enhancements */
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success/Error messages */
.alert {
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .comment-item {
        padding: 10px;
    }
    
    .comment-avatar {
        margin-right: 10px;
    }
    
    .avatar-circle {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
    }
    
    .comment-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .btn-sm {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Animation for new comments */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment-item.new {
    animation: slideIn 0.3s ease-out;
}

/* Empty state styling */
.comments-list .text-center {
    padding: 40px 20px;
    color: #6c757d;
}

.comments-list .fa-comments {
    color: #dee2e6;
    margin-bottom: 15px;
}

/* Reply form styling */
.card.bg-light {
    border: 1px solid #e9ecef;
}

.card-title {
    color: #495057;
    font-size: 16px;
    font-weight: 600;
}

/* Admin delete button */
.btn-outline-danger:hover {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Comment count styling */
.comments-count {
    color: #007bff;
    font-weight: 600;
}

/* Improved textarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

textarea.form-control-sm {
    min-height: 60px;
}

/* Focus states */
.comment-item:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Smooth transitions */
* {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

/* Facebook-style action buttons */
.action-btn {
    background: transparent;
    font-weight: 500;
}

.action-btn:hover {
    background-color: #f0f2f5;
}

.hover-bg-light:hover {
    background-color: #f0f2f5 !important;
}

/* Share menu styling */
.share-menu {
    min-width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.share-menu .btn {
    text-align: left;
}

/* News actions container */
.news-actions {
    position: relative;
}

/* Like button active state */
.like-btn.liked {
    color: #1877f2 !important;
}

.like-btn.liked i {
    color: #1877f2;
}

/* Responsive adjustments for action buttons */
@media (max-width: 768px) {
    .action-btn {
        font-size: 14px;
        padding: 8px;
    }
    
    .action-btn i {
        font-size: 16px;
    }
}
