/* ================================
   Dragon’s Gate Gaming
   Events Calendar – Global Glass System
   Month view + Single event + Series
================================ */

/* ----------------
   Month View tweaks
------------------ */

/* Remove dark weekday header blocks */
.tribe-events-calendar-month__header-row,
.tribe-events-calendar-month__header-column {
  background: transparent !important;
}

.tribe-events-calendar-month__header-column::before {
  display: none !important;
}

/* Weekday letters */
.tribe-events-calendar-month__header-column-title {
  color: rgba(255, 255, 255, 0.9) !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
}

/* Calendar day cells */
.tribe-events-calendar-month__body,
.tribe-events-calendar-month__day-cell {
  background: rgba(255, 255, 255, 0.94) !important;
}

/* ----------------
   Global Glass Panel
   Applied to all TEC views that use .tribe-events-view
------------------ */

.tribe-events-view {
  position: relative !important;
  z-index: 0;
  padding: 2px !important;
}

.tribe-events-view::before {
  content: "";
  position: absolute;
  inset: 0;

  /* This is the single-event glass recipe */
  background: rgba(10, 10, 14, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);

  z-index: -1;
}

.tribe-events-view > * {
  position: relative;
  z-index: 1;
}

/* ----------------
   Mobile Month Tap Panel
------------------ */

@media (max-width: 767px) {
  .tribe-events-calendar-month-mobile-events {
    background: rgba(10, 10, 14, 0.88) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
  }

  .tribe-events-calendar-month-mobile-events,
  .tribe-events-calendar-month-mobile-events * {
    color: rgba(255, 255, 255, 0.92) !important;
  }

  .tribe-events-calendar-month-mobile-events__event-title-link {
    color: rgba(210, 160, 255, 0.98) !important;
    font-weight: 700;
    line-height: 1.25;
  }
}

/* ----------------
   Remove Theme White Panel
   Single events and Series pages
------------------ */

.single-tribe_events .content_wrap,
.single-tribe_events .content_wrap .content,
.single-tribe_events .content_wrap .content > *,

body.single-tribe_event_series .content_wrap,
body.single-tribe_event_series .content_wrap .content,
body.single-tribe_event_series .content_wrap .content > *,

/* ThemeRex wrapper sometimes holds the white slab */
body.single-tribe_event_series .page_content_wrap,
.single-tribe_events .page_content_wrap {
  background: transparent !important;
  box-shadow: none !important;
}

/* ----------------
   Series pages: force EXACT same glass as single event
   (no lighter override)
------------------ */

body.single-tribe_event_series .tribe-events-view::before {
  /* Force the same values as the base glass */
  background: rgba(10, 10, 14, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

/* ================================
   FORCE MATCH: Series and Single Event Glass
   (works even if wrapper differs)
================================ */

/* 1) Kill ThemeRex background/overlay that changes how glass looks on series pages */
body.single-tribe_event_series.custom-background .page_content_wrap,
body.single-tribe_event_series.custom-background .page_content_wrap::before,
body.single-tribe_event_series.custom-background .page_wrap::before,
body.single-tribe_event_series.custom-background .content_wrap::before {
  background: transparent !important;
  box-shadow: none !important;
  content: none !important;
}

/* 2) Apply the SAME glass recipe to BOTH wrappers TEC might use */
body.single-tribe_event_series .tribe-events-view::before,
body.single-tribe_event_series #tribe-events-content::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;

  background: rgba(10, 10, 14, 0.45) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;

  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 18px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;

  z-index: -1 !important;
}

/* 3) Ensure the wrapper is positioned so ::before can actually show */
body.single-tribe_event_series .tribe-events-view,
body.single-tribe_event_series #tribe-events-content {
  position: relative !important;
  z-index: 0 !important;
}

/* 4) Keep content above the glass */
body.single-tribe_event_series .tribe-events-view > *,
body.single-tribe_event_series #tribe-events-content > * {
  position: relative !important;
  z-index: 1 !important;
}

/* ================================
   Dragon's Gate Gaming
   Event Width Fix
   Single Event + Series
================================ */

/* Widen the main theme wrappers */
.single-tribe_events .page_content_wrap,
.single-tribe_events .content_wrap,
.single-tribe_events .content,
.single-tribe_events .site_content,
.single-tribe_events .sc_layouts_content,
.single-tribe_events #primary,

body.single-tribe_event_series .page_content_wrap,
body.single-tribe_event_series .content_wrap,
body.single-tribe_event_series .content,
body.single-tribe_event_series .site_content,
body.single-tribe_event_series .sc_layouts_content,
body.single-tribe_event_series #primary {
  width: 100% !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}

/* Widen The Events Calendar containers */
.single-tribe_events #tribe-events-pg-template,
.single-tribe_events #tribe-events-content,
.single-tribe_events .tribe-common-l-container,
.single-tribe_events .tribe-events-view,

body.single-tribe_event_series #tribe-events-pg-template,
body.single-tribe_event_series #tribe-events-content,
body.single-tribe_event_series .tribe-common-l-container,
body.single-tribe_event_series .tribe-events-view {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0px !important;
  padding-right: 0px !important;
  box-sizing: border-box !important;
}



/* ================================
   Dragon's Gate Gaming
   Remove top gap above single event / series
================================ */

.single-tribe_events .page_content_wrap,
.single-tribe_events .content_wrap,
.single-tribe_events .content,
.single-tribe_events #tribe-events-pg-template,
.single-tribe_events #tribe-events-content,
.single-tribe_events .tribe-events-view,

body.single-tribe_event_series .page_content_wrap,
body.single-tribe_event_series .content_wrap,
body.single-tribe_event_series .content,
body.single-tribe_event_series #tribe-events-pg-template,
body.single-tribe_event_series #tribe-events-content,
body.single-tribe_event_series .tribe-events-view {
  margin-top: 0 !important;
  padding-top: 15px !important;
}

/* ================================
   Dragon's Gate Gaming
   Actual inner text padding
   Elementor event content wrapper
================================ */

.single-tribe_events .elementor-widget-theme-post-content .description,
body.single-tribe_event_series .elementor-widget-theme-post-content .description {
  padding: 36px 42px !important;
  box-sizing: border-box !important;
}