/* ZuriWP Category Browser Styles */

.zuriwp-category-browser {
    max-width: 100%;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Filters Section */
.zuriwp-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.zuriwp-search {
    flex: 1;
    min-width: 250px;
}

.zuriwp-search input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.zuriwp-search input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.zuriwp-sort select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.zuriwp-sort select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

/* Category Grid */
.zuriwp-category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.zuriwp-category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e1e5e9;
}

.zuriwp-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.zuriwp-category-content {
    padding: 1.5rem;
    text-align: center;
}

.zuriwp-category-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
}

.zuriwp-category-count {
    margin: 0 0 1rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 500;
}

.zuriwp-category-link {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.zuriwp-category-link:hover {
    background: linear-gradient(135deg, #005a87 0%, #004466 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
    color: white;
    text-decoration: none;
}

/* Pagination */
.zuriwp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.zuriwp-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
}

.zuriwp-pagination .page-numbers:hover,
.zuriwp-pagination .page-numbers.current {
    background: #007cba;
    border-color: #007cba;
    color: white;
}

.zuriwp-pagination .prev,
.zuriwp-pagination .next {
    width: auto;
    padding: 0 16px;
}

.zuriwp-pagination .dots {
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
    cursor: default;
}

.zuriwp-pagination .dots:hover {
    background: transparent !important;
    border: none !important;
    color: #6c757d !important;
}

/* Loading Spinner */
.zuriwp-loading {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin: 1rem 0;
}

.zuriwp-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.zuriwp-loading p {
    margin: 0;
    color: #6c757d;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No Categories Message */
.zuriwp-no-categories {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    font-size: 1.1rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
}

/* Breadcrumb Navigation */
.zuriwp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.zuriwp-breadcrumb a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.zuriwp-breadcrumb a:hover {
    text-decoration: underline;
}

.zuriwp-breadcrumb .separator {
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .zuriwp-category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .zuriwp-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .zuriwp-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .zuriwp-search,
    .zuriwp-sort {
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .zuriwp-category-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .zuriwp-category-content {
        padding: 1rem;
    }
    
    .zuriwp-category-title {
        font-size: 1.1rem;
    }
    
    .zuriwp-filters {
        padding: 1rem;
    }
}

/* Animation for category cards */
.zuriwp-category-card {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.zuriwp-category-card:nth-child(1) { animation-delay: 0.1s; }
.zuriwp-category-card:nth-child(2) { animation-delay: 0.2s; }
.zuriwp-category-card:nth-child(3) { animation-delay: 0.3s; }
.zuriwp-category-card:nth-child(4) { animation-delay: 0.4s; }
.zuriwp-category-card:nth-child(5) { animation-delay: 0.5s; }
.zuriwp-category-card:nth-child(6) { animation-delay: 0.6s; }
.zuriwp-category-card:nth-child(7) { animation-delay: 0.7s; }
.zuriwp-category-card:nth-child(8) { animation-delay: 0.8s; } 