/* ==========================================================
   MDC Workshop — Frontend CSS
   Premium design matching MarryDanCake brand
   ========================================================== */

/* ---- CSS Variables ---- */
:root {
  --mdc-gold:       #c9874f;
  --mdc-brown:      #7b3f00;
  --mdc-blush:      #fde8ec;
  --mdc-cream:      #fff8f0;
  --mdc-dark:       #1a1a1a;
  --mdc-text:       #4a3728;
  --mdc-muted:      #8a7570;
  --mdc-border:     #f0d8c8;
  --mdc-success:    #27ae60;
  --mdc-danger:     #e74c3c;
  --mdc-warning:    #f39c12;
  --mdc-shadow-sm:  0 2px 8px rgba(123,63,0,.08);
  --mdc-shadow-md:  0 8px 30px rgba(123,63,0,.12);
  --mdc-shadow-lg:  0 20px 60px rgba(123,63,0,.18);
  --mdc-radius-sm:  8px;
  --mdc-radius-md:  16px;
  --mdc-radius-lg:  24px;
  --mdc-transition: all .28s cubic-bezier(.4,0,.2,1);
}

/* ============================================================
   WORKSHOP LISTING SECTION
   ============================================================ */

.mdc-workshops-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #fdf5f0 0%, #fff 40%, #fdf5f0 100%);
}

.mdc-workshops-section .mdc-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.mdc-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--mdc-blush), #fdf0e8);
  color: var(--mdc-gold);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--mdc-border);
  margin-bottom: 18px;
}

.mdc-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: var(--mdc-brown);
  line-height: 1.15;
  margin: 0 0 16px;
}

.mdc-section-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--mdc-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---- Workshop Grid ---- */
.mdc-workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Workshop Card ---- */
.mdc-workshop-card {
  background: #fff;
  border-radius: var(--mdc-radius-lg);
  overflow: hidden;
  box-shadow: var(--mdc-shadow-sm);
  border: 1px solid var(--mdc-border);
  transition: var(--mdc-transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.mdc-workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--mdc-shadow-lg);
  border-color: var(--mdc-gold);
}

/* --- Card Image --- */
.mdc-workshop-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--mdc-blush), var(--mdc-cream));
}

.mdc-workshop-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.mdc-workshop-card:hover .mdc-workshop-card__image img {
  transform: scale(1.06);
}

.mdc-workshop-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: linear-gradient(135deg, #fde8ec 0%, #fff8f0 100%);
}

/* --- Status Badge --- */
.mdc-workshop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mdc-badge-upcoming {
  background: rgba(255,255,255,.92);
  color: var(--mdc-gold);
  border: 1.5px solid var(--mdc-gold);
}

.mdc-badge-sold-out {
  background: rgba(231,76,60,.92);
  color: #fff;
}

.mdc-badge-cancelled {
  background: rgba(108,117,125,.85);
  color: #fff;
}

.mdc-badge-completed {
  background: rgba(39,174,96,.85);
  color: #fff;
}

/* --- Difficulty Badge --- */
.mdc-difficulty-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.85);
  color: var(--mdc-brown);
  border: 1px solid rgba(201,135,79,.3);
}

/* --- Card Body --- */
.mdc-workshop-card__body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mdc-workshop-card__date-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.mdc-workshop-card__date-block {
  background: var(--mdc-cream);
  border: 1.5px solid var(--mdc-border);
  border-radius: var(--mdc-radius-sm);
  width: 52px;
  min-width: 52px;
  height: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mdc-workshop-card__date-block .day {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--mdc-brown);
  line-height: 1;
}

.mdc-workshop-card__date-block .month {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mdc-gold);
}

.mdc-workshop-card__meta-info {
  flex: 1;
}

.mdc-workshop-card__time {
  font-size: 13px;
  color: var(--mdc-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 3px;
}

.mdc-workshop-card__venue {
  font-size: 13px;
  color: var(--mdc-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* --- Card Title --- */
.mdc-workshop-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--mdc-brown);
  margin: 0 0 10px;
  line-height: 1.3;
}

.mdc-workshop-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}

.mdc-workshop-card__title a:hover {
  color: var(--mdc-gold);
}

.mdc-workshop-card__excerpt {
  font-size: 14px;
  color: var(--mdc-muted);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}

/* --- Spots Indicator --- */
.mdc-spots-bar {
  margin-bottom: 16px;
}

.mdc-spots-bar__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.mdc-spots-bar__text {
  font-size: 12px;
  color: var(--mdc-muted);
}

