/* ODAA Events Manager — schedule UI (from 04-schedule.html) */

.odaa-life-schedule {
  --odaa-black: #000000;
  --odaa-text: #1a1a1a;
  --odaa-muted: #666666;
  --odaa-meta: #1a1a1a;
  --odaa-line: #e8e8e8;
  --odaa-white: #ffffff;
  --odaa-content: 1440px;
  --font: "Gilroy-Medium", "Gilroy", sans-serif;
  --font-semi: "Gilroy-SemiBold", "Gilroy", sans-serif;
  --font-bold: "Gilroy-Bold", "Gilroy", sans-serif;
  --cat-intro: #9b6ee8;
  --cat-master: #ef4d94;
  --cat-lecture: #f5c842;
  --cat-wow: #3ecf6e;
  --cat-fest: #4a90e8;
  --toggle-bg: #ececec;
  --toggle-active: #1a1a1a;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  font-family: var(--font) !important;
  color: var(--odaa-text);
  background: var(--odaa-gray-bg);
  box-sizing: border-box;
  padding: clamp(40px, 6vw, 64px) 24px;
}

.odaa-life-schedule *, .odaa-life-schedule *::before, .odaa-life-schedule *::after { box-sizing: border-box; font-family: inherit; }
.odaa-life-schedule__inner { max-width: var(--odaa-content); margin: 0 auto; padding: 0; }
.odaa-life-schedule__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; }
.odaa-life-schedule__title { margin: 0; font-family: var(--font-bold) !important; font-size: clamp(2rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--odaa-black) !important; }
.odaa-life-schedule__toggle { display: inline-flex; padding: 5px; background: var(--toggle-bg); border-radius: 999px; flex-shrink: 0; }
.odaa-life-schedule__toggle-btn { padding: 10px 20px; border: none; border-radius: 999px; font-family: var(--font-semi) !important; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: var(--odaa-text) !important; transition: background 0.2s ease, color 0.2s ease; }
.odaa-life-schedule__toggle-btn.is-active { background: var(--toggle-active); color: #fff !important; }
.odaa-life-schedule__legend { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; }
.odaa-life-schedule__legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--odaa-muted) !important; }
.odaa-life-schedule__legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.odaa-life-schedule__panel { display: none; }
.odaa-life-schedule__panel.is-active { display: block; }
.odaa-life-schedule__panel[data-panel="calendar"] { background: var(--odaa-white); border-radius: 24px; padding: 28px 32px 8px; }
.odaa-life-schedule__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.odaa-life-schedule__row { display: grid; grid-template-columns: 140px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: 14px 36px 14px 14px; background: var(--odaa-white); border-radius: 24px; }
.odaa-life-schedule__media-box { position: relative; overflow: hidden; flex-shrink: 0; min-height: 130px; width: 140px; border-radius: 16px; background: #ede4fb; }
.odaa-life-schedule__body { min-width: 0; }
.odaa-life-schedule__media-box[data-cat="intro"] { background: #ede4fb; }
.odaa-life-schedule__media-box[data-cat="master"] { background: #fde8f2; }
.odaa-life-schedule__media-box[data-cat="lecture"] { background: #fef3d4; }
.odaa-life-schedule__media-box[data-cat="wow"] { background: #dff8ea; }
.odaa-life-schedule__media-box[data-cat="fest"] { background: #e3effc; }
.odaa-life-schedule__media-box img, .odaa-life-schedule__media-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.odaa-life-schedule__date-box { display: flex; align-items: center; justify-content: center; min-height: 130px; width: 140px; padding: 14px 12px; border-radius: 16px; font-family: var(--font-semi) !important; font-size: 14px; font-weight: 600; line-height: 1.3; text-align: center; color: var(--odaa-black) !important; }
.odaa-life-schedule__slot-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.odaa-life-schedule__slot-pill { display: inline-flex; align-items: center; padding: 4px 10px; border: 1px solid var(--odaa-black); border-radius: 999px; font-family: var(--font-semi) !important; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--odaa-black) !important; white-space: nowrap; }
.odaa-life-schedule__date-box[data-cat="intro"] { background: #ede4fb; }
.odaa-life-schedule__date-box[data-cat="master"] { background: #fde8f2; }
.odaa-life-schedule__date-box[data-cat="lecture"] { background: #fef3d4; }
.odaa-life-schedule__date-box[data-cat="wow"] { background: #dff8ea; }
.odaa-life-schedule__date-box[data-cat="fest"] { background: #e3effc; }
.odaa-life-schedule__row-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.odaa-life-schedule__row-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.odaa-life-schedule__row-dot[data-cat="intro"] { background: var(--cat-intro); }
.odaa-life-schedule__row-dot[data-cat="master"] { background: var(--cat-master); }
.odaa-life-schedule__row-dot[data-cat="lecture"] { background: var(--cat-lecture); }
.odaa-life-schedule__row-dot[data-cat="wow"] { background: var(--cat-wow); }
.odaa-life-schedule__row-dot[data-cat="fest"] { background: var(--cat-fest); }
.odaa-life-schedule__row-title { margin: 0; font-family: var(--font-bold) !important; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--odaa-black) !important; }
.odaa-life-schedule__row-desc { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; color: var(--odaa-muted) !important; max-width: 680px; }
.odaa-life-schedule__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 0; font-family: var(--font-semi) !important; font-size: 14px; font-weight: 600; color: var(--odaa-meta) !important; }
.odaa-life-schedule__meta-row { display: flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.5; }
.odaa-life-schedule__meta-icon { width: 16px; height: 16px; flex-shrink: 0; color: var(--odaa-black); }
.odaa-life-schedule__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 10px; }
.odaa-life-schedule__details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--odaa-black);
  border-radius: 999px;
  background: var(--odaa-white);
  color: var(--odaa-black) !important;
  font-family: var(--font-semi) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.odaa-life-schedule__details-btn:hover { background: #f5f5f5; }
.odaa-life-schedule__register-btn { margin-top: 0; padding: 10px 18px; border: none; border-radius: 999px; background: var(--odaa-black); color: #fff !important; font-family: var(--font-semi) !important; font-size: 14px; font-weight: 600; cursor: pointer; }
.odaa-life-schedule__register-btn:disabled { background: #ccc; cursor: not-allowed; }
.odaa-life-schedule__cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-top: 8px; }
.odaa-life-schedule__cal-month { margin: 0; font-family: var(--font-bold) !important; font-size: 1.25rem; color: var(--odaa-black) !important; text-transform: capitalize; }
.odaa-life-schedule__cal-nav { display: flex; gap: 8px; }
.odaa-life-schedule__cal-nav-btn { width: 36px; height: 36px; border: 1px solid var(--odaa-line); border-radius: 10px; background: var(--odaa-white); cursor: pointer; font-size: 18px; }
.odaa-life-schedule__cal-weekdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.odaa-life-schedule__cal-weekday { text-align: center; font-size: 12px; font-weight: 600; color: var(--odaa-muted) !important; padding: 8px 0; text-transform: lowercase; min-width: 0; }
.odaa-life-schedule__cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding-bottom: 16px; }
.odaa-life-schedule__cal-cell { min-height: 96px; min-width: 0; padding: 6px 4px; border-radius: 12px; border: 1px solid transparent; background: #fafafa; overflow: hidden; }
.odaa-life-schedule__cal-cell.is-other { opacity: 0.35; background: transparent; }
.odaa-life-schedule__cal-cell.is-today { border-color: var(--odaa-black); background: #fff; }
.odaa-life-schedule__cal-day { display: block; font-size: 13px; font-weight: 600; color: var(--odaa-black) !important; margin-bottom: 4px; line-height: 1; }
.odaa-life-schedule__cal-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.odaa-life-schedule__cal-event {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 30px;
  padding: 2px 5px;
  border: none;
  border-radius: 5px;
  font-family: var(--font-semi) !important;
  text-align: left !important;
  cursor: pointer;
  overflow: hidden;
  color: var(--odaa-text) !important;
  background: #e3effc;
}
.odaa-life-schedule__cal-event[data-cat="intro"] { background: #ede4fb; }
.odaa-life-schedule__cal-event[data-cat="master"] { background: #fde8f2; }
.odaa-life-schedule__cal-event[data-cat="lecture"] { background: #fef3d4; }
.odaa-life-schedule__cal-event[data-cat="wow"] { background: #dff8ea; }
.odaa-life-schedule__cal-event[data-cat="fest"] { background: #e3effc; }
.odaa-life-schedule__cal-event-time,
.odaa-life-schedule__cal-event-title {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: left !important;
  direction: ltr;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.odaa-life-schedule__cal-event-time {
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
}
.odaa-life-schedule__cal-event-title {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
}
.odaa-life-schedule__cal-popover {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.odaa-life-schedule__cal-popover[hidden] { display: none !important; }
.odaa-life-schedule__cal-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.odaa-life-schedule__cal-popover-dialog {
  position: relative;
  width: min(320px, 100%);
  padding: 20px;
  background: var(--odaa-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
.odaa-life-schedule__cal-popover-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #f2f2f2;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.odaa-life-schedule__cal-popover-datetime {
  margin: 0 28px 8px 0;
  font-family: var(--font-semi) !important;
  font-size: 13px;
  font-weight: 600;
  color: var(--odaa-muted) !important;
}
.odaa-life-schedule__cal-popover-title {
  margin: 0 0 16px;
  font-family: var(--font-bold) !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--odaa-black) !important;
}
.odaa-life-schedule__cal-popover-register {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 999px;
  background: var(--odaa-black);
  color: #fff !important;
  font-family: var(--font-semi) !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.odaa-life-schedule__cal-event-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; display: none; }
.odaa-life-schedule__cal-event-dot[data-cat="intro"] { background: var(--cat-intro); }
.odaa-life-schedule__cal-event-dot[data-cat="master"] { background: var(--cat-master); }
.odaa-life-schedule__cal-event-dot[data-cat="lecture"] { background: var(--cat-lecture); }
.odaa-life-schedule__cal-event-dot[data-cat="wow"] { background: var(--cat-wow); }
.odaa-life-schedule__cal-event-dot[data-cat="fest"] { background: var(--cat-fest); }
.odaa-life-schedule__empty { padding: 24px; text-align: center; color: var(--odaa-muted); background: var(--odaa-white); border-radius: 24px; }

@media (max-width: 960px) {
  .odaa-life-schedule { padding: 32px 16px; }

  .odaa-life-schedule__row {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "pills"
      "title"
      "desc"
      "location"
      "action";
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
  }

  .odaa-life-schedule__body { display: contents; }

  .odaa-life-schedule__media-box,
  .odaa-life-schedule__date-box {
    grid-area: media;
    width: 100%;
    max-width: none;
    min-height: 180px;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .odaa-life-schedule__slot-pills {
    grid-area: pills;
    margin-bottom: 0;
    gap: 8px;
  }

  .odaa-life-schedule__row-head {
    grid-area: title;
    margin-bottom: 0;
  }

  .odaa-life-schedule__row-desc {
    grid-area: desc;
    padding-left: 0;
    max-width: none;
  }

  .odaa-life-schedule__meta {
    display: contents;
    font-size: 13px;
  }

  .odaa-life-schedule__meta-row {
    grid-area: location;
    white-space: normal;
  }

  .odaa-life-schedule__actions {
    grid-area: action;
    width: 100%;
    margin-top: 4px;
    justify-content: stretch;
  }

  .odaa-life-schedule__actions .odaa-life-schedule__details-btn,
  .odaa-life-schedule__actions .odaa-life-schedule__register-btn {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .odaa-life-schedule__register-btn {
    padding: 12px 18px;
  }

  .odaa-life-schedule__panel[data-panel="calendar"] {
    padding: 16px 10px 8px;
    border-radius: 20px;
    overflow: hidden;
    max-width: 100%;
  }

  .odaa-life-schedule__cal-head { margin-bottom: 12px; }

  .odaa-life-schedule__cal-weekdays,
  .odaa-life-schedule__cal-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
  }

  .odaa-life-schedule__cal-weekday {
    font-size: 10px;
    padding: 4px 0;
  }

  .odaa-life-schedule__cal-cell {
    min-height: 78px;
    padding: 3px 2px;
    border-radius: 8px;
  }

  .odaa-life-schedule__cal-day {
    font-size: 11px;
    margin-bottom: 2px;
  }

  .odaa-life-schedule__cal-events { gap: 2px; }

  .odaa-life-schedule__cal-event {
    height: 26px;
    padding: 2px 3px;
    border-radius: 4px;
  }

  .odaa-life-schedule__cal-event-time { font-size: 9px; }
  .odaa-life-schedule__cal-event-title { font-size: 9px; }
}

@media (max-width: 480px) {
  .odaa-life-schedule__media-box,
  .odaa-life-schedule__date-box {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .odaa-life-schedule__slot-pill {
    font-size: 11px;
    padding: 4px 8px;
  }

  .odaa-life-schedule__row-title { font-size: 17px; }
}
