/**
 * event-views.css - visual styling for EventViewsWidget's switcher bar
 * (widgets/EventViewsWidget.php::renderToggle()).
 *
 * The three "Switcher style" choices (buttons / tabs / icons) used to share
 * one Bootstrap btn-group/nav-tabs skin with only an .active class telling
 * them apart, so they barely read as different controls. This gives each its
 * own look, keyed off the data-style attribute the widget stamps on the
 * wrapper. Uses the app's own CSS custom properties (web/css/variables.css),
 * which already flip for dark mode - nothing theme-specific lives here.
 */

.event-view-toggle {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

/* ---- buttons: a real segmented control -------------------------------- */
.event-view-toggle[data-style="buttons"] {
    padding: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-full);
    gap: 0.125rem;
}

.event-view-toggle[data-style="buttons"] > .btn {
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.event-view-toggle[data-style="buttons"] > .btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.event-view-toggle[data-style="buttons"] > .btn.active {
    background: var(--button-primary-bg, var(--color-primary-600));
    color: var(--color-neutral-0, #fff);
    box-shadow: none;
}

/* ---- tabs: underlined, blends with a native filter strip --------------- */
.event-view-toggle[data-style="tabs"] {
    border-bottom: 1px solid var(--border-default);
    gap: 1rem;
}

.event-view-toggle[data-style="tabs"] > .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.5rem 0.25rem;
    color: var(--text-secondary);
    background: transparent;
    margin-bottom: -1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.event-view-toggle[data-style="tabs"] > .nav-link:hover {
    color: var(--text-primary);
}

.event-view-toggle[data-style="tabs"] > .nav-link.active {
    color: var(--button-primary-bg, var(--color-primary-600));
    border-bottom-color: var(--button-primary-bg, var(--color-primary-600));
    background: transparent;
    font-weight: 600;
}

/* ---- icons: compact square buttons, label only in the tooltip ---------- */
.event-view-toggle[data-style="icons"] {
    padding: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    gap: 0.125rem;
}

.event-view-toggle[data-style="icons"] > .btn {
    border: none;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-secondary);
    width: 2.5rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.event-view-toggle[data-style="icons"] > .btn i {
    margin: 0;
    font-size: 1rem;
}

.event-view-toggle[data-style="icons"] > .btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.event-view-toggle[data-style="icons"] > .btn.active {
    background: var(--button-primary-bg, var(--color-primary-600));
    color: var(--color-neutral-0, #fff);
}

/* In-tabs merges real links (Upcoming/Past) with view-switch buttons in one
 * bar - the tabItems anchors reuse whichever style class the loop above
 * already targets (.btn or .nav-link), so no extra selector is needed here. */
