/*
 * NOWON Radio - Schedule page.
 *
 * TABLE OF CONTENTS
 *  1. Now and next
 *  2. Full week board
 *  3. My reminders
 *  4. Special events
 *  5. Media queries
 */

/* ==========================================================================
   1. Now and next
   ========================================================================== */
.now-clock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 14px;
}

.now-clock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.2s infinite;
}

.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 14px;
}

.now-card {
  --track: rgba(245, 237, 216, .12);
  --fill-colour: var(--acc);
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1.5px solid var(--line-soft);
  border-radius: 20px;
  background: #161513;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}

.now-card:hover {
  border-color: var(--acc);
  background: var(--surface-2);
}

.now-card.is-tuned {
  --track: rgba(18, 17, 16, .2);
  --fill-colour: var(--ink-dark);
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.now-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.now-card__station {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .2em;
}

.now-card__live {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
}

.now-card__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.now-card__show {
  margin-top: 18px;
  font-weight: 900;
  font-size: 28px;
  line-height: 1.05;
}

.now-card__host {
  margin-top: 4px;
  font-size: 13px;
  opacity: .75;
}

.now-card__track {
  height: 5px;
  margin-top: 16px;
  border-radius: 3px;
  background: var(--track);
}

.now-card__fill {
  display: block;
  width: var(--fill, 0%);
  height: 100%;
  border-radius: 3px;
  background: var(--fill-colour);
}

.now-card__range {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  opacity: .75;
}

.now-card__next {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--track);
  font-size: 13px;
}

.now-card__next-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  opacity: .7;
}

.now-card__next-show {
  display: block;
  margin-top: 3px;
}

.now-card__tune {
  height: 44px;
  margin-top: 16px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .1em;
}

.now-card.is-tuned .now-card__tune {
  background: var(--ink-dark);
  color: var(--acc);
}

/* ==========================================================================
   2. Full week board
   ========================================================================== */
.week-chips .chip--filter {
  height: 42px;
  font-weight: 800;
  letter-spacing: .1em;
}

.week-board {
  display: grid;
  grid-template-columns: 80px repeat(7, minmax(150px, 1fr));
  gap: 6px;
  min-width: 1150px;
}

.week-head {
  display: block;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .1em;
}

.week-head.is-today {
  background: var(--acc);
  color: var(--ink-dark);
}

.week-head__date {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  opacity: .75;
}

.week-time {
  padding-top: 12px;
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 12px;
}

.week-slot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 84px;
  border: 1.5px solid rgba(245, 237, 216, .06);
  border-radius: 12px;
  background: var(--surface-2);
  transition: background .25s ease, border-color .25s ease, min-height .25s ease;
}

.week-slot.is-past {
  background: var(--surface-1);
  color: var(--ink-60);
}

.week-slot.is-open {
  min-height: 170px;
  border-color: var(--acc);
  background: #24221f;
  color: var(--ink);
}

.week-slot.is-live {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink-dark);
}

.week-slot__open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  padding: 12px;
  text-align: left;
}

.week-slot__top {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-family: var(--mono);
  font-size: 10px;
}

.week-slot__bell {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--live);
  color: var(--surface-inset);
  font-weight: 700;
  font-size: 11px;
}

.week-slot__show {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.2;
}

.week-slot__host {
  margin-top: 2px;
  font-size: 11px;
}

.week-slot__text {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.week-slot__remind {
  margin: -2px 12px 12px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--acc);
  color: var(--ink-dark);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .1em;
}

.week-slot__remind[aria-pressed="true"] {
  background: var(--cream);
}

.week-slot [hidden] {
  display: none;
}

.week-note {
  margin-top: 14px;
  color: var(--ink-75);
  font-size: 12px;
}

/* ==========================================================================
   3. My reminders
   ========================================================================== */
.reminders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(30px, 4vw, 70px);
  align-items: start;
}

.reminders__lead {
  max-width: 480px;
}

.calendar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.calendar-btn {
  height: 50px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .1em;
  transition: background .25s ease, color .25s ease;
}

.calendar-btn[aria-pressed="true"] {
  background: var(--acc);
  color: var(--ink-dark);
}

.reminder-panel {
  padding: 28px;
  border: 1px solid color-mix(in srgb, var(--acc) 30%, transparent);
  border-radius: 22px;
  background: var(--surface-2);
}

.reminder-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.reminder-panel__count {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 12px;
}

.reminder-list {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}

.reminder {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto 30px;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}

.reminder__when {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  border-radius: 10px;
  background: var(--bg);
}

.reminder__day {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 10px;
}

.reminder__time {
  font-size: 18px;
}

.reminder__info {
  display: block;
}

.reminder__show {
  display: block;
  font-size: 16px;
}

