/**
 * NRNA Events Calendar - TEC Pro Style
 * Modern calendar design matching The Events Calendar Pro
 */

/* CSS Custom Properties - TEC Original Colors */
:root {
    --tribe-color-primary: rgb(18, 67, 159);
    --tribe-color-primary-dark: rgb(12, 48, 120);
    --tribe-color-primary-light: rgba(18, 67, 159, 0.1);
    --tribe-color-secondary: #141827;
    --tribe-color-text: #141827;
    --tribe-color-text-secondary: #727272;
    --tribe-color-border: #d5d5d5;
    --tribe-color-border-light: #e4e4e4;
    --tribe-color-background: #ffffff;
    --tribe-color-background-secondary: #f7f6f6;
    --tribe-color-background-events: rgba(18, 67, 159, 0.1);
    --tribe-color-featured: #0ea5e9;
    --tribe-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    --tribe-font-size-base: 16px;
    --tribe-font-size-small: 14px;
    --tribe-font-size-xsmall: 12px;
    --tribe-border-radius: 4px;
    --tribe-border-radius-lg: 8px;
    --tribe-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    --tribe-shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --tribe-transition: 0.2s ease;
}

/* Base Container */
.tribe-common.tribe-events {
    font-family: var(--tribe-font-family);
    font-size: var(--tribe-font-size-base);
    color: var(--tribe-color-text);
    line-height: 1.5;
    background: var(--tribe-color-background);
    border-radius: var(--tribe-border-radius-lg);
    overflow: hidden;
}

.tribe-common *,
.tribe-common *::before,
.tribe-common *::after {
    box-sizing: border-box;
}

/* Reset table styles that themes might apply */
.tribe-common.tribe-events table,
.tribe-common.tribe-events th,
.tribe-common.tribe-events td {
    border: none;
    border-collapse: collapse;
    background: transparent;
}

/* Ensure div-based grid has proper structure */
.tribe-common.tribe-events .tribe-events-calendar-month__body,
.tribe-common.tribe-events .tribe-events-calendar-month__week,
.tribe-common.tribe-events .tribe-events-calendar-month__header,
.tribe-common.tribe-events .tribe-events-calendar-month__header-row {
    margin: 0;
}

/* ============================================
   HEADER - Top Bar
   ============================================ */
.tribe-events-header {
    background: var(--tribe-color-background);
    border-bottom: 1px solid var(--tribe-color-border-light);
}

.tribe-events-header__top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

/* Search Component */
.tribe-events-c-search {
    flex: 1;
    max-width: 480px;
}

.tribe-events-c-search__input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid var(--tribe-color-border);
    border-radius: var(--tribe-border-radius);
    overflow: hidden;
    transition: border-color var(--tribe-transition), box-shadow var(--tribe-transition);
}

.tribe-events-c-search__input-group:focus-within {
    border-color: var(--tribe-color-primary);
    box-shadow: 0 0 0 2px rgba(51, 74, 255, 0.15);
}

.tribe-events-c-search__input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: var(--tribe-font-size-base);
    background: transparent;
    outline: none;
    min-width: 0;
}

.tribe-events-c-search__input::placeholder {
    color: var(--tribe-color-text-secondary);
}

.tribe-events-c-search__button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--tribe-color-primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: var(--tribe-font-size-small);
    font-weight: 500;
    transition: background var(--tribe-transition);
    white-space: nowrap;
}

.tribe-events-c-search__button:hover {
    background: var(--tribe-color-primary-dark);
}

.tribe-events-c-search__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Header Actions */
.tribe-events-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* View Selector */
.tribe-events-c-view-selector {
    position: relative;
}

.tribe-events-c-view-selector__button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--tribe-color-background);
    border: 1px solid var(--tribe-color-border);
    border-radius: var(--tribe-border-radius);
    font-size: var(--tribe-font-size-small);
    font-weight: 500;
    color: var(--tribe-color-text);
    cursor: pointer;
    transition: all var(--tribe-transition);
}

.tribe-events-c-view-selector__button:hover {
    border-color: var(--tribe-color-text-secondary);
}

.tribe-events-c-view-selector__icon {
    width: 12px;
    height: 12px;
    transition: transform var(--tribe-transition);
}

