/* ================================
   Featured Events Block Styles
   v2.1.0 — 2026-06-12: brand-gold CTAs (pill), token shadows/surfaces,
   thumb-width clamp, dark-mode skeleton/letterbox
   ================================ */

.featured-events-block {
    margin: 1rem auto !important;
    max-width: 1200px;
    box-sizing: border-box;
}

/* ================================
   VERTICAL MODE — Grid System
   ================================ */

.featured-events-grid {
    display: grid;
    gap: 2rem;
    width: 100%;
    height: 100%;
    align-items: stretch;
}

/* When a vertical block sits inside a wp-block-column, stretch the column
   and the block itself so the card fills the same height as the adjacent column */
.wp-block-column:has(.featured-events-block.orientation-vertical) {
    display: flex;
    flex-direction: column;
}

.wp-block-column:has(.featured-events-block.orientation-vertical) .featured-events-block.orientation-vertical {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wp-block-column:has(.featured-events-block.orientation-vertical) .featured-events-block.orientation-vertical .featured-events-grid {
    flex: 1;
}

.layout-single        { grid-template-columns: 1fr; }
.layout-two-column    { grid-template-columns: 1fr 1fr; }
.layout-three-column  { grid-template-columns: repeat(3, 1fr); }
.layout-70-30         { grid-template-columns: 7fr 3fr; }

/* ================================
   VERTICAL MODE — Event Card
   ================================ */

.featured-event-card {
    background: #ffffff !important;
    border-radius: var(--umbc-radius-md, 8px) !important;
    box-shadow: var(--umbc-shadow-card) !important;
    overflow: visible !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    border: none !important;
    margin: 0 !important;
    padding: 24px !important;
    box-sizing: border-box !important;
}

.featured-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--umbc-shadow-card-hover, 0 8px 20px rgba(0, 0, 0, 0.16));
}

/* Featured Image (vertical) */
.featured-event-image-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    /* letterbox bg behind contain-mode crops; flips via token in dark mode */
    background-color: var(--umbc-surface-card-alt, #f5f5f5);
    border-radius: var(--umbc-radius-md, 8px);
    margin-bottom: 24px;
    width: 100%;
    max-width: 500px;
}

.featured-event-image {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: block !important;
    transition: transform 0.3s ease;
    border-radius: var(--umbc-radius-md, 8px);
}

.featured-event-image.image-cover         { object-fit: cover !important;   object-position: center !important; }
.featured-event-image.image-contain-left  { object-fit: contain !important; object-position: left center !important; }
.featured-event-image.image-contain-center { object-fit: contain !important; object-position: center center !important; }

.featured-event-card:hover .featured-event-image {
    transform: scale(1.02);
}

/* Content column */
.featured-event-content {
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}

.featured-event-content > .featured-event-dates       { margin-bottom: 24px !important; }
.featured-event-content > .featured-event-title       { margin-bottom: 12px !important; }
.featured-event-content > .featured-event-badges      { margin-bottom: 12px !important; }
.featured-event-content > .featured-event-meta        { margin-bottom: 12px !important; }
.featured-event-content > .featured-event-description { margin-bottom: 12px !important; flex-grow: 1 !important; }
.featured-event-content > .featured-event-cta         { margin-top: auto !important; }

/* Date block */
.featured-event-dates {
    display: inline-flex !important;
    align-items: flex-start !important;
    margin: 0 !important;
    position: relative !important;
    width: fit-content !important;
}

.featured-event-dates::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px !important;
    background-color: #fdb515 !important;
}

.date-range-horizontal {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
}

.single-date,
.date-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.day-abbr {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-transform: capitalize !important;
    line-height: 1 !important;
    margin-bottom: 2px !important;
}

.date-number {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #000 !important;
    line-height: 1 !important;
}

.date-separator {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #000 !important;
    margin: 0 4px !important;
}

