/* sib-events-fix.css
 * Brand overrides for the Eventbrite list (wfea / Display Eventbrite Events)
 * and styles for the SIB event meta block on tribe_events single pages.
 * NOTE: ASCII-only comments in this file (WP Rocket minifier quirk). */

/* ------------------------------------------------------------------ */
/* Event meta block on event detail pages (tribe_events single)        */
/* ------------------------------------------------------------------ */

.sib-event-meta {
    margin: 0 0 28px 0;
    padding: 18px 20px;
    border: 1px solid #C4C5C7;
    border-left: 4px solid #d50c2f;
    border-radius: 8px;
    background: #fafafa;
    color: #4A4D50;
}

.sib-event-meta__row {
    display: flex;
    gap: 12px;
    align-items: baseline;
    margin: 0 0 8px 0;
    font-size: 16px;
    line-height: 1.5;
}

.sib-event-meta__label {
    flex: 0 0 70px;
    font-weight: 600;
    color: #4A4D50;
    text-transform: none;
}

.sib-event-meta__value {
    color: #4A4D50;
}

.sib-event-meta__cta,
.sib-event-meta__cta:visited {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 22px;
    background: #d50c2f;
    color: #ffffff;
    border-radius: 4px;
    font-weight: 600;
    text-transform: none;
    text-decoration: none;
    border: none;
    box-shadow: none;
    transition: background 0.2s ease-in-out;
}

.sib-event-meta__cta:hover,
.sib-event-meta__cta:focus {
    background: #b00a27;
    color: #ffffff;
    text-decoration: none;
}

/* Banner for past events (in case they still render) */

.sib-event-past-banner {
    margin: 0 0 28px 0;
    padding: 14px 20px;
    border: 1px solid #C4C5C7;
    border-left: 4px solid #4A4D50;
    border-radius: 8px;
    background: #f3f3f4;
    color: #4A4D50;
    font-size: 16px;
    line-height: 1.5;
}

.sib-event-past-banner a,
.sib-event-past-banner a:visited {
    color: #d50c2f;
    font-weight: 600;
    text-decoration: none;
    border: none;
    box-shadow: none;
}