.tribe-events-c-view-selector__button.active .tribe-events-c-view-selector__icon {
    transform: rotate(180deg);
}

.tribe-events-c-view-selector__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--tribe-color-background);
    border: 1px solid var(--tribe-color-border);
    border-radius: var(--tribe-border-radius);
    box-shadow: var(--tribe-shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.tribe-events-c-view-selector__option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text);
    cursor: pointer;
    transition: background var(--tribe-transition);
    text-align: left;
}

.tribe-events-c-view-selector__option:hover {
    background: var(--tribe-color-background-secondary);
}

.tribe-events-c-view-selector__option.active {
    background: var(--tribe-color-background-secondary);
    font-weight: 600;
}

.tribe-events-c-view-selector__option svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Subscribe Dropdown */
.tribe-events-c-subscribe-dropdown {
    position: relative;
}

.tribe-events-c-subscribe-dropdown__button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--tribe-color-background);
    border: 1px solid var(--tribe-color-border);
    border-radius: var(--tribe-border-radius);
    font-size: var(--tribe-font-size-small);
    font-weight: 500;
    color: var(--tribe-color-text);
    cursor: pointer;
    transition: all var(--tribe-transition);
}

.tribe-events-c-subscribe-dropdown__button:hover {
    border-color: var(--tribe-color-text-secondary);
}

.tribe-events-c-subscribe-dropdown__icon {
    width: 18px;
    height: 18px;
}

.tribe-events-c-subscribe-dropdown__arrow {
    width: 10px;
    height: 10px;
    transition: transform var(--tribe-transition);
}

.tribe-events-c-subscribe-dropdown__button.active .tribe-events-c-subscribe-dropdown__arrow {
    transform: rotate(180deg);
}

.tribe-events-c-subscribe-dropdown__content {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 200px;
    background: var(--tribe-color-background);
    border: 1px solid var(--tribe-color-border);
    border-radius: var(--tribe-border-radius);
    box-shadow: var(--tribe-shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.tribe-events-c-subscribe-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--tribe-color-text);
    text-decoration: none;
    font-size: var(--tribe-font-size-small);
    transition: background var(--tribe-transition);
}

.tribe-events-c-subscribe-dropdown__item:hover {
    background: var(--tribe-color-background-secondary);
}

.tribe-events-c-subscribe-dropdown__item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ============================================
   NAVIGATION
   ============================================ */
.tribe-events-calendar-month__nav {
    padding: 16px 24px;
    border-bottom: 1px solid var(--tribe-color-border-light);
}

.tribe-events-c-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tribe-events-c-nav__prev,
.tribe-events-c-nav__next {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    color: var(--tribe-color-text-secondary);
    cursor: pointer;
    transition: all var(--tribe-transition);
}

.tribe-events-c-nav__prev:hover,
.tribe-events-c-nav__next:hover {
    color: var(--tribe-color-primary);
}

.tribe-events-c-nav__prev svg,
.tribe-events-c-nav__next svg {
    width: 8px;
    height: 14px;
}

.tribe-events-c-nav__title {
    margin: 0;
    flex: 1;
}

.tribe-events-c-nav__title-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px;
    background: none;
    border: none;
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tribe-color-primary);
    cursor: pointer;
    transition: color var(--tribe-transition);
}

.tribe-events-c-nav__title-btn:hover {
    color: var(--tribe-color-primary-dark);
}

.tribe-events-c-nav__title-btn svg {
    width: 14px;
    height: 14px;
    color: var(--tribe-color-text-secondary);
}

.tribe-events-c-nav__today {
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: var(--tribe-font-size-small);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--tribe-color-text-secondary);
    cursor: pointer;
    transition: all var(--tribe-transition);
}

.tribe-events-c-nav__today:hover {
    color: var(--tribe-color-primary);
}

/* ============================================
   CALENDAR MONTH VIEW - TEC Pro Exact Match
   ============================================ */
.tribe-events-calendar-month {
    padding: 0;
}

/* Day Headers - Matching TEC Pro */
.tribe-events-calendar-month__header {
    background: var(--tribe-color-background-secondary);
}

.tribe-events-calendar-month__header-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.tribe-events-calendar-month__header-column {
    padding: 16px 8px;
    text-align: center;
    width: 14.285%;
}

