/* ================================================
   UX BITES COLLECTION - STYLES
   ================================================ */

/* ------------------------------------------------
   Hero Section
   ------------------------------------------------ */
.ux-bites-hero {
    padding: 8rem 0 6rem;
    background: radial-gradient(circle at 50% 0%, var(--color-butter) 0%, var(--color-cream) 100%);
    border-bottom: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .ux-bites-hero {
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    border-bottom-color: rgba(255, 193, 7, 0.1);
}

/* Subtle background pattern */
.ux-bites-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.3;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    pointer-events: none;
}

.ux-bites-hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ux-bites-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.ux-bites-hero-subtitle {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-text);
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

.ux-bites-hero-description {
    font-size: 1.25rem;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0 auto 4rem;
    max-width: 700px;
}

/* Seed Cards */
.ux-bites-seed-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.ux-bite-seed-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s var(--ease-bounce);
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .ux-bite-seed-card {
    background: rgba(255, 193, 7, 0.05);
    border-color: rgba(255, 193, 7, 0.15);
    box-shadow: none;
}

.ux-bite-seed-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    background: var(--color-white);
    border-color: var(--color-text);
}

[data-theme="dark"] .ux-bite-seed-card:hover {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.4);
    box-shadow: var(--shadow-gold-lg);
}

.seed-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1.25rem;
    transition: transform 0.4s var(--ease-bounce);
}

.ux-bite-seed-card:hover .seed-icon {
    transform: scale(1.2) rotate(5deg);
}

.ux-bite-seed-card h3 {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-text);
}

.ux-bite-seed-card p {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0;
    line-height: 1.5;
}

/* ------------------------------------------------
   Filter Section
   ------------------------------------------------ */
.ux-bites-filter-section {
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 80px;
    z-index: 90;
    transition: all 0.3s ease;
}

[data-theme="dark"] .ux-bites-filter-section {
    background: rgba(10, 10, 10, 0.85);
    border-bottom-color: rgba(255, 193, 7, 0.1);
}

/* Journey Tabs */
.ux-bites-journey-tabs-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
    mask-image: linear-gradient(to right, transparent 0%, black 20px, black calc(100% - 20px), transparent 100%);
    padding: 0 1rem;
}

.ux-bites-journey-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.ux-bites-journey-tabs {
    display: flex;
    gap: 0.75rem;
    padding: 0.25rem 0;
}

.journey-tab {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-pill);
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.3s var(--ease-smooth);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}

[data-theme="dark"] .journey-tab {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.journey-tab:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

[data-theme="dark"] .journey-tab:hover {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.35);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
}

.journey-tab.active {
    background: var(--color-text);
    color: var(--color-white);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    border-color: var(--color-text);
}

[data-theme="dark"] .journey-tab.active {
    background: var(--gold-primary);
    color: var(--color-charcoal);
    box-shadow: var(--gold-shadow);
    border-color: var(--gold-primary);
}

/* Filter Bar */
.ux-bites-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ux-bites-filter-dropdowns {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-trigger {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s var(--ease-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .filter-dropdown-trigger {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

.filter-dropdown-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .filter-dropdown-trigger:hover {
    background: rgba(255, 193, 7, 0.12);
    border-color: rgba(255, 193, 7, 0.4);
    color: var(--color-white);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.15);
}

.filter-dropdown-trigger svg {
    transition: transform 0.2s var(--ease-smooth);
}

.filter-dropdown-menu.active+.filter-dropdown-trigger svg,
.filter-dropdown-trigger:hover svg {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--color-white);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 200px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s var(--ease-smooth);
}

[data-theme="dark"] .filter-dropdown-menu {
    background: rgba(18, 18, 18, 0.98);
    border-color: rgba(255, 193, 7, 0.2);
    box-shadow: var(--shadow-gold-lg);
}

.filter-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background-color 0.2s var(--ease-smooth);
    font-size: 0.9375rem;
}

.filter-option:hover {
    background: var(--color-cream);
}

[data-theme="dark"] .filter-option:hover {
    background: rgba(255, 193, 7, 0.08);
}

.filter-option input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

/* Active Filters */
.ux-bites-active-filters {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-filters-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-muted);
}

.active-filter-tag {
    background: var(--color-text);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-pill);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s var(--ease-smooth);
}

[data-theme="dark"] .active-filter-tag {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.9), rgba(255, 215, 0, 0.9));
    color: #000000;
    font-weight: 600;
}

.active-filter-tag:hover {
    opacity: 0.8;
    transform: scale(0.95);
}

.active-filter-tag svg {
    width: 14px;
    height: 14px;
}

.clear-all-filters-btn {
    background: transparent;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-pill);
    padding: 0.375rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s var(--ease-smooth);
}