.sib-event-past-banner a:hover {
    color: #b00a27;
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* wfea Eventbrite list: brand token overrides                          */
/* Scope: list wrapper .wfea.sib_event_list and the detail modal        */
/* Plugin defaults: theme-gray, radii 5px, heavy shadows, orange btns   */
/* ------------------------------------------------------------------ */

/* Cards: 8px radius, flat shadow, neutral border */

.wfea.sib_event_list .wfea-short-date-item,
.wfea.sib_event_list article {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    border: 1px solid #C4C5C7;
}

.wfea.sib_event_list .wfea-short-date-item-image,
.wfea.sib_event_list .wfea-short-date-item-image-inner,
.wfea.sib_event_list .wfea-short-date-item-image img {
    border-radius: 8px 8px 0 0;
}

/* Neutral text and lines */

.wfea.sib_event_list,
.wfea.sib_event_list article,
.wfea.sib_event_list .wfea-short-date-item-content,
.wfea.sib_event_list .wfea-short-date-item-datetime,
.wfea.sib_event_list .wfea-short-date__venue_name,
.wfea.sib_event_list .wfea-short-date__location {
    color: #4A4D50;
}

.wfea.sib_event_list .wfea-short-date-item-title,
.wfea.sib_event_list .wfea-short-date-item-title a,
.wfea.sib_event_list .wfea-header__title a {
    color: #2b2d2f !important;
}

.wfea.sib_event_list .wfea-short-date__prices.price,
.wfea.sib_event_list .wfea-short-date__availability {
    border-color: #C4C5C7;
    color: #4A4D50;
    border-radius: 4px;
    text-transform: none;
}

/* Primary button (Register / Anmelden): brand red, 4px, 600, no caps  */

.wfea.sib_event_list .wfea-button,
.wfea.sib_event_list .booknow a,
.wfea.sib_event_list .booknow button,
.wfea-modal-container .wfea-button,
.wfea-modal-container .booknow a,
.wfea-modal-container .booknow button {
    background: #d50c2f !important;
    background-color: #d50c2f !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
    border: none !important;
    font-size: 14px;
}

.wfea.sib_event_list .wfea-button:hover,
.wfea.sib_event_list .booknow a:hover,
.wfea.sib_event_list .booknow button:hover,
.wfea-modal-container .wfea-button:hover,
.wfea-modal-container .booknow a:hover,
.wfea-modal-container .booknow button:hover {
    background: #b00a27 !important;
    background-color: #b00a27 !important;
    color: #ffffff !important;
    opacity: 1;
}

/* Secondary button (Read More / Mehr erfahren): outlined red          */

.wfea.sib_event_list .button.wfea-short-date__modal-view-details,
.wfea.sib_event_list .wfea-modal-view-details,
.wfea.sib_event_list .more-link {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #d50c2f !important;
    border: 1px solid #d50c2f !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
    font-size: 14px;
}

.wfea.sib_event_list .button.wfea-short-date__modal-view-details:hover,
.wfea.sib_event_list .wfea-modal-view-details:hover,
.wfea.sib_event_list .more-link:hover {
    background: #fdf2f4 !important;
    background-color: #fdf2f4 !important;
    color: #b00a27 !important;
    opacity: 1;
}

/* Date square: neutral gray instead of plugin tint                    */

.wfea.sib_event_list .wfea-short-date-item-date {
    color: #4A4D50;
}

.wfea.sib_event_list .wfea-short-date-item-date-month {
    color: #d50c2f;
    text-transform: none;
}

/* Modal: same token set, flat shadow                                  */

.wfea-modal-container {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    color: #4A4D50;
}

/* Tags / category chips inside the list                               */

.wfea.sib_event_list .wfea-short-date-item-tags span {
    text-transform: none;
}

/* ================================================================== */
/* TIMELINE / AGENDA layout for the LIVE events list                  */
/* Scope: body.sib-ev-timeline (set in sib-events-fix.php for the      */
/* /events-workshops/ DE page and its EN twin only).                  */
/* Vertical red spine, big date nodes left, cards right, sticky month  */
/* group headers (injected by sib-events-fix.js). The red SIB buttons  */
/* and German dates/labels above keep applying - we only re-layout.    */
/* ASCII-only comments (WP Rocket minifier quirk).                     */
/* ================================================================== */

.sib-ev-timeline .events-list {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 22px;
}

/* List wrapper becomes a bare positioning context for the spine */
.sib-ev-timeline .wfea.sib_event_list {
    position: relative;
    display: block;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

/* The spine */
.sib-ev-timeline .wfea.sib_event_list::before {
    content: "";
    position: absolute;
    left: 86px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, #d50c2f 0%, #d50c2f 70%, #C4C5C7 100%);
    border-radius: 999px;
}

/* Month group header (injected by JS) */
.sib-ev-timeline .sib-ev-month {
    position: sticky;
    top: 8px;
    z-index: 5;
    margin: 0 0 14px;
    padding: 8px 0 8px 116px;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #4A4D50;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 60%, rgba(255,255,255,0));
}
.sib-ev-timeline .sib-ev-month span {
    color: #d50c2f;
    font-weight: 800;
}

/* Each event row becomes a two-column grid: node | card */
.sib-ev-timeline article.wfea-short-date_event {
    position: relative;
    display: grid;
    grid-template-columns: 86px 1fr;
    column-gap: 34px;
    align-items: start;
    margin: 0 0 26px;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Date node (built by JS) on the left column */
.sib-ev-timeline .sib-ev-node {
    grid-column: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 14px;
    text-align: center;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sib-ev-timeline .sib-ev-node__day {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    color: #2b2d2f;
    letter-spacing: -0.02em;
}
.sib-ev-timeline .sib-ev-node__month {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #d50c2f;
    margin-top: 3px;
}
/* The knot dot on the spine */
.sib-ev-timeline .sib-ev-node::after {
    content: "";
    position: absolute;
    right: -34px;
    top: 18px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border: 3px solid #d50c2f;
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(213,12,47,0.10);
}

/* The card on the right */
.sib-ev-timeline .wfea-short-date-item-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #C4C5C7;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sib-ev-timeline article:hover .wfea-short-date-item-content {
    transform: translateX(3px);
    border-color: #d50c2f;
    box-shadow: 0 6px 22px rgba(0,0,0,0.10);
}

/* Banner image: flush to the top of the card */
.sib-ev-timeline .wfea-short-date-item-image {
    grid-column: 2;
    margin: -18px -20px 12px;
    max-width: none;
    border-radius: 0;
}
.sib-ev-timeline .wfea-short-date-item-image,
.sib-ev-timeline .wfea-short-date-item-image-inner,
.sib-ev-timeline .wfea-short-date-item-image figure,
.sib-ev-timeline .wfea-short-date-item-image figure > a { display: block; margin: 0; }
.sib-ev-timeline .wfea-short-date-item-image figure { margin: -18px -20px 12px; }
.sib-ev-timeline .wfea-short-date-item-image figure > a { width: 100%; }
.sib-ev-timeline .wfea-short-date-item-image img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px 8px 0 0 !important;
}

.sib-ev-timeline .wfea-short-date-item-datetime {
    font-size: 13px; font-weight: 600; color: #6C6F72;
}
.sib-ev-timeline h3.eaw-title {
    margin: 2px 0 4px; font-size: 19px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em;
}
.sib-ev-timeline h3.eaw-title a { color: #2b2d2f !important; text-decoration: none; }
.sib-ev-timeline h3.eaw-title a:hover { color: #d50c2f !important; }
.sib-ev-timeline .wfea-short-date__venue_name {
    display: inline-flex; align-self: flex-start; gap: 6px; padding: 3px 10px;
    border: 1px solid #C4C5C7; border-radius: 999px;
    font-size: 12px; font-weight: 600; color: #4A4D50;
}
.sib-ev-timeline .wfea-short-date-item-location { font-size: 13px; color: #6C6F72; }
.sib-ev-timeline .wfea-short-date-item-location-icon { fill: #d50c2f; width: 12px; height: 14px; }
.sib-ev-timeline .eventbrite-item-description {
    font-size: 14px; line-height: 1.55; color: #6C6F72; margin: 4px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sib-ev-timeline .wfea-short-date-item-buttons {
    display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .sib-ev-timeline .wfea.sib_event_list::before { left: 58px; }
    .sib-ev-timeline article.wfea-short-date_event { grid-template-columns: 58px 1fr; column-gap: 24px; }
    .sib-ev-timeline .sib-ev-node::after { right: -24px; }
    .sib-ev-timeline .sib-ev-node__day { font-size: 24px; }
    .sib-ev-timeline .sib-ev-month { padding-left: 82px; }
}

@media (max-width: 480px) {
    .sib-ev-timeline .wfea.sib_event_list::before { display: none; }
    .sib-ev-timeline article.wfea-short-date_event { grid-template-columns: 1fr; }
    .sib-ev-timeline .sib-ev-node {
        flex-direction: row; gap: 8px; align-items: baseline; padding-top: 0; margin-bottom: 8px;
    }
    .sib-ev-timeline .sib-ev-node::after { display: none; }
    .sib-ev-timeline .sib-ev-month { position: static; padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .sib-ev-timeline article:hover .wfea-short-date-item-content { transform: none !important; }
}