.tribe-events-calendar-month__header-column-title {
    margin: 0;
    font-size: var(--tribe-font-size-xsmall);
    font-weight: 600;
    color: var(--tribe-color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Calendar Body - TEC Pro Border Strategy */
.tribe-events-calendar-month__body {
    display: flex;
    flex-direction: column;
    background: var(--tribe-color-background);
    border-top: 1px solid var(--tribe-color-border-light);
}

/* Week Row - TEC Pro uses border-left */
.tribe-events-calendar-month__week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-left: 1px solid var(--tribe-color-border-light);
}

/* Calendar Day - TEC Pro uses border: 0 1px 1px 0 (right and bottom) */
.tribe-events-calendar-month__day {
    min-height: 168px;
    padding: 8px;
    border-color: var(--tribe-color-border-light);
    border-style: solid;
    border-width: 0 1px 1px 0;
    background: var(--tribe-color-background);
    transition: background var(--tribe-transition);
    position: relative;
    overflow: visible;
}

.tribe-events-calendar-month__day:hover {
    background: var(--tribe-color-background-secondary);
}

.tribe-events-calendar-month__day--other-month {
    background: #fafafa;
}

.tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date {
    color: #bbb;
}

.tribe-events-calendar-month__day--current {
    background: var(--tribe-color-background);
}

.tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
    font-weight: 700;
    color: var(--tribe-color-text);
}

/* Past days - lighter text like TEC */
.tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-date-daynum {
    color: var(--tribe-color-text-secondary);
}

/* Day Date */
.tribe-events-calendar-month__day-date {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
}

.tribe-events-calendar-month__day-date-daynum {
    font-size: 14px;
    font-weight: 500;
    color: var(--tribe-color-text);
    line-height: 1;
}

/* Calendar Events */
.tribe-events-calendar-month__events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Single Event in Calendar Cell */
.tribe-events-calendar-month__calendar-event {
    position: relative;
}

.tribe-events-calendar-month__calendar-event-link {
    display: block;
    padding: 4px 8px;
    background: var(--tribe-color-background-events);
    border-radius: var(--tribe-border-radius);
    text-decoration: none;
    transition: all var(--tribe-transition);
    cursor: pointer;
}

.tribe-events-calendar-month__calendar-event-link:hover {
    background: rgba(18, 67, 159, 0.18);
}

.tribe-events-calendar-month__calendar-event--featured .tribe-events-calendar-month__calendar-event-link {
    background: rgba(14, 165, 233, 0.15);
}

.tribe-events-calendar-month__calendar-event--featured .tribe-events-calendar-month__calendar-event-link:hover {
    background: rgba(14, 165, 233, 0.25);
}

.tribe-events-calendar-month__calendar-event-datetime {
    font-size: 10px;
    color: var(--tribe-color-text-secondary);
    margin-bottom: 2px;
}

.tribe-events-calendar-month__calendar-event-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--tribe-color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Featured Badge */
.tribe-events-calendar-month__calendar-event-featured-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--tribe-color-featured);
    color: white;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 4px;
}

/* More Events Link */
.tribe-events-calendar-month__more-events {
    padding: 4px 8px;
    font-size: 11px;
    color: var(--tribe-color-primary);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--tribe-transition);
}

.tribe-events-calendar-month__more-events:hover {
    color: var(--tribe-color-primary-dark);
    text-decoration: underline;
}

/* ============================================
   TOOLTIP
   ============================================ */
.tribe-events-tooltip {
    position: fixed;
    z-index: 10000;
    width: 300px;
    background: var(--tribe-color-background);
    border-radius: var(--tribe-border-radius-lg);
    box-shadow: var(--tribe-shadow-lg);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.tribe-events-tooltip.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.tribe-events-tooltip__image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--tribe-color-background-secondary);
}

.tribe-events-tooltip__image:empty {
    display: none;
}

.tribe-events-tooltip__body {
    padding: 16px;
}

.tribe-events-tooltip__datetime {
    font-size: var(--tribe-font-size-xsmall);
    color: var(--tribe-color-primary);
    font-weight: 500;
    margin-bottom: 6px;
}

.tribe-events-tooltip__title {
    margin: 0 0 8px;
    font-size: var(--tribe-font-size-base);
    font-weight: 700;
    color: var(--tribe-color-text);
    line-height: 1.3;
}

