/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BACKGROUND */
body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #fff;
  background:
    linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.85)),
    url("background.png") center / cover no-repeat;
}

/* APP */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

/* TITLE */
h1 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  text-align: center;
}

/* =========================
   MOBILE-FIRST CALENDAR
========================= */
.calendar {
  width: 100%;
  max-width: 420px;

  background: rgba(10,10,10,0.95);
  padding: 20px;
  border-radius: 18px;

  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* DAY */
.day {
  aspect-ratio: 1 / 1;
  font-size: 1.6rem;
  font-weight: bold;

  background: linear-gradient(145deg, #7b1e1e, #4c0f0f);
  border: 2px solid #e0c097;
  border-radius: 14px;
  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   DESKTOP (MATCHES IMAGE ✅)
========================= */
@media (min-width: 900px) {

  h1 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .calendar {
    max-width: 460px;

    grid-template-columns: repeat(5, 1fr);
    gap: 18px;

    padding: 26px;
  }

  .day {
    aspect-ratio: 1 / 1;
    font-size: 1.4rem;
  }
}

/* =========================
   MODAL – 9:16 VIDEO
========================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 999;

  align-items: center;
  justify-content: center;
}

.modal-box {
  width: 90%;
  max-width: 420px;
  background: #000;
  border-radius: 18px;
  padding: 12px;
}

.close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  float: right;
}

.video-wrapper {
  width: 100%;
  aspect-ratio: 9 / 16;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}
.day.locked {
  background: #2a2a2a;
  border: 2px solid #444;
  color: #888;
  cursor: not-allowed;
  opacity: 0.6;
}

/* disabled buttons (accessibility + safety) */
.day:disabled {
  pointer-events: none;
}