/* Categories Styles */
/* ================================================== */

/* Page containers */
.categories-page,
.category-page,
.category-tasks-page {
    min-height: calc(100vh - 200px);
}

/* Breadcrumb styles */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin-bottom: 1.5rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    color: var(--text-secondary);
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "»";
    color: var(--text-muted);
    margin: 0 0.5rem;
    font-weight: normal;
}

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

.breadcrumb-item.active+.breadcrumb-item::before {
    display: none;
}

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

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

}

/* Category header styles */
.category-header,
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.category-icon-large {
    font-size: 4rem;
    opacity: 0.9;
    flex-shrink: 0;
}

.category-details {
    flex: 1;
    text-align: left;
}

.category-title,
.category-tasks-title,
.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: left;
}

.page-header .category-tasks-title {
    font-size: 2rem;
}

.category-meta,
.category-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

.meta-item i {
    color: #ffd700;
}

/* Categories grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
}



.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    display: block;
}

.category-title a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.category-title a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.category-description {
    margin-bottom: 0.7rem;
}

.category-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.category-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item i {
    color: var(--primary-color);
}

.category-footer {
    padding: 1.5rem;
    padding-top: 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.category-footer .btn,
.task-footer .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.category-footer .btn:hover,
.task-footer .btn:hover {
    transform: translateY(-2px);
    background: var(--primary-hover);
    color: white;
}

/* Subcategories grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.subcategory-card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.subcategory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.subcategory-header {
    background: var(--background-color);
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.subcategory-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.subcategory-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.subcategory-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.subcategory-title a:hover {
    color: var(--primary-color);
}

.subcategory-content {
    padding: 1.5rem;
}

.subcategory-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat i {
    color: var(--primary-color);
}

.subcategory-footer {
    padding: 0.5rem 1.5rem;
    text-align: center;
}

/* Tasks grid */
.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.task-card {
    background: var(--surface-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}


.task-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.task-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.task-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 1.4;
    flex: 1;
    margin-right: 1rem;
}

.task-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.task-title a:hover {
    color: var(--primary-color);
}

.task-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.task-difficulty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.5px;
}

.task-difficulty-badge.difficulty-Łatwy,
.task-difficulty-badge.difficulty-łatwy {
    background: #e8f5e8;
    color: #2e7d32;
}

.task-difficulty-badge.difficulty-Łatwy i,
.task-difficulty-badge.difficulty-łatwy i {
    color: #2e7d32;
}

.task-difficulty-badge.difficulty-Średni,
.task-difficulty-badge.difficulty-średni {
    background: #fff3e0;
    color: #f57c00;
}

.task-difficulty-badge.difficulty-Średni i,
.task-difficulty-badge.difficulty-średni i {
    color: #f57c00;
}

.task-difficulty-badge.difficulty-trudny {
    background: #ffebee;
    color: #c62828;
}

.task-difficulty-badge.difficulty-trudny i {
    color: #c62828;
}

.task-like-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.task-like-btn:hover {
    color: #e91e63;
    transform: scale(1.2);
}

.task-like-btn.liked {
    color: #e91e63;
    animation: heartBeat 0.6s ease-in-out;
}

.task-like-btn.liked:hover {
    color: #c2185b;
    transform: scale(1.2);
}

@keyframes heartBeat {
    0% {
        transform: scale(1);
    }

    14% {
        transform: scale(1.3);
    }

    28% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.3);
    }

    70% {
        transform: scale(1);
    }
}

.task-content {
    padding: 1rem 1.5rem;
    flex-grow: 1;
}

.task-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.task-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.task-stats {
    display: flex;
    gap: 1rem;
}

.task-detail-page .task-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 2rem;
}

.task-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.task-content .card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.task-content .card-body {
    padding: 2rem;
}