.tribe-events-tooltip__description {
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tribe-events-tooltip__venue {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-top: 10px;
    font-size: var(--tribe-font-size-xsmall);
    color: var(--tribe-color-text-secondary);
}

.tribe-events-tooltip__venue svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 1px;
}

.tribe-events-tooltip__cost {
    display: inline-block;
    margin-top: 10px;
    padding: 4px 10px;
    background: var(--tribe-color-background-secondary);
    border-radius: var(--tribe-border-radius);
    font-size: var(--tribe-font-size-xsmall);
    font-weight: 600;
    color: var(--tribe-color-text);
}

.tribe-events-tooltip__arrow {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--tribe-color-background);
    transform: rotate(45deg);
}

/* ============================================
   MOBILE EVENTS SECTION
   ============================================ */
.tribe-events-calendar-month-mobile-events {
    border-top: 1px solid var(--tribe-color-border-light);
    padding: 16px;
}

.tribe-events-calendar-month-mobile-events__header {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--tribe-color-text);
}

.tribe-events-calendar-month-mobile-events__mobile-day {
    margin-bottom: 12px;
    border: 1px solid var(--tribe-color-border-light);
    border-radius: var(--tribe-border-radius);
    overflow: hidden;
}

.tribe-events-calendar-month-mobile-events__mobile-day-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--tribe-color-background-secondary);
    cursor: pointer;
    transition: background var(--tribe-transition);
}

.tribe-events-calendar-month-mobile-events__mobile-day-date:hover {
    background: #ebebeb;
}

.tribe-events-calendar-month-mobile-events__mobile-day-date-label {
    font-weight: 600;
    color: var(--tribe-color-text);
}

.tribe-events-calendar-month-mobile-events__mobile-day-date-count {
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text-secondary);
}

.tribe-events-calendar-month-mobile-events__mobile-day-date-chevron {
    width: 12px;
    height: 12px;
    color: var(--tribe-color-text-secondary);
    transition: transform var(--tribe-transition);
}

.tribe-events-calendar-month-mobile-events__mobile-day.expanded .tribe-events-calendar-month-mobile-events__mobile-day-date-chevron {
    transform: rotate(180deg);
}

.tribe-events-calendar-month-mobile-events__mobile-day-events {
    display: none;
    padding: 12px 16px;
    border-top: 1px solid var(--tribe-color-border-light);
}

.tribe-events-calendar-month-mobile-events__mobile-day.expanded .tribe-events-calendar-month-mobile-events__mobile-day-events {
    display: block;
}

/* Mobile Event */
.tribe-events-calendar-month-mobile-events__mobile-event {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tribe-color-border-light);
    text-decoration: none;
}

.tribe-events-calendar-month-mobile-events__mobile-event:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.tribe-events-calendar-month-mobile-events__mobile-event:first-child {
    padding-top: 0;
}

.tribe-events-calendar-month-mobile-events__mobile-event-image {
    width: 80px;
    height: 60px;
    border-radius: var(--tribe-border-radius);
    background-size: cover;
    background-position: center;
    background-color: var(--tribe-color-background-secondary);
    flex-shrink: 0;
}

.tribe-events-calendar-month-mobile-events__mobile-event-content {
    flex: 1;
    min-width: 0;
}

.tribe-events-calendar-month-mobile-events__mobile-event-datetime {
    font-size: var(--tribe-font-size-xsmall);
    color: var(--tribe-color-primary);
    font-weight: 500;
    margin-bottom: 4px;
}

