/* ═══════════════════════════════════════════════════════
   The Events Calendar — Afterburner Farm Custom Styles
   Matches mockup: events-page-mockup.html
   TEC v6.15.x (Views V2) on GeneratePress
   ═══════════════════════════════════════════════════════ */

/* ─── Override TEC's built-in custom properties ─── */
.tribe-events,
.tribe-common {
  --tec-color-accent-primary: #C8860A !important;
  --tec-color-accent-primary-hover: #7A1818 !important;
  --tec-color-accent-primary-multiday: rgba(200,134,10,0.24) !important;
  --tec-color-accent-primary-multiday-hover: rgba(200,134,10,0.34) !important;
  --tec-color-accent-primary-background: rgba(200,134,10,0.08) !important;
  --tec-color-background: #FEF3E2 !important;
  --tec-color-background-events: #FDFAF4 !important;
  --tec-color-background-secondary: #FDFAF4 !important;
  --tec-color-text-primary: #281E10 !important;
  --tec-color-text-secondary: #5A3A20 !important;
  --tec-color-text-disabled: #7A6A52 !important;
  --tec-color-border-default: rgba(122,24,24,0.08) !important;
  --tec-color-border-secondary: rgba(122,24,24,0.06) !important;
  --tec-color-link-primary: #7A1818 !important;
  --tec-color-link-accent: #C8860A !important;
  --tec-color-day-marker-current-month: #281E10 !important;
  --tec-color-day-marker-current-month-hover: #7A1818 !important;
  --tec-color-day-marker-past-month: #7A6A52 !important;
  --tec-color-icon-active: #C8860A !important;
  --tec-color-button-primary: #C8860A !important;
  --tec-color-button-primary-hover: #7A1818 !important;
  --tec-font-family-sans-serif: 'Raleway', sans-serif !important;
  --tec-font-family-base: 'Raleway', sans-serif !important;
}

/* ─── Brand Variables ─── */
:root {
  --af-maroon: #7A1818;
  --af-sienna: #B84020;
  --af-amber: #C8860A;
  --af-sage: #4A7A30;
  --af-cream: #FEF3E2;
  --af-white: #FDFAF4;
  --af-ink: #281E10;
  --af-brown: #5A3A20;
  --af-taupe: #7A6A52;
}

/* ─── FULL-WIDTH CLEANUP ─── */
.tribe-events {
  font-family: 'Raleway', sans-serif !important;
  background: var(--af-cream) !important;
}
.tribe-events .tribe-common-l-container {
  max-width: 68rem !important;
}

/* Remove GeneratePress sidebar/content padding on events */
.no-content-padding {
  padding: 0 !important;
}

/* ─── "FIND EVENTS" BUTTON — override blue ─── */
.tribe-events .tribe-events-c-search__button,
.tribe-events .tribe-common-c-btn,
.tribe-events button.tribe-events-c-search__button {
  background-color: var(--af-amber) !important;
  color: var(--af-white) !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.08rem !important;
  border-radius: 2px !important;
  border: none !important;
}
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-common-c-btn:hover {
  background-color: var(--af-maroon) !important;
}

/* ─── VIEW TOGGLE (List / Month / Day) ─── */
.tribe-events .tribe-events-c-view-selector__button {
  font-family: 'Barlow', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08rem !important;
  text-transform: uppercase !important;
  color: var(--af-taupe) !important;
}
.tribe-events .tribe-events-c-view-selector__button--active {
  color: var(--af-maroon) !important;
  border-bottom-color: var(--af-maroon) !important;
}
.tribe-events .tribe-events-c-view-selector__button:hover {
  color: var(--af-maroon) !important;
}

/* ─── MONTH NAV (arrows, "This Month", date picker) ─── */
.tribe-events .tribe-events-c-top-bar__nav-link {
  color: var(--af-ink) !important;
  font-family: 'Barlow', sans-serif !important;
}
.tribe-events .tribe-events-c-top-bar__nav-link:hover {
  color: var(--af-maroon) !important;
}
.tribe-events .tribe-events-c-top-bar__today-button {
  font-family: 'Barlow', sans-serif !important;
  color: var(--af-taupe) !important;
  border-color: rgba(122,24,24,0.15) !important;
}
.tribe-events .tribe-events-c-top-bar__datepicker-button {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: var(--af-maroon) !important;
}

