/* Category Page Styles */

/* Category Header */
.category-header {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.category-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 89, 0, 0.1);
    border-radius: 50%;
    filter: blur(80px);
}

.breadcrumb-nav {
    margin-bottom: 2rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary);
}

.breadcrumb-item.active {
    color: var(--dark);
    font-weight: 500;
}

.category-hero {
    text-align: center;
    position: relative;
    z-index: 2;
}

.category-icon-large {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(255, 89, 0, 0.3);
}

.category-icon-large i {
    font-size: 4rem;
    color: var(--white);
}

.category-title-main {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-description {
    font-size: 1.125rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-weight: 600;
    color: var(--dark);
}

.stat-badge i {
    font-size: 1.25rem;
    color: var(--primary);
}

/* Filters Section */
.filters-section {
    padding: 2rem 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-lighter);
    position: sticky;
    top: 80px;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filters-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filters-left {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: 12px;
    color: var(--gray);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-filter:hover {
    background: rgba(255, 89, 0, 0.1);
    color: var(--primary);
    border-color: rgba(255, 89, 0, 0.2);
}

.btn-filter.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(255, 89, 0, 0.3);
}

.btn-filter i {
    font-size: 1rem;
}

.filters-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-dropdown {
    position: relative;
}

.btn-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--bg-light);
    border: 2px solid var(--gray-lighter);
    border-radius: 12px;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-sort:hover {
    background: rgba(255, 89, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 89, 0, 0.1);
    color: var(--primary);
}

.dropdown-item.active {
    background: var(--gradient-primary);
    color: var(--white);
}

.btn-view-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-view-toggle:hover {
    background: rgba(255, 89, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-view-toggle.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
}

/* Recipes Section */
.recipes-section {
    padding: 3rem 0;
    background: var(--bg-light);
}

.recipe-item {
    transition: all 0.3s ease;
}

.recipe-item.hidden {
    display: none;
}

/* List View */
.recipes-section.list-view .recipe-item {
    width: 100%;
    max-width: 100%;
}

.recipes-section.list-view .recipe-modern {
    flex-direction: row;
    height: auto;
}

.recipes-section.list-view .recipe-image-modern {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
}

.recipes-section.list-view .recipe-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recipes-section.list-view .recipe-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.recipes-section.list-view .recipe-desc {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* Pagination */
.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination-modern {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--white);
    border: 2px solid var(--gray-lighter);
    border-radius: 10px;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: rgba(255, 89, 0, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.page-item.active .page-link {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 89, 0, 0.3);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .category-header {
        padding: 5rem 0 2rem;
    }
    
    .category-icon-large {
        width: 80px;
        height: 80px;
    }
    
    .category-icon-large i {
        font-size: 2.5rem;
    }
    
    .filters-section {
        position: static;
    }
    
    .filters-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filters-left,
    .filters-right {
        width: 100%;
        justify-content: center;
    }
    
    .recipes-section.list-view .recipe-modern {
        flex-direction: column;
    }
    
    .recipes-section.list-view .recipe-image-modern {
        width: 100%;
        height: 250px;
    }
}