.tribe-events-calendar-month-mobile-events__mobile-event-title {
    font-size: var(--tribe-font-size-small);
    font-weight: 600;
    color: var(--tribe-color-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.tribe-events-calendar-month-mobile-events__mobile-event-venue {
    font-size: var(--tribe-font-size-xsmall);
    color: var(--tribe-color-text-secondary);
}

/* ============================================
   LIST VIEW
   ============================================ */
.tribe-events-calendar-list {
    padding: 0;
}

.tribe-events-calendar-list__container {
    padding: 0;
}

.tribe-events-calendar-list__month-separator {
    padding: 20px 24px;
    background: var(--tribe-color-background-secondary);
    border-bottom: 1px solid var(--tribe-color-border-light);
}

.tribe-events-calendar-list__month-separator-text {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--tribe-color-text);
}

/* List Event */
.tribe-events-calendar-list__event {
    display: flex;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid var(--tribe-color-border-light);
    transition: background var(--tribe-transition);
}

.tribe-events-calendar-list__event:hover {
    background: var(--tribe-color-background-secondary);
}

.tribe-events-calendar-list__event:last-child {
    border-bottom: none;
}

.tribe-events-calendar-list__event-date {
    flex-shrink: 0;
    width: 100px;
    text-align: center;
}

.tribe-events-calendar-list__event-date-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    background: var(--tribe-color-primary);
    color: white;
    border-radius: var(--tribe-border-radius);
}

.tribe-events-calendar-list__event-date-month {
    font-size: var(--tribe-font-size-xsmall);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.tribe-events-calendar-list__event-date-day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.1;
}

.tribe-events-calendar-list__event-date-weekday {
    font-size: var(--tribe-font-size-xsmall);
    margin-top: 4px;
    opacity: 0.85;
}

.tribe-events-calendar-list__event-featured .tribe-events-calendar-list__event-date-tag {
    background: var(--tribe-color-featured);
}

/* Event Details */
.tribe-events-calendar-list__event-wrapper {
    flex: 1;
    min-width: 0;
}

.tribe-events-calendar-list__event-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tribe-events-calendar-list__event-datetime {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text-secondary);
}

.tribe-events-calendar-list__event-datetime svg {
    width: 14px;
    height: 14px;
}

.tribe-events-calendar-list__event-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tribe-events-calendar-list__event-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.tribe-events-calendar-list__event-title-link {
    color: var(--tribe-color-text);
    text-decoration: none;
    transition: color var(--tribe-transition);
}

.tribe-events-calendar-list__event-title-link:hover {
    color: var(--tribe-color-primary);
}

.tribe-events-calendar-list__event-venue {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text-secondary);
}

.tribe-events-calendar-list__event-venue svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.tribe-events-calendar-list__event-description {
    font-size: var(--tribe-font-size-small);
    color: var(--tribe-color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tribe-events-calendar-list__event-cost {
    display: inline-block;
    padding: 4px 12px;
    background: var(--tribe-color-background-secondary);
    border-radius: var(--tribe-border-radius);
    font-size: var(--tribe-font-size-small);
    font-weight: 600;
    color: var(--tribe-color-text);
}

/* Event Image */
.tribe-events-calendar-list__event-image {
    flex-shrink: 0;
    width: 180px;
}

.tribe-events-calendar-list__event-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--tribe-border-radius);
}

/* Empty State */
.tribe-events-calendar-list__empty {
    padding: 60px 24px;
    text-align: center;
}

.tribe-events-calendar-list__empty-icon {
    width: 64px;
    height: 64px;
    color: var(--tribe-color-border);
    margin-bottom: 16px;
}

.tribe-events-calendar-list__empty-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--tribe-color-text);
}

.tribe-events-calendar-list__empty-text {
    margin: 0;
    font-size: var(--tribe-font-size-base);
    color: var(--tribe-color-text-secondary);
}

/* ============================================
   LOADING STATE
   ============================================ */
.tribe-events-calendar-month__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
    color: var(--tribe-color-text-secondary);
}

.tribe-common-c-loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--tribe-color-border-light);
    border-top-color: var(--tribe-color-primary);
    border-radius: 50%;
    animation: tribe-spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes tribe-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   NOTICE
   ============================================ */