.task-video {
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.task-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.task-solutions .card {
    margin-bottom: 1rem;
}

.task-solutions .card-header {
    background: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.task-navigation {
    margin: 3rem 0;
}

.task-navigation .btn {
    min-width: 200px;
}

.like-btn {
    border: 1px solid #dee2e6;
    background: white;
    color: #6c757d;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.like-btn:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}

.like-btn.liked {
    color: #dc3545;
    border-color: #dc3545;
}

.like-count {
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .task-detail-page .task-title {
        font-size: 1.5rem;
    }

    .task-navigation .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }

    .task-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .task-content .card-body {
        padding: 1rem;
    }
}





/* Browse section */
.browse-section {
    background: linear-gradient(135deg, #f8fffe 0%, #e8f5f0 100%);

    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.15);
    position: relative;
    overflow: hidden;
}

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

.browse-content h3 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    text-align: left;
}

.browse-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.browse-btn {
    background: linear-gradient(135deg, var(--primary-color), #22c55e);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(124, 179, 66, 0.3);
    font-size: 1rem;
    background-size: 200% 200%;
    background-position: 0% 50%;
}

.browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 179, 66, 0.4);
    background-position: 100% 50%;
}

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

/* Dark mode support for browse section */
[data-theme="dark"] .browse-section {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(34, 197, 94, 0.08) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .browse-section::before {
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
}

[data-theme="dark"] .browse-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .browse-content p {
    color: var(--text-secondary);
}

/* Section headers */
.section-header {
    margin-bottom: 2rem;
    text-align: left;
}

.section-header h2 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.section-header h2 i {
    margin-right: 0.5rem;
    padding: 0.65rem 0.5rem;
    background: #e8f5e8;
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 1.2rem;
}

/* Dark mode styles for section header icon */
[data-theme="dark"] .section-header h2 i {
    background: rgba(34, 197, 94, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Premium badge */
.premium-badge-small {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: linear-gradient(135deg, #f39c12, #e74c3c);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.premium-badge-small i {
    font-size: 0.8rem;
    color: #ffd700;
}

/* Task tags */
.task-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.task-tags .tag {
    background: var(--background-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.task-tags .tag i {
    font-size: 0.7rem;
}

/* No content states */
.no-categories,
.no-subcategories,
.no-tasks {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.no-categories i,
.no-subcategories i,
.no-tasks i {
    font-size: 48px;
    margin-bottom: 10px;
    display: block;
    color: var(--text-muted);
}

/* View all card */
.view-all-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.view-all-card:hover {
    transform: translateY(-3px);
}

.view-all-link {
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.view-all-link:hover {
    color: white;
    text-decoration: none;
}

.view-all-link h4 {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.25rem;
}

.view-all-link p {
    margin: 0;
    opacity: 0.9;
}

/* Section actions */
.section-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.section-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

/* Filters section */
.filters-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

/* Search group */
.search-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-group .filter-input {
    flex: 1;
    margin: 0;
}

.search-group .btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-group .btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

/* Filter actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.filter-actions .btn {
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-actions .btn:first-child {
    background: var(--primary-color);
    color: white;
    border: none;
}

.filter-actions .btn:first-child:hover {
    background: var(--primary-hover);
}

.filter-actions .btn:last-child {
    background: transparent;
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.filter-actions .btn:last-child:hover {
    background: var(--surface-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive filter actions */
@media (max-width: 768px) {
    .browse-content {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        text-align: center;
    }

    .browse-btn {
        width: 100%;
        justify-content: center;
    }

    .filter-actions {
        flex-direction: column;
        gap: 10px;
    }

    .filter-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .search-group {
        gap: 10px;
    }


}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.filter-select,
.filter-input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--background-color);
    color: var(--text-primary);
    font-size: 0.9rem;
    height: 40px;
    box-sizing: border-box;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(124, 179, 66, 0.1);
}

/* Dark mode support */
[data-theme="dark"] .breadcrumb {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-card,
[data-theme="dark"] .subcategory-card,
[data-theme="dark"] .task-card {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .category-header,
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-theme="dark"] .subcategory-header {
    background: var(--background-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .task-header,
[data-theme="dark"] .task-footer,
[data-theme="dark"] .category-footer,
[data-theme="dark"] .subcategory-footer {
    border-color: var(--border-color);
}

[data-theme="dark"] .view-all-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

[data-theme="dark"] .filters-section {
    background: var(--surface-color);
    border-color: var(--border-color);
}

[data-theme="dark"] .filter-select,
[data-theme="dark"] .filter-input {
    background: var(--background-color);
    border-color: var(--border-color);
    color: var(--text-primary);
}

[data-theme="dark"] .filter-select:focus,
[data-theme="dark"] .filter-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 195, 74, 0.1);
}

/* Dark mode support for new elements */
[data-theme="dark"] .premium-badge-small {
    background: linear-gradient(135deg, #f39c12, #e74c3c);
}

[data-theme="dark"] .task-tags .tag {
    background: var(--surface-color);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

[data-theme="dark"] .task-difficulty-badge.difficulty-Łatwy,
[data-theme="dark"] .task-difficulty-badge.difficulty-łatwy {
    background: rgba(46, 125, 50, 0.2);
    color: #4caf50;
}

[data-theme="dark"] .task-difficulty-badge.difficulty-Łatwy i,
[data-theme="dark"] .task-difficulty-badge.difficulty-łatwy i {
    color: #4caf50;
}

[data-theme="dark"] .task-difficulty-badge.difficulty-Średni,
[data-theme="dark"] .task-difficulty-badge.difficulty-średni {
    background: rgba(245, 124, 0, 0.2);
    color: #ff9800;
}

[data-theme="dark"] .task-difficulty-badge.difficulty-Średni i,
[data-theme="dark"] .task-difficulty-badge.difficulty-średni i {
    color: #ff9800;
}

[data-theme="dark"] .task-difficulty-badge.difficulty-trudny,
[data-theme="dark"] .task-difficulty-badge.difficulty-Trudny {
    background: rgba(198, 40, 40, 0.2);
    color: #f44336;
}

[data-theme="dark"] .task-difficulty-badge.difficulty-trudny i,
[data-theme="dark"] .task-difficulty-badge.difficulty-Trudny i {
    color: #f44336;
}

[data-theme="dark"] .task-like-btn {
    color: var(--text-muted);
}

[data-theme="dark"] .task-like-btn:hover {
    color: #e91e63;
}

[data-theme="dark"] .task-like-btn.liked {
    color: #e91e63;
}

[data-theme="dark"] .task-like-btn.liked:hover {
    color: #c2185b;
}

/* Responsive design */
@media (max-width: 1200px) {

    .categories-grid,
    .subcategories-grid,
    .tasks-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {

    .categories-page,
    .category-page,
    .category-tasks-page {
        padding: 1rem 0;
    }

    .category-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .category-icon-large {
        font-size: 3rem;
    }

    .category-title,
    .page-header h1 {
        font-size: 2rem;
    }

    .category-header,
    .page-header {
        padding: 2rem 1.5rem;
    }

    .categories-grid,
    .subcategories-grid,
    .tasks-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category-card,
    .subcategory-card,
    .task-card {
        max-width: 100%;
    }

    .task-footer {
        gap: 1rem;
        align-items: stretch;
    }

    .task-stats {
        justify-content: center;
    }

    .section-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .section-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .category-header,
    .page-header {
        padding: 1.5rem 1rem;
    }

    .category-title,
    .page-header h1 {
        font-size: 1.5rem;
    }

    .category-icon-large {
        font-size: 2.5rem;
    }

    .category-meta,
    .category-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .filters-section {
        padding: 1rem;
    }
}

/* Loading indicator for infinite scroll */
.loading-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 16px;
}

.loading-indicator i {
    font-size: 20px;
    color: var(--primary-color);
}

.loading-indicator.hidden {
    display: none;
}