.mdc-spots-bar__count {
  font-size: 12px;
  font-weight: 700;
  color: var(--mdc-text);
}

.mdc-spots-bar__track {
  height: 5px;
  background: #f0e0d8;
  border-radius: 50px;
  overflow: hidden;
}

.mdc-spots-bar__fill {
  height: 100%;
  border-radius: 50px;
  transition: width .5s ease;
}

.mdc-spots-bar__fill--low    { background: var(--mdc-danger); }
.mdc-spots-bar__fill--medium { background: var(--mdc-warning); }
.mdc-spots-bar__fill--good   { background: var(--mdc-success); }

/* --- Card Footer (price + CTA) --- */
.mdc-workshop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 24px;
  background: var(--mdc-cream);
  border-top: 1px solid var(--mdc-border);
}

.mdc-workshop-card__price {
  display: flex;
  flex-direction: column;
}

.mdc-workshop-card__price .price-per {
  font-size: 10px;
  color: var(--mdc-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mdc-workshop-card__price .price-amount {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--mdc-brown);
  line-height: 1;
}

.mdc-workshop-card__price .price-amount span {
  font-size: 13px;
  font-weight: 600;
  color: var(--mdc-muted);
  vertical-align: super;
}

/* --- Buttons --- */
.mdc-btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--mdc-gold), var(--mdc-brown));
  color: #fff !important;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--mdc-transition);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(201,135,79,.35);
}

.mdc-btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,135,79,.45);
  filter: brightness(1.05);
}

.mdc-btn-sold-out {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0e0d8;
  color: var(--mdc-danger) !important;
  font-size: 13px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 50px;
  border: 2px solid var(--mdc-danger);
  cursor: not-allowed;
  opacity: .8;
}

.mdc-btn-cancelled,
.mdc-btn-completed {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  color: var(--mdc-muted);
  background: #f0e8e0;
  border: 1.5px solid #ddd;
}

/* ============================================================
   SINGLE WORKSHOP PAGE TEMPLATE
   ============================================================ */

.mdc-workshop-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* --- Hero --- */
.mdc-workshop-hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 var(--mdc-radius-lg) var(--mdc-radius-lg);
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 48px;
}

.mdc-workshop-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mdc-workshop-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30,10,0,.85) 0%, rgba(30,10,0,.3) 60%, transparent 100%);
}

.mdc-workshop-hero__content {
  position: relative;
  z-index: 2;
  padding: 48px 56px;
  max-width: 760px;
}

.mdc-workshop-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(201,135,79,.9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.mdc-workshop-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

.mdc-workshop-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
}

.mdc-workshop-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --- Layout --- */
.mdc-workshop-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

/* --- Content Column --- */
.mdc-workshop-content {
  min-width: 0;
}

.mdc-workshop-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--mdc-brown);
  margin: 36px 0 16px;
  padding-top: 36px;
  border-top: 1px solid var(--mdc-border);
}

.mdc-workshop-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.mdc-workshop-content p {
  font-size: 16px;
  color: var(--mdc-text);
  line-height: 1.75;
}

/* --- Includes List --- */
.mdc-includes-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.mdc-includes-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mdc-text);
  background: var(--mdc-cream);
  padding: 10px 14px;
  border-radius: var(--mdc-radius-sm);
  border: 1px solid var(--mdc-border);
}

.mdc-includes-list li .mdc-check {
  color: var(--mdc-success);
  font-size: 16px;
  flex-shrink: 0;
}

/* --- Instructor Section --- */
.mdc-instructor-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #fff;
  border: 1.5px solid var(--mdc-border);
  border-radius: var(--mdc-radius-md);
  padding: 24px;
  margin-top: 8px;
}

.mdc-instructor-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--mdc-border);
  flex-shrink: 0;
  background: var(--mdc-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.mdc-instructor-card__info .name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--mdc-brown);
  margin: 0 0 2px;
}

.mdc-instructor-card__info .role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--mdc-gold);
  margin: 0 0 10px;
}