/* Event title */
.featured-event-title {
    margin: 0 !important;
    font-size: 1.375rem !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

.featured-event-title a            { color: #000 !important; text-decoration: none !important; transition: color 0.2s ease !important; }
.featured-event-title a:hover      { color: #007176 !important; }

/* Badges (vertical) */
.featured-event-badges {
    margin: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.event-category-badge {
    display: inline-block !important;
    background-color: #007176 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: var(--umbc-radius-sm, 4px) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    border: none !important;
    margin: 0 !important;
    height: 28px !important;
    line-height: 15px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
}

.event-category-badge:hover        { background-color: #005a5e !important; color: #fff !important; }

.event-tag-badge,
.event-tag-badge.event-tag-teal {
    display: inline-block !important;
    background-color: transparent !important;
    color: #007176 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border: 2px solid #007176 !important;
    border-radius: var(--umbc-radius-sm, 4px) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin: 0 !important;
    height: 28px !important;
    line-height: 12px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.event-tag-badge:hover,
.event-tag-badge.event-tag-teal:hover {
    background-color: #007176 !important;
    color: #fff !important;
}

.event-ongoing-badge {
    display: inline-block !important;
    background-color: #000 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;
    border-radius: var(--umbc-radius-sm, 4px) !important;
    margin: 0 !important;
    height: 28px !important;
    line-height: 15px !important;
    box-sizing: border-box !important;
    border: none !important;
}

/* Featured badge — align-self keeps it chip-sized inside the flex-column
   card (a stretched flex item turns it into a full-width gold bar) */
.event-featured-badge {
    display: inline-block !important;
    align-self: flex-start !important;
    width: fit-content !important;
    background-color: #fdb515 !important;
    color: #000 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 3px 8px !important;
    border-radius: var(--umbc-radius-sm, 4px) !important;
    margin-bottom: 8px !important;
}

/* Meta (time / venue) */
.featured-event-meta {
    font-size: 18px !important;
    color: #000 !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 24px !important;
}

.event-time  { margin-bottom: 4px !important; }
.event-venue { font-size: 14px !important; color: #000 !important; font-weight: 400 !important; line-height: 1.3 !important; }

/* Description */
.featured-event-description {
    font-size: 16px !important;
    line-height: 1.5 !important;
    color: #000 !important;
    margin: 0 !important;
    flex-grow: 1 !important;
}

/* CTA button */
.featured-event-cta  { margin: 0 !important; }

.view-event-btn {
    display: inline-block !important;
    background-color: var(--umbc-btn-gold, #fdb515) !important;
    color: #000 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 8px 16px !important;
    /* pill — matches .event-link in horizontal mode so the two layouts read
       as one component family when used on the same page */
    border-radius: var(--umbc-radius-pill, 999px) !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    line-height: normal !important;
}

.view-event-btn:hover {
    background-color: var(--umbc-btn-gold-hover, #e0a10e) !important;
    color: #000 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(253, 181, 21, 0.3) !important;
}

/* ================================
   HORIZONTAL MODE — Feed / List
   Mirrors arts-events.css layout:
   [date badge] | [details] | [image]
   ================================ */

.featured-events-feed {
    display: grid;
    gap: 30px;
    width: 100%;
    container-type: inline-size;
    container-name: feb-feed;
}

/* Horizontal event card */
.event-card-horizontal {
    --feb-thumb-w: var(--feb-thumb-desktop, 220px);
    display: grid;
    /* min() clamps editor width overrides so the image column can never
       crowd out the details column on narrower cards */
    grid-template-columns: 76px 1fr min(var(--feb-thumb-w), 45%); /* 60px badge + 16px padding-right */
    gap: 24px;
    padding: 24px;
    box-shadow: var(--umbc-shadow-pop);
    border-radius: var(--umbc-radius-md, 8px);
    transition: box-shadow 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
}

.event-card-horizontal:hover {
    box-shadow: var(--umbc-shadow-card);
}

/* When image is not rendered, collapse to 2-col */
.event-card-horizontal.no-image {
    grid-template-columns: 76px 1fr;
}

/* Date badge (left column) */
.event-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 60px;        /* fixed — never let the grid stretch this column */
    min-width: 60px;
    max-width: 60px;
    border-right: 4px solid #fdb515;
    padding-right: 16px;
    text-align: center;
    gap: 0;
    box-sizing: content-box; /* padding-right is outside the 60px */
}

/* Ongoing: same fixed width, stacks vertically */
.event-date-badge.ongoing {
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

.event-date-badge .date-line-day {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    white-space: nowrap;
    text-align: center;
}

.event-date-badge .date-line {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.1;
    color: #000;
    white-space: nowrap; /* prevent 4/ wrapping away from 22 */
}

/* Separator sits between the two date blocks, centred */
.event-date-badge .date-separator {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1;
    color: #888;
    margin: 2px 0;
    align-self: center;
}

.event-date-badge .start,
.event-date-badge .end {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Event details (middle column) */
.event-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Category tags (horizontal) */
.event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.event-category-tag {
    padding: 0 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid;
    background: #007176;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s ease;
}

.event-category-tag:hover      { background-color: #005a5e; }

.event-category-tag.default {
    background: transparent;
    color: #007176;
    border-color: #007176;
}

.event-category-tag.default:hover {
    background: #007176;
    color: #fff;
}

.event-category-tag.ongoing {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Title (horizontal) */
.event-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0 !important;
    line-height: 1.3;
}

.event-title a            { color: #000; text-decoration: none; transition: color 0.2s ease; }
.event-title a:hover      { color: #007176; }

/* Meta (horizontal) */
.event-meta {
    font-size: 0.875rem;
    color: #000;
    margin-bottom: 12px;
}

.event-meta .venue { font-weight: 600; display: inline; }
.event-meta .venue::before { content: " · "; font-weight: 400; }

/* Excerpt (horizontal) */
.event-excerpt {
    color: #555;
    line-height: 1.5;
    margin-bottom: 16px;
    font-size: 15px;
}

/* CTA link (horizontal) */
.event-link {
    display: inline-block;
    background: var(--umbc-btn-gold, #fdb515); /* was #F7A71C — off-brand gold */
    color: #000;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    margin-top: auto;
    padding: 8px 20px;
    border-radius: var(--umbc-radius-pill, 999px);
    transition: background-color var(--umbc-transition-fast, 0.2s ease);
    align-self: flex-start;
}

.event-link:hover { background-color: var(--umbc-btn-gold-hover, #e0a10e); }

/* Thumbnail (right column) */
.event-thumbnail {
    overflow: hidden;
    border-radius: var(--umbc-radius-md, 8px);
    width: var(--feb-thumb-w, 220px);
    max-width: 100%;
    height: 180px;
    flex-shrink: 0;
    background-color: var(--umbc-surface-card-alt, #f5f5f5);
}

.event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.event-thumbnail:hover img { transform: scale(1.05); }

/* Container-query breakpoint — single threshold, go straight to stacked mobile layout.
   Fires when the feed wrapper (the actual available column width) drops below 600px.
   This skips the "image below content" middle stage entirely. */
@container feb-feed (max-width: 600px) {
    .event-card-horizontal {
        grid-template-columns: 1fr;
        grid-template-areas:
            "thumb"
            "date"
            "details";
        padding: 1rem;
        gap: 0;
    }

    .event-card-horizontal.no-image {
        grid-template-columns: 1fr;
        grid-template-areas:
            "date"
            "details";
    }

    .event-thumbnail {
        grid-area: thumb;
        width: 100%;
        height: 200px;
        border-radius: var(--umbc-radius-md, 8px) var(--umbc-radius-md, 8px) 0 0;
    }

    /* Date badge: rotate to horizontal bar at top of card */
    .event-date-badge {
        grid-area: date;
        width: auto;
        min-width: unset;
        max-width: unset;
        border-right: none;
        border-bottom: 4px solid #fdb515;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 16px;
        gap: 8px;
        box-sizing: border-box;
    }

    /* Ongoing in mobile: day abbr + date inline, separator between the two blocks */
    .event-date-badge.ongoing {
        width: auto;
        min-width: unset;
        max-width: unset;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 4px 8px;
    }

    .event-date-badge .start,
    .event-date-badge .end {
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
    }

    .event-date-badge .date-line-day {
        font-size: 0.875rem;
        white-space: nowrap;
    }

    .event-date-badge .date-line {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    .event-date-badge .date-separator {
        margin: 0 2px;
        font-size: 0.875rem;
    }

    .event-details {
        grid-area: details;
        padding-top: 16px;
    }
}

/* ================================
   Pagination (horizontal mode)
   ================================ */

.featured-events-pagination {
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 0;
}

.featured-events-pagination a.prev,
.featured-events-pagination a.next {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: #007176;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.featured-events-pagination a.prev:hover,
.featured-events-pagination a.next:hover {
    color: #005a5e;
    text-decoration: underline;
}

.featured-events-pagination span { display: inline-block; }

/* ================================
   Empty / no results
   ================================ */

.featured-events-empty {
    text-align: center;
    padding: 60px 20px;
    background-color: #f9f9f9;
    border-radius: var(--umbc-radius-md, 8px);
}

.featured-events-empty p { font-size: 1.125rem; color: #666; }

/* ================================
   Loading skeleton
   ================================ */

.featured-event-card.loading { pointer-events: none; }

.featured-event-card.loading .featured-event-image-container {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: feb-loading 1.5s infinite;
}

@keyframes feb-loading {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================
   VISIBILITY — Mobile Hide
   Breakpoint: ≤ 1095px
   ================================ */

@media (max-width: 1095px) {

    /* Entire card */
    .featured-event-card.mobile-hide-entire,
    .feb-card.mobile-hide-entire { display: none !important; }

    /* Image (single-breakpoint hide — when NOT hidden on desktop) */
    .featured-event-card.mobile-hide-image .featured-event-image-container { display: none !important; }
    .feb-card.mobile-hide-image .event-thumbnail                           { display: none !important; }

    /* Other elements — vertical card */
    .featured-event-card.mobile-hide-description .featured-event-description { display: none !important; }
    .featured-event-card.mobile-hide-cta         .featured-event-cta          { display: none !important; }
    .featured-event-card.mobile-hide-time        .featured-event-meta         { display: none !important; }
    .featured-event-card.mobile-hide-badges      .featured-event-badges       { display: none !important; }
    .featured-event-card.mobile-hide-tag         .event-tag-badge             { display: none !important; }
    .featured-event-card.mobile-hide-category    .event-category-badge        { display: none !important; }
    .featured-event-card.mobile-hide-location    .event-venue                 { display: none !important; }

    /* Other elements — horizontal card */
    .feb-card.mobile-hide-description .event-excerpt      { display: none !important; }
    .feb-card.mobile-hide-cta         .event-link         { display: none !important; }
    .feb-card.mobile-hide-time        .event-meta         { display: none !important; }
    .feb-card.mobile-hide-badges      .event-categories   { display: none !important; }
    .feb-card.mobile-hide-tag         .event-category-tag.default { display: none !important; }
    .feb-card.mobile-hide-category    .event-category-tag:not(.default):not(.ongoing) { display: none !important; }
    .feb-card.mobile-hide-location    .venue              { display: none !important; }
}

/* ================================
   VISIBILITY — Desktop Hide
   Breakpoint: ≥ 1096px
   ================================ */

@media (min-width: 1096px) {

    /* Entire card */
    .featured-event-card.desktop-hide-entire,
    .feb-card.desktop-hide-entire { display: none !important; }

    /* Image (single-breakpoint hide) */
    .featured-event-card.desktop-hide-image .featured-event-image-container { display: none !important; }
    .feb-card.desktop-hide-image .event-thumbnail                           { display: none !important; }

    /* Other elements — vertical card */
    .featured-event-card.desktop-hide-description .featured-event-description { display: none !important; }
    .featured-event-card.desktop-hide-cta         .featured-event-cta          { display: none !important; }
    .featured-event-card.desktop-hide-time        .featured-event-meta         { display: none !important; }
    .featured-event-card.desktop-hide-badges      .featured-event-badges       { display: none !important; }
    .featured-event-card.desktop-hide-tag         .event-tag-badge             { display: none !important; }
    .featured-event-card.desktop-hide-category    .event-category-badge        { display: none !important; }
    .featured-event-card.desktop-hide-location    .event-venue                 { display: none !important; }

    /* Other elements — horizontal card */
    .feb-card.desktop-hide-description .event-excerpt      { display: none !important; }
    .feb-card.desktop-hide-cta         .event-link         { display: none !important; }
    .feb-card.desktop-hide-time        .event-meta         { display: none !important; }
    .feb-card.desktop-hide-badges      .event-categories   { display: none !important; }
    .feb-card.desktop-hide-tag         .event-category-tag.default { display: none !important; }
    .feb-card.desktop-hide-category    .event-category-tag:not(.default):not(.ongoing) { display: none !important; }
    .feb-card.desktop-hide-location    .venue              { display: none !important; }
}

/* ================================
   Responsive — Vertical Grid
   ================================ */

/* Tablet */
@media (max-width: 1200px) {
    .layout-three-column { grid-template-columns: 1fr 1fr; }
    .layout-70-30        { grid-template-columns: 2fr 1fr; }
    .featured-events-grid { gap: 1.5rem; }
}

/* Mobile — all multi-column → single column */
@media (max-width: 1095px) {
    .layout-two-column,
    .layout-three-column,
    .layout-70-30 { grid-template-columns: 1fr; }

    .featured-events-block { margin: 1rem 0 !important; }
    .featured-events-grid  { gap: 1.25rem; }

    .featured-event-content { padding: 1.25rem; }
    .featured-event-title   { font-size: 1.125rem; }
}

@media (max-width: 480px) {
    .featured-event-content { padding: 1rem; }
    .featured-events-grid   { gap: 1rem; }
}

/* ================================
   Responsive — Horizontal / Feed
   ================================ */

/* Viewport-based fallback for small screens when not inside a narrow container */
@media (max-width: 600px) {
    .featured-events-feed { gap: 16px; }
    .event-card-horizontal { padding: 1rem; }
}

/* Small mobile */
@media (max-width: 480px) {
    .event-title          { font-size: 1.125rem; }
    .featured-events-feed { padding: 0 1rem; }
}

/* ================================
   Editor overrides
   ================================ */

.block-editor-block-list__layout .featured-events-block {
    max-width: none;
}

/* ================================
   Container queries (narrow cols)
   ================================ */

@container (max-width: 300px) {
    .featured-event-title       { font-size: 1.125rem; }
    .featured-event-description { font-size: 0.85rem; }
    .featured-event-content     { padding: 1.25rem; }
}

/* ================================
   WP Block Columns stacking fix
   When a wp-block-columns layout mixes a vertical featured-events card
   (left col) with a horizontal feed (right col), force them to stack
   at 1096px instead of WP Core's default ~600px. This prevents the
   40%/60% flex-basis split from crushing both blocks at mid widths.
   ================================ */

@media (max-width: 1096px) {
    .wp-block-columns:has(.featured-events-block.orientation-vertical):has(.featured-events-block.orientation-horizontal) {
        flex-wrap: wrap !important;
    }

    .wp-block-columns:has(.featured-events-block.orientation-vertical):has(.featured-events-block.orientation-horizontal) > .wp-block-column {
        flex-basis: 100% !important;
        min-width: 100% !important;
    }
}

/* ================================
   Dark Mode — Featured Events Block
   ================================ */

/* ── Vertical card ── */
[data-theme="dark"] .featured-event-card {
    background: var(--umbc-surface-card, #2d2d2d) !important;
    box-shadow: var(--umbc-shadow-card) !important;
}

[data-theme="dark"] .featured-event-image-container {
    background-color: var(--umbc-surface-card, #2d2d2d);
}

/* Date numbers + separators */
[data-theme="dark"] .day-abbr,
[data-theme="dark"] .date-number,
[data-theme="dark"] .date-separator {
    color: #e0e0e0 !important;
}

/* Gold underline on date stays — gold on dark card surface is valid */

/* Event title link */
[data-theme="dark"] .featured-event-title a {
    color: #e0e0e0 !important;
}

[data-theme="dark"] .featured-event-title a:hover {
    color: #00a8af !important;
}

/* Category badge (teal filled) — darken teal for dark bg */
[data-theme="dark"] .event-category-badge {
    background-color: #005a5e !important;
    color: #e0e0e0 !important;
}

[data-theme="dark"] .event-category-badge:hover {
    background-color: #003f42 !important;
}

/* Tag badge (teal outline) */
[data-theme="dark"] .event-tag-badge,
[data-theme="dark"] .event-tag-badge.event-tag-teal {
    color: #00a8af !important;
    border-color: #00a8af !important;
}

[data-theme="dark"] .event-tag-badge:hover,
[data-theme="dark"] .event-tag-badge.event-tag-teal:hover {
    background-color: #005a5e !important;
    color: #e0e0e0 !important;
}

/* Featured badge: gold + black — valid pair, no change needed */

/* Meta / time / venue */
[data-theme="dark"] .featured-event-meta,
[data-theme="dark"] .event-venue {
    color: #e0e0e0 !important;
}

/* Description */
[data-theme="dark"] .featured-event-description {
    color: #c0c0c0 !important;
}

/* CTA button: gold bg + black text. The global dark-mode bare-link rule
   ([data-theme="dark"] .entry-content a:not([class*="wp-block-button"]) in
   css/umbc-style.css) repaints these anchors gold, so force black back. */
[data-theme="dark"] .view-event-btn,
[data-theme="dark"] .event-link {
    color: #000 !important;
}
[data-theme="dark"] .view-event-btn:hover,
[data-theme="dark"] .event-link:hover {
    color: #000 !important;
}

/* ── Horizontal card ── */
[data-theme="dark"] .event-card-horizontal {
    background: var(--umbc-surface-card, #2d2d2d);
    box-shadow: var(--umbc-shadow-pop);
}

/* Gold border on date badge stays — gold on dark is valid */
[data-theme="dark"] .event-date-badge .date-line-day,
[data-theme="dark"] .event-date-badge .date-line {
    color: #e0e0e0;
}

[data-theme="dark"] .event-date-badge .date-separator {
    color: #888;
}

/* Category tag (horizontal) */
[data-theme="dark"] .event-category-tag {
    background: #005a5e;
    color: #e0e0e0;
}

[data-theme="dark"] .event-category-tag:hover {
    background-color: #003f42;
}

[data-theme="dark"] .event-category-tag.default {
    background: transparent;
    color: #00a8af;
    border-color: #00a8af;
}

[data-theme="dark"] .event-category-tag.default:hover {
    background: #005a5e;
    color: #e0e0e0;
}

/* Ongoing tag: black bg + white text — already readable */

/* Title link (horizontal) */
[data-theme="dark"] .event-title a {
    color: #e0e0e0;
}

[data-theme="dark"] .event-title a:hover {
    color: #00a8af;
}

/* Meta */
[data-theme="dark"] .event-meta {
    color: #c0c0c0;
}

/* Excerpt */
[data-theme="dark"] .event-excerpt {
    color: #aaa;
}

/* CTA link (.event-link): black text forced in the shared CTA rule above */

/* Pagination */
[data-theme="dark"] .featured-events-pagination a.prev,
[data-theme="dark"] .featured-events-pagination a.next {
    color: #00a8af;
}

[data-theme="dark"] .featured-events-pagination a.prev:hover,
[data-theme="dark"] .featured-events-pagination a.next:hover {
    color: #7dd6da;
}

/* Empty state */
[data-theme="dark"] .featured-event-card.loading .featured-event-image-container {
    background: linear-gradient(90deg, #2d2d2d 25%, #3a3a3a 50%, #2d2d2d 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .event-thumbnail {
    background-color: var(--umbc-surface-card-alt, #232323);
}

[data-theme="dark"] .featured-events-empty {
    background-color: var(--umbc-surface-card, #2d2d2d);
}

[data-theme="dark"] .featured-events-empty p {
    color: #aaa;
}

/* Mobile: gold bottom border on date badge stays — valid */

/* ── Tribe Events "no results" notice ── */
/* TEC "no results" notice dark mode — full rules live in css/umbc-style.css
   in the tribe dark mode section. Nothing needed here. */
