/* Comment Count Enhancements */
.comment-count {
    color: #6c757d;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.comment-count:hover {
    color: #007bff;
}

.comment-count i {
    margin-right: 0.25rem;
    color: #007bff;
}

/* Post Meta Enhancements */
.post-meta .comment-count {
    display: inline-flex;
    align-items: center;
}

.post-meta .comment-count:hover {
    text-decoration: none;
}

/* Comment Widget Styling */
.comment-widget {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.comment-widget .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px 8px 0 0;
}

.comment-widget .comment-item {
    padding: 0.75rem;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
}

.comment-widget .comment-item:hover {
    background-color: #f8f9fa;
}

.comment-widget .comment-item:last-child {
    border-bottom: none;
}

.comment-widget .comment-author {
    font-weight: 600;
    color: #495057;
    font-size: 0.875rem;
}

.comment-widget .comment-excerpt {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0.25rem 0;
}

.comment-widget .comment-meta {
    font-size: 0.75rem;
    color: #adb5bd;
}

.comment-widget .comment-post-title {
    font-size: 0.75rem;
    color: #007bff;
    text-decoration: none;
}

.comment-widget .comment-post-title:hover {
    text-decoration: underline;
}

/* Search Results Comment Count */
.search-result-meta .comment-count {
    color: #6c757d;
    font-size: 0.8rem;
}

/* Archive Page Comment Count */
.archive-page .comment-count {
    font-size: 0.8rem;
}

/* Category Page Comment Count */
.category-page .comment-count {
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comment-count {
        font-size: 0.8rem;
    }
    
    .comment-widget .comment-item {
        padding: 0.5rem;
    }
    
    .comment-widget .comment-author {
        font-size: 0.8rem;
    }
    
    .comment-widget .comment-excerpt {
        font-size: 0.75rem;
    }
}

/* Dark Theme Support */
body[data-theme="dark"] .comment-widget {
    background: #2d3748;
    color: #e2e8f0;
}

body[data-theme="dark"] .comment-widget .comment-item {
    border-bottom-color: #4a5568;
}

body[data-theme="dark"] .comment-widget .comment-item:hover {
    background-color: #4a5568;
}

body[data-theme="dark"] .comment-widget .comment-author {
    color: #e2e8f0;
}

body[data-theme="dark"] .comment-widget .comment-excerpt {
    color: #a0aec0;
}

body[data-theme="dark"] .comment-widget .comment-meta {
    color: #718096;
}

/* Animation for comment counts */
.comment-count-animation {
    animation: commentPulse 0.3s ease-in-out;
}

@keyframes commentPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Badge styling for comment counts */
.comment-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Footer comment widget adjustments */
footer .comment-widget {
    box-shadow: none;
    border: 1px solid rgba(255,255,255,0.1);
}

footer .comment-widget .card-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

footer .comment-widget .comment-item {
    background: transparent;
    border-bottom-color: rgba(255,255,255,0.1);
}

footer .comment-widget .comment-author,
footer .comment-widget .comment-excerpt,
footer .comment-widget .comment-meta {
    color: rgba(255,255,255,0.8);
}

footer .comment-widget .comment-post-title {
    color: rgba(255,255,255,0.9);
} 