/*----------------------------------------------------------------
   Gym Class Booking System — Dark Theme
-----------------------------------------------------------------*/

/*---------------------------------------------
  1) Base Resets and Fonts
----------------------------------------------*/
html,
body {
  margin: 0;
  padding: 0;
  background-color: #111; /* near‐black background */
  color: #f0f0f0; /* off‐white text */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

a {
  color: #e30b17; /* bright "gym‐red" accent */
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/*---------------------------------------------
  2) Main Container Styles
----------------------------------------------*/
.gcb-weekly-calendar-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
}

/*---------------------------------------------
  3) Calendar Header (Week Navigation + Label)
----------------------------------------------*/
.gcb-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.gcb-nav-btn {
  background-color: #2e2e2e; /* charcoal gray button */
  color: #f0f0f0;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  flex: 1;
  white-space: nowrap;
  text-align: center;
  min-width: 150px;
}

.gcb-nav-btn:hover:not(:disabled) {
  background-color: #444;
  transform: translateY(-1px);
}

.gcb-nav-btn:disabled {
  background-color: #222;
  cursor: not-allowed;
  opacity: 0.5;
}

#gcb-current-week-label {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  flex: 2;
}

/*---------------------------------------------
  4) Single‐Week Calendar Styling
----------------------------------------------*/
.gcb-calendar-week {
  margin-bottom: 30px;
}

.gcb-week-label {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.gcb-week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background-color: #333;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
}

/* Day‐of‐week header (Mon 1, Tue 2, …) */
.gcb-day-header {
  background-color: #1a1a1a;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  border-bottom: 2px solid #333;
}

/* Time‐slot cell */
.gcb-time-slot-cell {
  background-color: #1a1a1a;
  padding: 12px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
}

/* Status Indicators */
.gcb-no-classes,
.gcb-past-slot,
.gcb-soldout-slot {
  text-align: center;
  padding: 15px;
  font-size: 14px;
  border-radius: 4px;
  margin: auto;
}

.gcb-no-classes {
  color: #888;
  background-color: #222;
}

.gcb-past-slot {
  color: #666;
  background-color: #222;
}

.gcb-soldout-slot {
  color: #e30b17;
  background-color: #2a1a1a;
  font-weight: bold;
}

/* Book Link */
.gcb-book-link {
  display: flex;
  flex-direction: column;
  background-color: #2e2e2e;
  color: #f0f0f0;
  text-align: center;
  padding: 15px;
  border-radius: 4px;
  height: 100%;
  transition: all 0.2s ease;
}

.gcb-book-link:hover {
  background-color: #444;
  transform: translateY(-1px);
}

.gcb-slot-time {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 5px;
}

.gcb-slot-duration {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
}

.gcb-book-btn {
  display: inline-block;
  background-color: #e30b17;
  color: #fff;
  padding: 8px 24px;
  font-size: 16px;
  border-radius: 50px;
  margin-top: auto;
  transition: all 0.2s ease;
}

.gcb-book-link:hover .gcb-book-btn {
  background-color: #ff1f1f;
}

/* Current day highlighting */
.gcb-day-header.current-day,
.gcb-time-slot-cell.current-day {
  background-color: #2a2a2a;
  border-color: #e30b17;
}

/*---------------------------------------------
  5) Booking Banner Above Add‐to‐Cart
----------------------------------------------*/
.gcb-booking-banner {
  background-color: #1f1f1f;
  border-left: 4px solid #e30b17;
  padding: 12px;
  margin-bottom: 20px;
  color: #f0f0f0;
}
.gcb-booking-banner p {
  margin-bottom: 0;
}

/*---------------------------------------------
  6) Order Meta on "Order Received" / Admin
----------------------------------------------*/
.gcb-order-meta {
  background-color: #1f1f1f;
  border-left: 3px solid #e30b17;
  padding: 8px;
  margin-top: 10px;
  color: #f0f0f0;
  font-size: 13px;
}

/*---------------------------------------------
  7) Optional: Use Your Provided "Header" Image
----------------------------------------------*/
/* 
   If you want to show the given image (e.g. as a page header above the calendar),
   drop it into assets/images/header.png and uncomment below:

.gcb-weekly-calendar-container {
    background-image: url('../images/header.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 120px; // to make room for the header
}
*/

/*---------------------------------------------
  8) Mobile Responsive Styles
----------------------------------------------*/
@media screen and (max-width: 768px) {
  .gcb-weekly-calendar-container {
    padding: 0 10px;
  }

  .gcb-calendar-header {
    flex-direction: column;
  }

  .gcb-nav-btn {
    width: 100%;
    min-width: unset;
  }

  #gcb-current-week-label {
    order: -1;
    margin-bottom: 10px;
  }

  .gcb-week-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    background-color: transparent;
    border: none;
  }

  /* Hide all days except the current one */
  .gcb-day-header,
  .gcb-time-slot-cell {
    display: none;
    border-radius: 4px;
    border: 1px solid #333;
  }

  /* Show only the current day */
  .gcb-day-header.current-day,
  .gcb-time-slot-cell.current-day {
    display: flex;
  }

  .gcb-day-header.current-day {
    background-color: #2a2a2a;
    color: #fff;
    font-size: 18px;
    padding: 15px;
  }

  .gcb-time-slot-cell.current-day {
    min-height: 100px;
  }

  .gcb-book-link {
    padding: 20px;
  }

  .gcb-slot-time {
    font-size: 20px;
  }

  .gcb-slot-duration {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .gcb-book-btn {
    padding: 12px 30px;
    font-size: 18px;
  }
}
