/**
 * Shared event filter styles for Pittsburgh event listings.
 * Used by both /events (main list) and slug pages.
 */

/* ============================================================================
   TIME WINDOW FILTER
   ============================================================================ */

.time-window-filter {
    padding: 16px;
    background: var(--cream-2, #faf8f0);
    border: 1px solid var(--line, #d4cdb8);
    border-radius: 8px;
    margin-bottom: 16px;
}

.time-window-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.time-window-filter-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink, #1c1a16);
}

.time-window-filter-value {
    font-size: 13px;
    color: var(--ink-soft, rgba(28, 26, 22, 0.75));
}

.time-window-slider {
    position: relative;
    height: 40px;
}

.time-window-slider-track {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--line, #d4cdb8);
    border-radius: 2px;
}

.time-window-slider-range {
    position: absolute;
    height: 100%;
    background: var(--mustard, #e0ad23);
    border-radius: 2px;
}

.time-window-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 4px;
    top: 18px;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.time-window-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mustard, #e0ad23);
    border: 2px solid var(--paper, #f4efdf);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.time-window-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--mustard, #e0ad23);
    border: 2px solid var(--paper, #f4efdf);
    cursor: pointer;
    pointer-events: all;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.time-window-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 11px;
    color: var(--ink-soft, rgba(28, 26, 22, 0.6));
}

/* ============================================================================
   SORT TOGGLE
   ============================================================================ */

.sort-toggle {
    display: inline-flex;
    gap: 0;
    border: 1.5px solid var(--ink, #1c1a16);
    border-radius: 6px;
    overflow: hidden;
    background: var(--paper, #f4efdf);
}

.sort-toggle-btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1c1a16);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.sort-toggle-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    bottom: 25%;
    width: 1px;
    background: var(--line, #d4cdb8);
}

.sort-toggle-btn:hover {
    background: rgba(224, 173, 35, 0.1);
}

.sort-toggle-btn.active {
    background: var(--ink, #1c1a16);
    color: var(--paper, #f4efdf);
}

.sort-toggle-btn:focus-visible {
    outline: 2px solid var(--mustard, #e0ad23);
    outline-offset: -2px;
    z-index: 1;
}

/* ============================================================================
   FILTER TOOLBAR
   ============================================================================ */

.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px 0;
    border-bottom: 1px solid var(--line, #d4cdb8);
    margin-bottom: 20px;
}

.filter-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-toolbar-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink, #1c1a16);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 768px) {
    .time-window-filter {
        padding: 12px;
    }

    .sort-toggle-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toolbar-group {
        justify-content: space-between;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none !important;
}

.filter-count-badge {
    display: inline-block;
    padding: 2px 8px;
    background: var(--mustard, #e0ad23);
    color: var(--ink, #1c1a16);
    font-size: 12px;
    font-weight: 700;
    border-radius: 12px;
    margin-left: 6px;
}

/* ============================================================================
   TODAY CALENDAR LANDING (#3352)
   #3477: the server draws the calendar's own day list (the crawler/no-JS
   layer) and the browser enhances it in place. It is the single-column phone
   list at every width, so it stays a readable column on a wide screen.
   ============================================================================ */

.today-calendar {
    max-width: 680px;
    margin: 0 0 28px;
}
