@charset "utf-8";
/* ============================================
   BILL'S GIGULATOR — Calendar & Gig Card Styles
   Inject this CSS into Squarespace or any host site.
   Fonts and sizes inherit from host site.
   ============================================ */
/* --- Palette --- */
/* ---- Month Header ---- */
.bgig-cal-month-hdr {
  margin-top: 24px;
}
.bgig-cal-month-hdr h2 {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #c8a45a;
  margin: 0;
  padding: 12px 16px;
}
/* ---- Calendar Nav ---- */
.bgig-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #242424;
  border-bottom: 2px solid #c8a45a;
  padding: 0 8px;
}
.bgig-cal-nav h2 {
  flex: 1;
  text-align: center;
}
.bgig-cal-prev,
.bgig-cal-next {
  background: none;
  border: 1px solid #333;
  color: #a09888;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.bgig-cal-prev:hover,
.bgig-cal-next:hover {
  color: #c8a45a;
  border-color: #c8a45a;
}
/* ---- Day-of-Week Header Row ---- */
.bgig-cal-week-hdr {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.bgig-cal-week-hdr span {
  background: #2c2c2c;
  color: #c8a45a;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 4px;
  text-align: center;
  border: 1px solid #333;
  border-top: none;
}
/* ============================================
   WEEK ROW — 7-column CSS grid
   ============================================ */
.bgig-cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
/* ============================================
   DAY CELL — flex column so gigs share equal space
   ============================================ */
.bgig-cal-day {
  display: flex;
  flex-direction: column;
  border: 1px solid #333;
  background: #1e1e1e;
  min-height: 200px;
  transition: background 0.2s ease;
  /* Today highlight */
  /* Past days — deemphasized */
}
.bgig-cal-day.bgig-cal-today {
  background: #2a2218;
  border-color: #c8a45a;
  box-shadow: inset 0 0 20px rgba(200, 164, 90, 0.06);
}
.bgig-cal-day.bgig-cal-today .cal-day-hdr {
  background: rgba(200, 164, 90, 0.15);
}
.bgig-cal-day.bgig-cal-today .cal-day-hdr .cal-date {
  color: #e8c86a;
}
.bgig-cal-day.bgig-cal-past {
  filter: grayscale(1);
  opacity: 0.7;
  /* Remove filter when popup is open (filter creates stacking context that breaks fixed positioning) */
}
.bgig-cal-day.bgig-cal-past:hover {
  filter: grayscale(0);
  opacity: 1;
}
.bgig-cal-day.bgig-cal-past:has(.bgig-active) {
  filter: none;
}
/* ---- Date Number ---- */
.cal-day-hdr {
  padding: 6px 8px;
  border-bottom: 1px solid #333;
  background: #2c2c2c;
  flex-shrink: 0;
}
.cal-day-hdr .cal-date {
  font-weight: 700;
  line-height: 1;
  color: #c8a45a;
}
/* Only show first image per day cell */
.bgig-cal-day > .bgig-gig ~ .bgig-gig .bgig-pic {
  display: none;
}
/* ============================================
   GIG CARD
   flex:1 = equal vertical space per gig
   Image on top, time badge + band name below
   ============================================ */
.bgig-gig {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s ease;
  /* ---- Band Image ---- */
  /* ---- Time Badge ---- */
  /* ---- Band Name ---- */
}
.bgig-gig:hover {
  background: #2a2a2a;
}
.bgig-gig:last-child {
  border-bottom: none;
}
.bgig-gig .bgig-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
  margin: 0;
}
.bgig-gig .bgig-pic {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: #242424;
}
.bgig-gig .bgig-pic a {
  display: block;
  line-height: 0;
}
.bgig-gig .bgig-pic img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: saturate(0.85);
  transition: filter 0.3s ease, transform 0.4s ease;
}
.bgig-gig .bgig-pic:empty {
  min-height: 100px;
  background: transparent;
}
.bgig-gig:hover .bgig-pic img {
  filter: saturate(1);
  transform: scale(1.03);
}
.bgig-gig .bgig-time {
  padding: 5px 8px 2px;
}
.bgig-gig .bgig-proj {
  padding: 2px 8px 8px;
}
.bgig-time-show {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #c8a45a;
  background: rgba(200, 164, 90, 0.12);
  display: inline-block;
  padding: 2px 6px;
  border-radius: 2px;
  font-size: 14px;
}
.bgig-proj-name {
  font-weight: 700;
  line-height: 1.25;
  min-height: 2.5em;
  display: inline-block;
  color: #e8e0d4;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 16px;
}
/* Disable links in normal view — popup re-enables */
.bgig-gig a {
  pointer-events: none;
  color: inherit;
}
a.bgig-proj-name:hover {
  color: #c8a45a;
}
span.bgig-proj-name {
  color: #a09888;
}
.bgig-proj-feat {
  font-size: 0.8em;
  font-weight: 400;
}
/* Hide empties */
.bgig-event:empty,
.bgig-misc:empty,
.bgig-ticket:empty,
.bgig-proj-prefix:empty {
  display: none;
}
/* ---- Cancelled Gigs ---- */
.bgig-gig-cancel {
  opacity: 0.5;
}
.bgig-gig-cancel .bgig-proj-name {
  text-decoration: line-through;
  color: #706858;
}
h2.bgig-cancel-txt {
  color: #c44;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 4px;
  margin: 0;
  background: rgba(204, 68, 68, 0.1);
}
/* ---- Ticket Link ---- */
.bgig-ticket-url {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #c8a45a;
  color: #1a1a1a;
  padding: 3px 8px;
  margin: 4px 8px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.bgig-ticket-url:hover {
  background: #ddb866;
}
/* ---- Loading placeholder — reduce layout flash ---- */
#bgig-shows {
  min-height: 600px;
}
/* ---- Hide detail fields by default ---- */
.bgig-date,
.bgig-misc,
.bgig-proj-desc {
  display: none;
}
/* ============================================
   GIG POPUP — shown when .bgig-active is added
   ============================================ */