[data-theme="dark"] .clear-all-filters-btn {
    border-color: rgba(255, 193, 7, 0.3);
}

.clear-all-filters-btn:hover {
    background: var(--color-text);
    color: var(--color-white);
}

[data-theme="dark"] .clear-all-filters-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 215, 0, 0.2));
    border-color: rgba(255, 193, 7, 0.5);
}

/* ------------------------------------------------
   Grid & Cards
   ------------------------------------------------ */
.ux-bites-collection {
    padding: 4rem 0 6rem;
}

[data-theme="dark"] .ux-bites-collection {
    background: var(--color-cream);
}

.ux-bites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

@media (max-width: 768px) {
    .ux-bites-grid {
        grid-template-columns: 1fr;
    }
}

.ux-bite-card {
    display: flex;
    flex-direction: column;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    /* Remove underline from the entire card */
    color: inherit;
    transition: all 0.4s var(--ease-bounce);
    position: relative;
    height: 100%;
}

[data-theme="dark"] .ux-bite-card {
    background: rgba(255, 193, 7, 0.03);
    border-color: rgba(255, 193, 7, 0.15);
}

.ux-bite-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-text);
    text-decoration: none;
    /* Ensure no underline on hover */
}

[data-theme="dark"] .ux-bite-card:hover {
    border-color: rgba(255, 193, 7, 0.5);
    box-shadow: var(--shadow-gold-lg);
    background: rgba(255, 193, 7, 0.08);
}

/* Ensure children don't have underlines */
.ux-bite-card h3,
.ux-bite-card p,
.ux-bite-card span {
    text-decoration: none;
}

.ux-bite-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-cream);
}

.ux-bite-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-smooth);
}

.ux-bite-card:hover .ux-bite-card-image img {
    transform: scale(1.05);
}

.ux-bite-pattern-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.375rem 0.875rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .ux-bite-pattern-badge {
    background: rgba(10, 10, 10, 0.8);
    color: var(--color-white);
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.ux-bite-card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ux-bite-card-title {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--color-text);
    line-height: 1.3;
}

.ux-bite-card-hook {
    font-size: 1rem;
    color: var(--color-muted);
    margin: 0 0 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.ux-bite-card-meta {
    display: flex;
    gap: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

[data-theme="dark"] .ux-bite-card-meta {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.ux-bite-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-sm);
}

[data-theme="dark"] .ux-bite-meta-item {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.ux-bite-meta-item svg {
    opacity: 0.7;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

[data-theme="dark"] .ux-bite-meta-item svg {
    opacity: 1;
    color: rgba(255, 193, 7, 0.8);
}

/* ------------------------------------------------
   Empty State
   ------------------------------------------------ */
.ux-bites-empty-state {
    text-align: center;
    padding: 6rem 2rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.empty-state-animation {
    margin-bottom: 1rem;
}

.magnifying-glass {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.glass-lens {
    width: 80px;
    height: 80px;
    border: 4px solid var(--color-text);
    border-radius: 50%;
    position: relative;
}

[data-theme="dark"] .glass-lens {
    border-color: rgba(255, 193, 7, 0.6);
    box-shadow: 0 0 30px rgba(255, 193, 7, 0.2);
}

.glass-handle {
    position: absolute;
    bottom: -30px;
    right: -10px;
    width: 6px;
    height: 40px;
    background: var(--color-text);
    transform: rotate(45deg);
    border-radius: 3px;
}

[data-theme="dark"] .glass-handle {
    background: rgba(255, 193, 7, 0.6);
}

.sparkle {
    position: absolute;
    font-size: 1.25rem;
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 50%;
    right: 15%;
    animation-delay: 0.5s;
}

.sparkle-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 1s;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.ux-bites-empty-state h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.ux-bites-empty-state p {
    font-size: 1.125rem;
    color: var(--color-muted);
    margin: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-text);
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    font-weight: 600;
    transition: opacity 0.2s var(--ease-smooth);
}

.btn-link:hover {
    opacity: 0.7;
}

/* ------------------------------------------------
   Responsive Adjustments
   ------------------------------------------------ */
@media (max-width: 768px) {
    .ux-bites-hero {
        padding: 4rem 0 3rem;
    }

    .ux-bites-hero-title {
        font-size: 2.5rem;
    }

    .ux-bites-hero-subtitle {
        font-size: 1.25rem;
    }

    .ux-bites-hero-description {
        font-size: 1rem;
    }

    .ux-bites-filter-section {
        top: 72px;
    }

    .ux-bites-filter-dropdowns {
        flex-direction: column;
    }

    .filter-dropdown-menu {
        position: fixed;
        left: 1rem;
        right: 1rem;
        width: auto;
    }
}