/* ═══════════════════════════════════════════════════════════════════
   Hello Middleton — Audience Lanes Events Layout
   Color-coded, horizontally-scrolling event lanes with day switcher
   and proximity/audience filter bar.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Day Switcher ──────────────────────────────────────────────── */

.hm-day-switcher {
    display: flex;
    gap: 8px;
    padding: 16px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.hm-day-switcher::-webkit-scrollbar { display: none; }

.hm-day-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border-radius: 12px;
    background: #f3f4f6;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s ease;
    min-width: 72px;
    flex-shrink: 0;
}
.hm-day-pill:hover {
    background: #e5e7eb;
    color: #111827;
    text-decoration: none;
}
.hm-day-pill.hm-day--active {
    background: #1f2937;
    color: #ffffff;
    font-weight: 600;
}

.hm-day-label {
    font-weight: 600;
    line-height: 1.3;
}
.hm-day-date {
    font-size: 11px;
    opacity: 0.7;
    line-height: 1.3;
}

/* ── Filter Bar ────────────────────────────────────────────────── */

.hm-filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0 20px;
    flex-wrap: wrap;
}

.hm-proximity-pills {
    display: flex;
    gap: 6px;
}

.hm-filter-pill {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1.5px solid #d1d5db;
    background: #ffffff;
    color: #4b5563;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hm-filter-pill:hover {
    border-color: #9ca3af;
    background: #f9fafb;
    text-decoration: none;
    color: #1f2937;
}
.hm-filter-pill.hm-pill--active {
    background: #1f2937;
    color: #ffffff;
    border-color: #1f2937;
}

.hm-audience-toggles {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.hm-toggle-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px dashed #d1d5db;
    background: #ffffff;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.hm-toggle-btn:hover {
    border-color: #9ca3af;
    color: #374151;
    text-decoration: none;
}
.hm-toggle-btn.hm-toggle--active {
    border-style: solid;
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
}

/* ── Lanes Container ───────────────────────────────────────────── */

.hm-lanes {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── Single Lane ───────────────────────────────────────────────── */

.hm-lane {
    border-left: 4px solid var(--lane-color);
    padding-left: 16px;
}

.hm-lane-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.hm-lane-emoji {
    font-size: 20px;
    line-height: 1;
}

.hm-lane-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    flex: 1;
}

.hm-lane-see-all {
    font-size: 13px;
    color: var(--lane-color);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}
.hm-lane-see-all:hover {
    text-decoration: underline;
}

/* ── Horizontal Scroll Container ───────────────────────────────── */

.hm-lane-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}
.hm-lane-scroll::-webkit-scrollbar {
    height: 4px;
}
.hm-lane-scroll::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

/* ── Event Card ────────────────────────────────────────────────── */

.hm-lane-card {
    display: flex;
    gap: 12px;
    min-width: 280px;
    max-width: 340px;
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 12px;
    border-radius: 10px;
    border-left: 4px solid var(--lane-color);
    background: var(--lane-bg);
    box-shadow: 0 2px 8px var(--lane-shadow);
    text-decoration: none;
    color: #111827;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hm-lane-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px var(--lane-shadow);
    text-decoration: none;
    color: #111827;
}

/* Card thumbnail */
.hm-card-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
}
.hm-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card info */
.hm-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.hm-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #111827;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hm-card-time {
    font-size: 12px;
    font-weight: 500;
    color: var(--lane-color);
}

.hm-card-venue {
    font-size: 12px;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badge (Home Game, etc.) */
.hm-card-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}
.hm-card-badge--home {
    background: #dcfce7;
    color: #166534;
}

/* ── Sports lane special styling ───────────────────────────────── */

.hm-lane--sports .hm-lane-card {
    background: #f0fdf4;
}

.hm-lane--sports .hm-card--football .hm-card-title {
    font-weight: 700;
    font-size: 15px;
}

/* ── Responsive ────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .hm-lane {
        padding-left: 12px;
    }
    .hm-lane-card {
        min-width: 260px;
        max-width: 300px;
    }
    .hm-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .hm-audience-toggles {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .hm-day-pill {
        padding: 6px 12px;
        min-width: 60px;
    }
    .hm-lane-card {
        min-width: 240px;
        padding: 10px;
    }
    .hm-card-thumb {
        width: 70px;
        height: 70px;
    }
    .hm-lane-title {
        font-size: 15px;
    }
}