/* ─── MONTH VIEW: DAY-OF-WEEK HEADER ─── */
.tribe-events .tribe-events-calendar-month__header-row {
  background: var(--af-maroon) !important;
}
.tribe-events .tribe-events-calendar-month__header-column {
  background: var(--af-maroon) !important;
  flex: 1 !important;
  width: 100% !important;
}
.tribe-events .tribe-events-calendar-month__header-column-title,
.tribe-events .tribe-events-calendar-month__header-column h3 {
  font-family: 'Barlow', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.12rem !important;
  text-transform: uppercase !important;
  color: var(--af-white) !important;
  text-align: center !important;
  padding: 0.75rem 0.5rem !important;
  width: 100% !important;
  display: block !important;
}
/* Show full day names instead of abbreviations */
.tribe-events .tribe-events-calendar-month__header-column-title abbr {
  text-decoration: none !important;
}
.tribe-events .tribe-events-calendar-month__header-column-title abbr[title] {
  text-decoration: none !important;
  border-bottom: none !important;
}
/* Replace single-letter abbreviations with full names via content trick */
.tribe-events .tribe-events-calendar-month__header-column-title {
  font-size: 0 !important;
}
.tribe-events .tribe-events-calendar-month__header-column-title::after {
  font-size: 1rem !important;
  font-family: 'Barlow', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.12rem !important;
  text-transform: uppercase !important;
  color: var(--af-white) !important;
}
.tribe-events .tribe-events-calendar-month__header-column:nth-child(1) .tribe-events-calendar-month__header-column-title::after { content: "Monday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(2) .tribe-events-calendar-month__header-column-title::after { content: "Tuesday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(3) .tribe-events-calendar-month__header-column-title::after { content: "Wednesday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(4) .tribe-events-calendar-month__header-column-title::after { content: "Thursday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(5) .tribe-events-calendar-month__header-column-title::after { content: "Friday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(6) .tribe-events-calendar-month__header-column-title::after { content: "Saturday" !important; }
.tribe-events .tribe-events-calendar-month__header-column:nth-child(7) .tribe-events-calendar-month__header-column-title::after { content: "Sunday" !important; }

/* ─── MONTH VIEW: CALENDAR CELLS ─── */
.tribe-events .tribe-events-calendar-month__day {
  background: var(--af-white) !important;
  border-color: rgba(122,24,24,0.06) !important;
  min-height: 6.5rem;
}
.tribe-events .tribe-events-calendar-month__day:hover {
  background: rgba(200,134,10,0.04) !important;
}
.tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-cell {
  opacity: 0.6;
}

/* Day numbers */
.tribe-events .tribe-events-calendar-month__day-date-link,
.tribe-events .tribe-events-calendar-month__day-date-daynum {
  font-family: 'Barlow', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--af-ink) !important;
  text-decoration: none !important;
}

/* Today circle */
.tribe-events .tribe-events-calendar-month__day--current {
  background: rgba(200,134,10,0.08) !important;
}
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
  background: var(--af-amber) !important;
  color: var(--af-white) !important;
  border-radius: 50% !important;
  width: 1.6rem !important;
  height: 1.6rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Events inside calendar cells */
.tribe-events .tribe-events-calendar-month__calendar-event-title-link,
.tribe-events .tribe-events-calendar-month__calendar-event-title {
  font-family: 'Barlow', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: var(--af-ink) !important;
  text-decoration: none !important;
}

/* ─── EVENT CATEGORY COLOR BARS (calendar cell events) ─── */
.tribe-events .tribe-events-calendar-month__calendar-event--workshop article,
.tribe-events .tribe-events-calendar-month__calendar-event.tribe_events_cat-workshop article {
  border-left: 3px solid var(--af-sage) !important;
  background: rgba(74,122,48,0.10) !important;
  padding-left: 0.3rem;
}
.tribe-events .tribe-events-calendar-month__calendar-event--farm-dinner article,
.tribe-events .tribe-events-calendar-month__calendar-event.tribe_events_cat-farm-dinner article {
  border-left: 3px solid var(--af-maroon) !important;
  background: rgba(122,24,24,0.08) !important;
  padding-left: 0.3rem;
}
.tribe-events .tribe-events-calendar-month__calendar-event--adventure article,
.tribe-events .tribe-events-calendar-month__calendar-event.tribe_events_cat-adventure article {
  border-left: 3px solid var(--af-sienna) !important;
  background: rgba(184,64,32,0.08) !important;
  padding-left: 0.3rem;
}
.tribe-events .tribe-events-calendar-month__calendar-event--community article,
.tribe-events .tribe-events-calendar-month__calendar-event.tribe_events_cat-community article {
  border-left: 3px solid var(--af-brown) !important;
  background: rgba(90,58,32,0.08) !important;
  padding-left: 0.3rem;
}

/* ─── TOOLTIP (hover on calendar event) ─── */
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-title a {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: var(--af-ink) !important;
  text-decoration: none !important;
}
.tribe-events .tribe-events-calendar-month__calendar-event-tooltip-description {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 300 !important;
  color: var(--af-brown) !important;
}

/* ─── LIST VIEW: EVENT CARDS ─── */
.tribe-events .tribe-events-calendar-list__event-row {
  background: var(--af-white) !important;
  border: 1px solid rgba(122,24,24,0.08) !important;
  border-radius: 2px !important;
  box-shadow: 0 2px 12px rgba(40,30,16,0.06) !important;
  margin-bottom: 1rem !important;
  transition: box-shadow 0.3s, transform 0.3s !important;
}
.tribe-events .tribe-events-calendar-list__event-row:hover {
  box-shadow: 0 4px 20px rgba(40,30,16,0.10) !important;
  transform: translateY(-1px);
}

/* Date tag in list view */
.tribe-events .tribe-events-calendar-list__event-date-tag {
  background: var(--af-maroon) !important;
  min-width: 5.5rem;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-month,
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
  font-family: 'Barlow', sans-serif !important;
  color: rgba(253,250,244,0.7) !important;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
  font-family: 'Playfair Display', serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  color: var(--af-white) !important;
}

/* Event titles in list view */
.tribe-events .tribe-events-calendar-list__event-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}
.tribe-events .tribe-events-calendar-list__event-title a {
  color: var(--af-ink) !important;
  text-decoration: none !important;
}
.tribe-events .tribe-events-calendar-list__event-title a:hover {
  color: var(--af-maroon) !important;
}

/* Event meta */
.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-list__event-venue-title {
  font-family: 'Barlow', sans-serif !important;
  font-size: 1rem !important;
  color: var(--af-taupe) !important;
}

/* Event description */
.tribe-events .tribe-events-calendar-list__event-description p {
  font-size: 1rem !important;
  font-weight: 300 !important;
  color: var(--af-brown) !important;
  line-height: 1.6 !important;
}

/* ─── SUBSCRIBE / EXPORT BUTTON ─── */
.tribe-events .tribe-events-c-subscribe-dropdown__button {
  font-family: 'Barlow', sans-serif !important;
  background: var(--af-amber) !important;
  color: var(--af-white) !important;
  border-radius: 2px !important;
}
.tribe-events .tribe-events-c-subscribe-dropdown__button:hover {
  background: var(--af-maroon) !important;
}

/* ─── SINGLE EVENT PAGE ─── */
.tribe-events-single .tribe-events-single-event-title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  color: var(--af-maroon) !important;
}
.tribe-events-single .tribe-events-schedule {
  font-family: 'Barlow', sans-serif !important;
  color: var(--af-taupe) !important;
}
.tribe-events-single .tribe-events-content {
  font-family: 'Raleway', sans-serif !important;
  font-weight: 300 !important;
  line-height: 1.8 !important;
  color: var(--af-ink) !important;
}
.tribe-events-single .tribe-events-back a {
  font-family: 'Barlow', sans-serif !important;
  color: var(--af-amber) !important;
}

/* ─── SEARCH BAR ─── */
.tribe-events .tribe-events-c-search__input {
  font-family: 'Raleway', sans-serif !important;
  border-color: rgba(122,24,24,0.15) !important;
  background: var(--af-white) !important;
}

/* ─── LINK OVERRIDES ─── */
.tribe-events a,
.tribe-events .tribe-common-anchor-alt {
  color: var(--af-maroon) !important;
}
.tribe-events a:hover {
  color: var(--af-amber) !important;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 56rem) {
  .tribe-events .tribe-events-calendar-list__event-row {
    flex-direction: column !important;
  }
  .tribe-events .tribe-events-calendar-list__event-date-tag {
    flex-direction: row !important;
    gap: 0.5rem;
    padding: 0.75rem 1rem !important;
    min-width: auto !important;
  }
}
@media (max-width: 40rem) {
  .tribe-events .tribe-events-calendar-month__day {
    min-height: 4.5rem;
  }
  .tribe-events .tribe-events-calendar-month__calendar-event-title {
    font-size: 1rem !important;
  }
}
