/* ==============================================
   TEC Events Widget - Custom Styling
   ============================================== */

/* Hide redundant headers */
.tribe-events-widget-events-list__header,
.tribe-events-widget-events-list__header-title {
    display: none !important;
}

/* Hide the "Coming soon!" paragraph above the widget */
#events > p {
    display: none;
}

/* Hide "View Calendar" — replaced by a button block */
.tribe-events-widget-events-list__view-more {
    display: none !important;
}

/* Events list container */
.tribe-events-widget-events-list__events {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Completely neutralize TEC's grid row so our card takes over */
.tribe-common-g-row.tribe-events-widget-events-list__event-row {
    all: unset !important;
    display: block !important;
}

/* Our card */
.tec-card {
    display: flex !important;
    align-items: center !important;
    gap: 20px;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.tec-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.11);
    transform: translateY(-1px);
}

/* Title turns orange on card hover */
.tec-card:hover .tribe-events-widget-events-list__event-title-link {
    color: var(--wp--preset--color--accent-1) !important;
}

/* Date badge */
.tec-date-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f0f3f8;
    border-radius: 10px;
    min-width: 76px;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    line-height: 1;
}

.tec-date-badge__day {
    font-family: var(--wp--preset--font-family--montserrat) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--wp--preset--color--accent-1) !important;
    line-height: 1 !important;
}

.tec-date-badge__month {
    font-family: var(--wp--preset--font-family--montserrat) !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--contrast) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em;
    margin-top: 3px;
}

/* Event info area */
.tec-event-info {
    flex: 1 !important;
    min-width: 0;
}

/* Event title */
.tribe-events-widget-events-list__event-title {
    margin: 0 0 5px !important;
}

.tribe-events-widget-events-list__event-title-link,
.tribe-common .tribe-events-widget-events-list__event-title-link {
    font-family: var(--wp--preset--font-family--cinzel) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--wp--preset--color--contrast) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    transition: color 0.2s !important;
}

/* Kill TEC's anchor-thin border on ALL states */
.tribe-common .tribe-common-anchor-thin:hover,
.tribe-common .tribe-common-anchor-thin:focus,
.tribe-common .tribe-common-anchor-thin:active {
    border-bottom: none !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

/* Meta row */
.tec-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 5px;
}

.tec-event-meta-item {
    font-family: var(--wp--preset--font-family--montserrat);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast);
    opacity: 0.55;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Learn More button — reset button-effects.css interference */
.tec-learn-more-btn,
.tribe-common .tec-learn-more-btn {
    font-family: var(--wp--preset--font-family--montserrat) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: #f0f3f8 !important;
    color: var(--wp--preset--color--contrast) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    padding: 13px 22px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
    filter: none !important;
}

.tec-learn-more-btn:hover,
.tec-learn-more-btn:focus,
.tec-learn-more-btn:active,
.tribe-common .tec-learn-more-btn:hover,
.tribe-common .tec-learn-more-btn:focus,
.tribe-common .tec-learn-more-btn:active {
    background-color: #e2e8f2 !important;
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
    color: var(--wp--preset--color--contrast) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

/* ---- Mobile ---- */
@media (max-width: 600px) {
    .tec-card {
        flex-wrap: wrap;
        padding: 16px !important;
        gap: 14px;
    }

    .tec-learn-more-btn {
        width: 100%;
        text-align: center;
    }
}
