/* ==========================================================================
   O2 Theme — TEC Events Calendar Styling
   
   Site:       Greenhouse Lab (greenhouselab.org)
   Added:      2026-04-20
   Developer:  Cameron Suorsa <cameron@o2dca.com>
   
   Migrated from the inline <style> block inside tec_custom_styles() in
   WPCode snippet #1311. Enqueue logic lives in inc/enqueue.php (loads only
   on TEC event pages — matches original conditional).
   
   Companion to tec-events.php. If TEC is removed from the site, this file
   and tec-events.php can both be deleted.
   
   ---------------------------------------------------------------------------
   TABLE OF CONTENTS
   ---------------------------------------------------------------------------
   [#1311] TEC Calendar Styles
           - White background fix
           - Link colors
           - Find Events button
           - Month/list/day view styling
           - Mobile calendar (selected day)
   ========================================================================== */

    /* TEC Color Overrides - 1-23-26 CS */
    /* White background fix - 1-27-26 CS */

/* ===== WHITE BACKGROUND FIX ===== */
.tribe-events-calendar-month,
.tribe-events-calendar-list,
.tribe-events-calendar-day,
.tribe-events-calendar-month__body,
.tribe-events-calendar-list__events,
.tribe-events-calendar-day__events {
    background-color: #fff !important;
}

    /* ===== LINKS ===== */
    .tribe-events a,
    .tribe-events-c-messages__message-list-item-link,
    .tribe-common-anchor-thin-alt,
    .tribe-events-c-nav__next,
    .tribe-events-c-nav__prev,
    .tribe-events-c-subscribe-dropdown__list-item-link,
    .tribe-events-c-view-selector__list-item-link,
    .tribe-events-single a,
    .tribe-events-event-url a,
    .tribe-venue-url a,
    .tribe-organizer-url a,
    .tribe-events-gmap,
    #tribe-events-content a,
    .tribe-events-meta-group a,
    .tribe-events-single-section a {
        color: #4F6D35 !important;
    }

    .tribe-events a:hover,
    .tribe-events a:focus,
    .tribe-common-anchor-thin-alt:hover,
    .tribe-events-single a:hover,
    #tribe-events-content a:hover,
    .tribe-events-meta-group a:hover {
        color: #003764 !important;
    }

    /* ===== FIND EVENTS BUTTON ===== */
    .tribe-events-c-search__button {
        background-color: #003764 !important;
        border-color: #003764 !important;
        color: #fff !important;
    }

    .tribe-events-c-search__button:hover {
        background-color: #71984A !important;
        border-color: #71984A !important;
        color: #fff !important;
    }

    /* ===== TODAY BUTTON ===== */
    .tribe-events-c-top-bar__today-button,
    a.tribe-events-c-top-bar__today-button {
        background-color: #003764 !important;
        border-color: #003764 !important;
        color: #fff !important;
    }

    .tribe-events-c-top-bar__today-button:hover,
    a.tribe-events-c-top-bar__today-button:hover {
        background-color: #71984A !important;
        border-color: #71984A !important;
        color: #fff !important;
    }

    /* ===== SUBSCRIBE / ADD TO CALENDAR BUTTON ===== */
    .tribe-events-c-subscribe-dropdown__button {
        background-color: #003764 !important;
        border-color: #003764 !important;
    }

    .tribe-events-c-subscribe-dropdown__button:hover {
        background-color: #71984A !important;
        border-color: #71984A !important;
    }

    .tribe-events-c-subscribe-dropdown__button-text {
        color: #fff !important;
    }

    .tribe-events-c-subscribe-dropdown__export-icon,
    .tribe-events-c-subscribe-dropdown__export-icon path {
        fill: #fff !important;
        stroke: #fff !important;
    }

    .tribe-events-c-subscribe-dropdown__button-icon,
    .tribe-events-c-subscribe-dropdown__button-icon path,
    .tribe-events-c-subscribe-dropdown__button-icon .tribe-common-c-svgicon__svg-fill {
        fill: #fff !important;
        stroke: none !important;
        stroke-width: 0 !important;
        filter: none !important;
        box-shadow: none !important;
        -webkit-filter: none !important;
    }

    svg.tribe-common-c-svgicon--caret-down {
        filter: none !important;
        -webkit-filter: none !important;
    }

    /* ===== VIEW SELECTOR (List, Month, Day) ===== */
    .tribe-events-c-view-selector__list-item-link,
    .tribe-events-c-view-selector__button {
        color: #141827 !important;
    }

    .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link,
    .tribe-events-c-view-selector__list-item-link[aria-current="true"],
    .tribe-events-c-view-selector__list-item-link:hover {
        color: #4F6D35 !important;
    }

    .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link::after {
        background-color: #71984A !important;
    }

    /* ===== FEATURED TAG ===== */
    .tribe-events-calendar-list__event-featured-text,
    .tribe-events-calendar-list__event-row--featured .tribe-events-calendar-list__event-featured-text,
    span.tribe-events-calendar-list__event-featured-text,
    [class*="featured-text"],
    [class*="featured"] span,
    .tribe-events-calendar-list__event-row--featured a[class*="featured"],
    .tribe-events span[class*="featured"] {
        color: #003764 !important;
    }

    .tribe-events-calendar-list__event-featured-image,
    .tribe-events-calendar-list__event-featured-image svg,
    .tribe-common-c-svgicon--featured,
    .tribe-common-c-svgicon--featured path,
    [class*="featured-icon"],
    [class*="featured"] svg,
    [class*="featured"] svg path {
        color: #003764 !important;
        fill: #003764 !important;
    }

    /* ===== VERTICAL LINE ===== */
    .tribe-events-calendar-list__event-date-tag-datetime::after {
        background-color: #71984A !important;
    }

    /* ===== DATE TAG BOX ===== */
    .tribe-events-calendar-list__event-date-tag {
        background-color: #fff !important;
    }

    /* ===== EVENT TITLE ===== */
    .tribe-events-calendar-list__event-title-link,
    .tribe-events-calendar-month__calendar-event-title-link,
    .tribe-events-calendar-day__event-title-link {
        color: #141827 !important;
    }

    .tribe-events-calendar-list__event-title-link:hover,
    .tribe-events-calendar-month__calendar-event-title-link:hover,
    .tribe-events-calendar-day__event-title-link:hover {
        color: #4F6D35 !important;
    }

    /* ===== NAV ARROWS ===== */
    .tribe-events-c-nav__prev:not([disabled]),
    .tribe-events-c-nav__next:not([disabled]) {
        color: #4F6D35 !important;
    }

    .tribe-events-c-nav__prev:hover,
    .tribe-events-c-nav__next:hover {
        color: #003764 !important;
    }

    /* ===== LOADING DOTS ===== */
    .tribe-common-c-loader__dot circle {
        fill: #71984A !important;
    }

    /* ===== DATEPICKER ===== */
    .tribe-events .datepicker .day.active,
    .tribe-events .datepicker .day:hover,
    .tribe-events .datepicker .month.active,
    .tribe-events .datepicker .year.active {
        background-color: #71984A !important;
        color: #fff !important;
    }

    /* ===== MONTH VIEW ===== */
    .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date,
    .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
        color: #4F6D35 !important;
    }

    .tribe-events-calendar-month__calendar-event--featured::before {
        background-color: #71984A !important;
    }

/* ===== MOBILE CALENDAR - SELECTED DAY ===== */
.tribe-events-calendar-month__day-cell--selected {
    background-color: var(--e-global-color-primary) !important;
}

.tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__day-date-daynum {
    color: #fff !important;
}

.tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__mobile-events-icon-svg,
.tribe-events-calendar-month__day-cell--selected .tribe-events-calendar-month__mobile-events-icon-svg path {
    fill: #fff !important;
}