.reminder__station {
  color: var(--ink-60);
  font-size: 12px;
}

.reminder__left {
  color: var(--acc);
  font-family: var(--mono);
  font-size: 12px;
}

.reminder__remove {
  height: 30px;
  color: var(--ink-60);
  font-size: 18px;
  transition: color .2s ease;
}

.reminder__remove:hover {
  color: var(--ink);
}

.reminder-panel__empty {
  padding: 36px 0;
  color: var(--ink-60);
  font-size: 15px;
  text-align: center;
}

/* ==========================================================================
   4. Special events
   ========================================================================== */
.next-event {
  text-align: right;
}

.next-event__label {
  color: var(--ink-60);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
}

.next-event__count {
  margin-top: 6px;
  color: var(--acc);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 48px;
}

.tickets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr));
  gap: 26px;
}

.ticket {
  --ticket: var(--acc);
  display: flex;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .5));
  transition: transform .35s cubic-bezier(.3, 1.3, .5, 1);
}

.ticket--paper { --ticket: #efe7d3; }
.ticket--mint { --ticket: #8fe3b6; }
.ticket--lilac { --ticket: #b8a4ff; }

.ticket:nth-child(1) { transform: rotate(-1deg); }
.ticket:nth-child(2) { transform: rotate(1deg); }
.ticket:nth-child(3) { transform: rotate(-.5deg); }
.ticket:nth-child(4) { transform: rotate(.8deg); }
.ticket:nth-child(5) { transform: rotate(-.8deg); }
.ticket:nth-child(6) { transform: rotate(.6deg); }

.ticket:hover,
.ticket:focus-within {
  transform: translateY(-8px);
}

.ticket__main {
  flex: 1;
  min-width: 0;
  padding: 26px 28px;
  border-radius: 16px 0 0 16px;
  background: var(--ticket);
  color: var(--ink-dark);
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 14px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 14px, #000 15px) bottom / 100% 51% no-repeat;
}

.ticket__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 11px;
}

.ticket__title {
  margin-top: 14px;
  font-weight: 900;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.ticket__text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.ticket__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 12px;
}

.ticket__fact-label {
  opacity: .75;
}

.ticket__fact {
  margin: 0;
  font-weight: 700;
}

.ticket__stub {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 218px;
  padding: 22px 18px;
  border-left: 2px dashed rgba(18, 17, 16, .4);
  border-radius: 0 16px 16px 0;
  background: var(--ticket);
  color: var(--ink-dark);
  transform-origin: 0 50%;
  transition: transform .5s cubic-bezier(.3, 1.3, .5, 1);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 14px, #000 15px) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 14px, #000 15px) bottom / 100% 51% no-repeat;
}

.ticket.is-got .ticket__stub {
  transform: translateX(24px) rotate(8deg);
}

.ticket__number {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
}

.ticket__day {
  font-weight: 900;
  font-size: 64px;
  line-height: .8;
}

.ticket__get {
  width: 100%;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--ink-dark);
  color: var(--acc);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: .1em;
}

/* ==========================================================================
   5. Media queries (widest first)
   ========================================================================== */
@media (max-width: 767.98px) {
  .now-card__live,
  .now-card__range,
  .now-card__next-label,
  .week-slot__top,
  .week-slot__host,
  .week-slot__remind,
  .reminder__day,
  .next-event__label,
  .ticket__top,
  .ticket__number,
  .ticket__get {
    font-size: 12px;
  }

  .now-card__next-label {
    letter-spacing: .1em;
  }

  .next-event {
    text-align: left;
  }

  .next-event__count {
    font-size: 36px;
  }

  .reminder-panel {
    padding: 18px;
  }

  .reminder {
    grid-template-columns: 60px minmax(0, 1fr) 30px;
    gap: 6px 12px;
  }

  .reminder__left {
    grid-column: 2;
    grid-row: 2;
  }

  .reminder__when {
    grid-row: span 2;
  }

  .reminder__remove {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .ticket,
  .ticket:nth-child(n) {
    flex-direction: column;
    transform: none;
  }

  .ticket__main {
    padding: 20px;
    border-radius: 16px 16px 0 0;
    -webkit-mask: none;
  }

  .ticket__title {
    font-size: 28px;
  }

  .ticket__stub {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    border-top: 2px dashed rgba(18, 17, 16, .4);
    border-left: 0;
    border-radius: 0 0 16px 16px;
    -webkit-mask: none;
  }

  .ticket__day {
    font-size: 44px;
  }

  .ticket__get {
    width: 100%;
  }

  .ticket.is-got .ticket__stub {
    transform: rotate(2deg);
  }
}

@media (max-width: 379.98px) {
  .next-event__count {
    font-size: 30px;
  }

  .calendar-btn {
    width: 100%;
  }
}