.bgig-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
}
.bgig-gig.bgig-active {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  background: #242424;
  border: 1px solid #c8a45a;
  border-radius: 8px;
  flex: none;
  cursor: default;
  /* Descriptions stay left-aligned */
  /* Re-enable links in popup */
  /* Show hidden fields in popup */
  /* Always show image in popup (override calendar hide rule) */
}
.bgig-gig.bgig-active .bgig-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  color: #e8e0d4;
  border: none;
  font-size: 24px;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.bgig-gig.bgig-active .bgig-close:hover {
  background: #c8a45a;
  color: #1a1a1a;
}
.bgig-gig.bgig-active .bgig-info {
  padding: 0;
  text-align: center;
}
.bgig-gig.bgig-active .bgig-misc,
.bgig-gig.bgig-active .bgig-proj-desc {
  text-align: left;
}
.bgig-gig.bgig-active a {
  pointer-events: auto;
}
.bgig-gig.bgig-active .bgig-date {
  display: block;
  padding: 16px 8px;
  font-weight: 700;
  color: #c8a45a;
}
.bgig-gig.bgig-active .bgig-misc,
.bgig-gig.bgig-active .bgig-proj-desc {
  display: block;
  padding: 8px 8px;
  color: #a09888;
  line-height: 1.5;
}
.bgig-gig.bgig-active .bgig-proj-desc {
  font-style: italic;
}
.bgig-gig.bgig-active .bgig-pic {
  display: block !important;
}
.bgig-gig.bgig-active .bgig-pic img {
  width: 100%;
  aspect-ratio: 4 / 3;
  filter: saturate(1);
}
.bgig-gig.bgig-active .bgig-pic:empty {
  display: none !important;
}
.bgig-gig.bgig-active .bgig-time {
  padding: 8px 8px 4px;
}
.bgig-gig.bgig-active .bgig-proj {
  padding: 4px 8px 8px;
}
.bgig-gig.bgig-active .bgig-proj-name {
  font-size: 22px;
  min-height: auto;
}
.bgig-gig.bgig-active .bgig-proj-feat {
  display: block;
}
/* ============================================
   MOBILE — stacked list, one day per row
   ============================================ */
@media (max-width: 900px) {
  .bgig-cal-week {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bgig-cal-week-hdr {
    display: none;
  }
  .bgig-cal-month-hdr h2 {
    text-align: center;
  }
  .bgig-cal-day {
    border-radius: 6px;
    overflow: hidden;
    min-height: auto;
  }
  .cal-day-hdr {
    padding: 10px 12px;
  }
  /* Gigs become horizontal: thumbnail | text */
  .bgig-gig {
    flex: none;
    /* Force all children into column 2 by default */
  }
  .bgig-gig .bgig-info {
    display: grid;
    grid-template-columns: 80px 1fr;
  }
  .bgig-gig .bgig-info > * {
    grid-column: 2;
  }
  .bgig-gig .bgig-pic {
    grid-column: 1;
    grid-row: 1 / 20;
    /* span enough rows to cover all siblings */
    width: 80px;
    align-self: center;
  }
  .bgig-gig .bgig-pic a {
    display: block;
  }
  .bgig-gig .bgig-pic img {
    width: 80px;
    height: 80px;
    aspect-ratio: 1;
  }
  .bgig-gig .bgig-pic:empty {
    min-height: 80px;
    background: transparent;
  }
  .bgig-gig .bgig-time {
    padding: 6px 12px 2px;
    align-self: end;
  }
  .bgig-gig .bgig-proj {
    padding: 2px 12px 6px;
    align-self: start;
  }
  /* Mobile popup — reset mobile grid back to vertical stack */
  .bgig-gig.bgig-active .bgig-info {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }
  .bgig-gig.bgig-active .bgig-pic {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    align-self: auto;
  }
  .bgig-gig.bgig-active .bgig-pic img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .bgig-gig.bgig-active .bgig-info > * {
    grid-column: auto;
  }
  /* ---- Mobile List: Date header + alternating day colors ---- */
  /* Hide date on repeat gigs (server adds bgig-date-repeat class) */
  .bgig-date-repeat .bgig-date {
    display: none;
  }
  /* Space before each new day (except the first) */
  .bgig-date-new + .bgig-date-new,
  .bgig-date-repeat + .bgig-date-new {
    margin-top: 48px;
  }
  /* Style the date as a day header on first occurrence */
  .bgig-date-new .bgig-date {
    display: block;
    grid-column: 1 / -1;
    grid-row: 1;
    font-weight: 700;
    color: #c8a45a;
    padding: 10px 12px 4px;
    border-bottom: 1px solid #333;
    background: #2c2c2c;
  }
  /* Push image below the date header row */
  .bgig-date-new .bgig-pic {
    grid-row: 2 / 20;
  }
  /* Alternating day colors (server adds bgig-day-odd / bgig-day-even) */
  .bgig-day-odd {
    background: #1e1e1e;
  }
  .bgig-day-even {
    background: #242424;
  }
}
/*# sourceMappingURL=bgig-calendar.css.map */