.mdc-instructor-card__info .bio {
  font-size: 14px;
  color: var(--mdc-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   BOOKING SIDEBAR (Sticky Card)
   ============================================================ */

.mdc-booking-sidebar {
  position: sticky;
  top: 100px;
}

.mdc-booking-card {
  background: #fff;
  border: 2px solid var(--mdc-border);
  border-radius: var(--mdc-radius-lg);
  overflow: hidden;
  box-shadow: var(--mdc-shadow-md);
}

.mdc-booking-card__header {
  background: linear-gradient(135deg, var(--mdc-brown), var(--mdc-gold));
  padding: 24px;
  text-align: center;
}

.mdc-booking-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.mdc-booking-card__price-label {
  font-size: 12px;
  color: rgba(255,255,255,.75);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mdc-booking-card__body {
  padding: 24px;
}

.mdc-booking-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mdc-border);
}

.mdc-booking-detail:last-of-type {
  border-bottom: none;
}

.mdc-booking-detail__icon {
  font-size: 18px;
  min-width: 26px;
  text-align: center;
  margin-top: 1px;
}

.mdc-booking-detail__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--mdc-muted);
  margin-bottom: 2px;
}

.mdc-booking-detail__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--mdc-text);
  line-height: 1.4;
}

/* Spots indicator on booking card */
.mdc-booking-spots {
  margin: 18px 0;
}

.mdc-booking-spots__bar {
  height: 8px;
  background: #f0e0d8;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}

.mdc-booking-spots__fill {
  height: 100%;
  border-radius: 50px;
  transition: width .6s ease;
}

.mdc-booking-spots__text {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

.mdc-spots-urgent { color: var(--mdc-danger); }
.mdc-spots-warning { color: var(--mdc-warning); }
.mdc-spots-good { color: var(--mdc-success); }

/* Quantity Stepper */
.mdc-qty-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--mdc-border);
  border-radius: var(--mdc-radius-sm);
  overflow: hidden;
  margin: 16px 0;
}

.mdc-qty-stepper button {
  background: var(--mdc-cream);
  border: none;
  width: 44px;
  height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: var(--mdc-gold);
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdc-qty-stepper button:hover {
  background: var(--mdc-blush);
}

.mdc-qty-stepper input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--mdc-brown);
  height: 44px;
  outline: none;
  background: #fff;
  min-width: 0;
}

/* Book button on sidebar */
.mdc-btn-book-large {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--mdc-gold), var(--mdc-brown));
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  text-decoration: none !important;
  padding: 18px 24px;
  border-radius: var(--mdc-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--mdc-transition);
  margin-bottom: 12px;
  box-shadow: 0 6px 24px rgba(201,135,79,.4);
}

.mdc-btn-book-large:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(201,135,79,.5);
}

.mdc-booking-trust {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.mdc-booking-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--mdc-muted);
}

/* ============================================================
   COUNTDOWN TIMER
   ============================================================ */

.mdc-countdown {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 20px 0;
}

.mdc-countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(135deg, var(--mdc-brown), #a0633a);
  border-radius: var(--mdc-radius-sm);
  padding: 12px 16px;
  min-width: 64px;
}

.mdc-cd-num {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.mdc-cd-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */

.mdc-workshops-empty {
  text-align: center;
  padding: 80px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.mdc-workshops-empty__icon {
  font-size: 72px;
  margin-bottom: 20px;
}

.mdc-workshops-empty__title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--mdc-brown);
  margin: 0 0 12px;
}

.mdc-workshops-empty__text {
  font-size: 15px;
  color: var(--mdc-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes mdc-fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mdc-workshop-card {
  animation: mdc-fadeInUp .4s ease both;
}

.mdc-workshop-card:nth-child(1) { animation-delay: 0ms; }
.mdc-workshop-card:nth-child(2) { animation-delay: 80ms; }
.mdc-workshop-card:nth-child(3) { animation-delay: 160ms; }
.mdc-workshop-card:nth-child(4) { animation-delay: 240ms; }
.mdc-workshop-card:nth-child(5) { animation-delay: 320ms; }
.mdc-workshop-card:nth-child(6) { animation-delay: 400ms; }

@keyframes mdc-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(1.4); }
}

.mdc-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mdc-success);
  animation: mdc-pulse-dot 1.5s ease infinite;
}

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

@media (max-width: 900px) {
  .mdc-workshop-layout {
    grid-template-columns: 1fr;
  }
  .mdc-booking-sidebar {
    position: static;
    order: -1;
  }
  .mdc-workshop-hero__content {
    padding: 32px 24px;
  }
}

@media (max-width: 640px) {
  .mdc-workshops-grid {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .mdc-workshops-section {
    padding: 56px 0;
  }
  .mdc-workshop-hero {
    min-height: 340px;
  }
  .mdc-countdown {
    gap: 8px;
  }
  .mdc-countdown-unit {
    min-width: 52px;
    padding: 10px 12px;
  }
  .mdc-cd-num {
    font-size: 22px;
  }
}
