@charset "UTF-8";
/**
 * ==============================================================================
 * Zubox Page-Specific Stylesheet
 * (Faceted Search, Categories, Collections, Auth & Access)
 * File: assets/css/pages.css
 * ==============================================================================
 */

/* ==========================================================================
   1. Search & Category Faceted Exploration
   ========================================================================== */

/* Hero Banner */
.category-hero-banner,
.search-hero-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: var(--zubox-radius-lg, 16px);
    padding: 2.75rem 2rem;
    color: #ffffff;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
}

.category-hero-banner::after,
.search-hero-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(46, 196, 182, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
}

.category-hero-eyebrow,
.search-hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--zubox-accent, #2ec4b6);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.category-hero-title,
.search-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.category-hero-subtitle,
.search-hero-subtitle {
    color: #cbd5e1;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 800px;
}

.category-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    color: #f1f5f9;
}

/* Green Search Hero Alternative */
.search-hero {
    background: linear-gradient(135deg, #1b3d1b 0%, #2b5a2b 100%);
    color: #ffffff;
    padding: 50px 0;
    border-radius: 20px;
    margin-bottom: 40px;
}

/* Active Filter Chips */
.filter-chips-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    border-radius: var(--zubox-radius-pill, 50px);
    padding: 0.25rem 0.75rem;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    transition: all 0.15s ease;
}

.filter-chip:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ffffff;
}

.filter-clear-all {
    color: #f87171;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.5rem;
}

.filter-clear-all:hover {
    color: #ef4444;
    text-decoration: underline;
}

/* Faceted Filter Sidebar Panel */
.filter-panel-card {
    background: var(--zubox-surface, #ffffff);
    border: 1px solid var(--zubox-border, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.filter-panel-header {
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid var(--zubox-border, #e2e8f0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-panel-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-section {
    padding: 1.25rem;
    border-bottom: 1px solid var(--zubox-border-subtle, #f1f5f9);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-check-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
    border-radius: var(--zubox-radius-sm, 8px);
    font-size: 0.88rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s ease;
}

.filter-check-item:hover {
    background: #f1f5f9;
}

.filter-count-badge {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
    background: #f8fafc;
    padding: 2px 6px;
    border-radius: 10px;
}

.filter-show-more-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--zubox-blue, #0d6efd);
    background: none;
    border: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
}

/* Results Control Header */
.results-control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count-text {
    font-size: 0.95rem;
    color: #64748b;
    margin: 0;
}

.results-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-toggle-group {
    display: inline-flex;
    border: 1px solid #cbd5e1;
    border-radius: var(--zubox-radius-sm, 8px);
    overflow: hidden;
}

.view-toggle-btn {
    border: none;
    background: var(--zubox-surface, #ffffff);
    padding: 0.35rem 0.7rem;
    color: #64748b;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-toggle-btn.active {
    background: #0f172a;
    color: #ffffff;
}

/* Faceted Search & Category Card Views */
.search-card {
    background: var(--zubox-surface, #ffffff);
    border: 1px solid var(--zubox-border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -3px rgba(0, 0, 0, 0.08);
}

.search-card-thumb-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.search-card-grid .search-card-thumb-wrapper {
    aspect-ratio: 9/12;
}

.search-card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-card:hover .search-card-thumb {
    transform: scale(1.03);
}

.card-badge-platform,
.card-badge-duration,
.card-badge-type {
    position: absolute;
    z-index: 2;
    border-radius: var(--zubox-radius-pill, 50px);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    backdrop-filter: blur(4px);
}

.card-badge-platform {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    text-transform: uppercase;
}

.card-badge-duration {
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    font-family: monospace;
}

.card-badge-type {
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    text-transform: uppercase;
}

.search-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.search-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #0f172a;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-excerpt {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--zubox-border-subtle, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #94a3b8;
}

.search-creator-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* List View Variant */
.search-card-list {
    flex-direction: row;
    height: auto;
    margin-bottom: 1rem;
}

.search-card-list .list-thumb-col {
    width: 220px;
    min-width: 220px;
    position: relative;
}

@media (max-width: 767px) {
    .search-card-list {
        flex-direction: column;
    }
    .search-card-list .list-thumb-col {
        width: 100%;
        min-width: 100%;
        aspect-ratio: 16/9;
    }
}

.search-card-list .list-thumb-col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Offcanvas Filter Drawer */
.offcanvas-filter-drawer {
    max-width: 320px;
}


/* Pagination Normalization */
.pagination-custom .page-link {
    border: 1px solid var(--zubox-border, #e2e8f0);
    border-radius: var(--zubox-radius-sm, 8px);
    color: #334155;
    margin: 0 3px;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
}

.pagination-custom .page-item.active .page-link {
    background-color: #0f172a;
    border-color: #0f172a;
    color: #ffffff;
}

/* ==========================================================================
   2. Collections Layout & Elements
   ========================================================================== */
.collection-card {
    border-radius: var(--zubox-radius-lg, 16px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.09) !important;
}

.collection-card:hover img {
    transform: scale(1.03);
}

.collection-nav-tab {
    padding: 8px 16px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    border-radius: var(--zubox-radius-pill, 50px);
    text-decoration: none;
    transition: all 0.15s ease;
}

.collection-nav-tab.active,
.collection-nav-tab:hover {
    background-color: var(--zubox-navy, #131b22);
    color: #ffffff;
}

.collection-item-card {
    border: 0;
    border-radius: var(--zubox-radius-md, 12px);
    overflow: hidden;
    background: var(--zubox-surface, #ffffff);
    box-shadow: var(--zubox-shadow-sm, 0 4px 18px rgba(0, 0, 0, 0.04));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.collection-item-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--zubox-shadow-md, 0 10px 25px rgba(0, 0, 0, 0.08));
}

/* ==========================================================================
   3. Auth & Access Page Cards (Login & Beta)
   ========================================================================== */
.login-card {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 100%;
}

.beta-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    max-width: 480px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.beta-logo {
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -1.5px;
    color: var(--zubox-accent, #2ec4b6);
    margin-bottom: 5px;
}

.beta-logo span {
    color: #ffffff;
}

.google-btn {
    background-color: #ffffff;
    color: #1f2937;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    margin-top: 20px;
}

.google-btn:hover {
    background-color: #f9fafb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
