/* Question-Hub Custom Styles */

/* Enhanced Tag Cloud */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tag-link {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #FFD700, #FFF8DC);
    border-radius: 15px;
    color: #333;
    text-decoration: none;
    font-size: 11px;
    transition: all 0.3s ease;
}

.tag-link:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(255, 215, 0, 0.4);
}

.tag-count {
    font-size: 9px;
    opacity: 0.7;
}

/* Statistics Widget */
.stats-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-list li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.stats-list li:last-child {
    border-bottom: none;
}

.stat-icon {
    font-size: 16px;
    margin-right: 10px;
}

.stat-label {
    flex: 1;
    font-size: 11px;
}

.stat-value {
    font-weight: bold;
    color: #ff6b35;
    font-size: 12px;
}

/* Popular Posts Enhancement */
.popular-posts {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-posts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.popular-posts li:last-child {
    border-bottom: none;
}

.popular-posts a {
    flex: 1;
    color: #333;
    text-decoration: none;
    font-size: 10px;
    line-height: 1.3;
    padding-right: 5px;
}

.popular-posts a:hover {
    color: #ff6b35;
}

.popular-posts .view-count {
    font-size: 9px;
    color: #ff6b35;
    font-weight: bold;
    white-space: nowrap;
}

/* Recent Questions */
.recent-questions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-questions li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
}

.recent-questions li:last-child {
    border-bottom: none;
}

.recent-questions a {
    color: #333;
    text-decoration: none;
    font-size: 10px;
    display: block;
}

.recent-questions a:hover {
    color: #ff6b35;
}

.recent-questions .meta {
    margin-top: 2px;
}

.recent-questions small {
    color: #999;
    font-size: 9px;
}

/* Pagination Styles */
.pagination {
    margin: 30px 0;
    text-align: center;
}

.page-numbers {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 3px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .popular-posts li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .popular-posts .view-count {
        margin-top: 2px;
        font-size: 8px;
    }
}