/**
 * Theme Name: IZUMI Guide
 * Template:   mesmerize-pro
 */

.article-card {
    padding: 0;
}
/* Category Filter Bars Styling */
.category-filters-wrapper {
    margin-bottom: 30px;
}

.category-filter-bar,
.subcategory-filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.subcategory-filter-bar {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.filter-label {
    font-weight: 600;
    margin-right: 10px;
    white-space: nowrap;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #6c757d;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.filter-button:hover {
    background: #e9ecef;
    color: #495057;
    text-decoration: none;
    transform: translateY(-1px);
}

.filter-button .count {
    margin-left: 5px;
    font-size: 12px;
    opacity: 0.8;
}

.filter-button.loading:after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #007cba;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 5px;
}

/* AJAX Loading States */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth transitions for filter changes */
.post-list {
    transition: opacity 0.3s ease;
}

.filter-button {
    transition: all 0.3s ease;
}

.filter-button:hover {
    transform: translateY(-1px);
}

/* Subcategory bar animations */
.subcategory-filter-bar {
    overflow: hidden;
}

/* Smooth slide animations handled by jQuery */

/* Custom Post Meta Styling */
.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.post-meta .author,
.post-meta .date,
.post-meta .categories {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-meta .meta-separator {
    color: #ccc;
    font-weight: normal;
}

.post-meta .author-link,
.post-meta .category-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-meta .author-link:hover,
.post-meta .category-link:hover {
    color: #007cba;
    text-decoration: none;
}

.post-meta i {
    font-size: 12px;
    opacity: 0.8;
}

/* Make sure the meta doesn't break on small screens */
@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .post-meta .meta-separator {
        display: none;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .category-filter-bar,
    .subcategory-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-label {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .filter-buttons {
        width: 100%;
    }
    
    .filter-button {
        font-size: 13px;
        padding: 6px 12px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
    }
    
    .loading-text {
        font-size: 14px;
    }
}