.tribe-events-notice {
    padding: 20px 24px;
    background: #fff8dc;
    border-left: 4px solid #f0ad4e;
    border-radius: var(--tribe-border-radius);
    color: #856404;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
    .tribe-events-calendar-month__day {
        min-height: 100px;
        padding: 6px;
    }

    .tribe-events-calendar-month__calendar-event-title {
        font-size: 10px;
        -webkit-line-clamp: 1;
    }

    .tribe-events-c-nav__title-btn {
        font-size: 20px;
    }

    .tribe-events-calendar-list__event {
        gap: 16px;
    }

    .tribe-events-calendar-list__event-image {
        width: 140px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .tribe-events-header__top-bar {
        flex-direction: column;
        padding: 16px;
    }

    .tribe-events-c-search {
        max-width: none;
        width: 100%;
    }

    .tribe-events-c-search__text {
        display: none;
    }

    .tribe-events-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .tribe-events-calendar-month__nav {
        padding: 12px 16px;
    }

    .tribe-events-c-nav__title-btn {
        font-size: 18px;
    }

    .tribe-events-c-nav__today {
        padding: 8px 14px;
        font-size: var(--tribe-font-size-xsmall);
    }

    /* Hide calendar grid on mobile, show mobile events */
    .tribe-events-calendar-month__body {
        display: none;
    }

    .tribe-events-calendar-month__header {
        display: none;
    }

    .tribe-events-calendar-month-mobile-events {
        display: block !important;
    }

    /* Mobile Calendar - Compact Grid */
    .tribe-events-calendar-month--mobile-grid .tribe-events-calendar-month__body {
        display: flex;
    }

    .tribe-events-calendar-month--mobile-grid .tribe-events-calendar-month__header {
        display: block;
    }

    .tribe-events-calendar-month--mobile-grid .tribe-events-calendar-month__day {
        min-height: 48px;
        padding: 4px;
    }

    .tribe-events-calendar-month--mobile-grid .tribe-events-calendar-month__events {
        display: none;
    }

    .tribe-events-calendar-month--mobile-grid .tribe-events-calendar-month__day-dots {
        display: flex;
        justify-content: center;
        gap: 3px;
        margin-top: 4px;
    }

    .tribe-events-calendar-month__day-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--tribe-color-primary);
    }

    /* List View Mobile */
    .tribe-events-calendar-list__event {
        flex-direction: column;
        padding: 16px;
        gap: 12px;
    }

    .tribe-events-calendar-list__event-date {
        width: auto;
    }

    .tribe-events-calendar-list__event-date-tag {
        flex-direction: row;
        gap: 8px;
        padding: 10px 16px;
    }

    .tribe-events-calendar-list__event-date-day {
        font-size: 20px;
    }

    .tribe-events-calendar-list__event-image {
        width: 100%;
        order: -1;
    }

    .tribe-events-calendar-list__event-image img {
        height: 180px;
    }

    .tribe-events-calendar-list__event-title {
        font-size: 18px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .tribe-events-header__top-bar {
        padding: 12px;
    }

    .tribe-events-c-search__button {
        padding: 10px 12px;
    }

    .tribe-events-c-view-selector__button,
    .tribe-events-c-subscribe-dropdown__button {
        padding: 8px 12px;
        font-size: var(--tribe-font-size-xsmall);
    }

    .tribe-events-c-subscribe-dropdown__button span {
        display: none;
    }

    .tribe-events-c-nav {
        flex-wrap: wrap;
        gap: 8px;
    }

    .tribe-events-c-nav__title {
        order: -1;
        width: 100%;
        text-align: center;
    }

    .tribe-events-c-nav__title-btn {
        justify-content: center;
        width: 100%;
    }

    .tribe-events-calendar-month-mobile-events {
        padding: 12px;
    }

    .tribe-events-calendar-month-mobile-events__mobile-event-image {
        width: 60px;
        height: 45px;
    }
}

/* ============================================
   HIGH SPECIFICITY GRID FIXES - TEC Pro Match
   ============================================ */
/* Ensure grid lines appear with high specificity - TEC Pro border strategy */
.tribe-common.tribe-events .tribe-events-calendar-month__body {
    border-top: 1px solid #e4e4e4 !important;
}

.tribe-common.tribe-events .tribe-events-calendar-month__week {
    border-left: 1px solid #e4e4e4 !important;
}

.tribe-common.tribe-events .tribe-events-calendar-month__day {
    border-color: #e4e4e4 !important;
    border-style: solid !important;
    border-width: 0 1px 1px 0 !important;
    min-height: 168px !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .tribe-common.tribe-events {
        box-shadow: none;
    }

    .tribe-events-header__top-bar,
    .tribe-events-c-nav__prev,
    .tribe-events-c-nav__next,
    .tribe-events-c-nav__today,
    .tribe-events-tooltip {
        display: none !important;
    }

    .tribe-events-calendar-month__day {
        min-height: auto;
    }
}
