/* =========================================================
   TEAM NOX CALENDAR
========================================================= */


/* =========================================================
   BASE
========================================================= */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: #050505;

  color: #f5f5f5;

  font-family: "Montserrat", sans-serif;
}


/* =========================================================
   MAIN PAGE
========================================================= */

.calendar-page {
  min-height: calc(100vh - 88px);

  position: relative;

  padding:
    42px
    3vw
    70px;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 255, 255, 0.05),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #060606 0%,
      #101010 50%,
      #070707 100%
    );

  border-bottom:
    1px solid
    #343434;
}


/* =========================================================
   TECHNICAL GRID
========================================================= */

.calendar-page::before {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.012) 1px,
      transparent 1px
    );

  background-size:
    75px
    75px;

  opacity: 0.4;

  pointer-events: none;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.calendar-page-heading {
  width: min(1320px, 100%);

  margin:
    0 auto
    32px;

  position: relative;

  z-index: 2;

  text-align: center;
}

.calendar-page-eyebrow {
  display: block;

  margin-bottom: 10px;

  color: #737373;

  font-size: 10px;

  font-weight: 400;

  letter-spacing: 4.5px;
}

.calendar-page-heading h1 {
  margin: 0;

  color: #f5f5f5;

  font-size:
    clamp(
      34px,
      3.8vw,
      52px
    );

  font-weight: 400;

  line-height: 1;

  letter-spacing: 8px;
}


/* =========================================================
   HEADING DIVIDER
========================================================= */

.calendar-heading-divider {
  width: min(430px, 65%);

  margin:
    20px
    auto
    0;

  display: grid;

  grid-template-columns:
    1fr
    18px
    1fr;

  align-items: center;

  gap: 12px;
}

.calendar-heading-divider span {
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.34)
    );
}

.calendar-heading-divider span:last-child {
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.34),
      transparent
    );
}

.calendar-heading-divider img {
  width: 18px;

  height: 18px;

  object-fit: contain;

  opacity: 0.68;

  filter: grayscale(1);
}


/* =========================================================
   CALENDAR SHELL
========================================================= */

.calendar-shell {
  width: min(1320px, 100%);

  margin: 0 auto;

  position: relative;

  z-index: 2;

  display: grid;

  grid-template-columns:
    minmax(0, 2.65fr)
    minmax(290px, 0.8fr);

  gap: 18px;

  align-items: stretch;
}


/* =========================================================
   PANELS
========================================================= */

.calendar-main,
.upcoming-panel {
  position: relative;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  background:
    linear-gradient(
      145deg,
      rgba(18, 18, 18, 0.97),
      rgba(7, 7, 7, 0.99)
    );

  box-shadow:
    0
    22px
    60px
    rgba(0, 0, 0, 0.3);
}


/* =========================================================
   CALENDAR TOOLBAR
========================================================= */

.calendar-toolbar {
  min-height: 82px;

  padding:
    0
    22px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 20px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.14);
}


/* =========================================================
   MONTH CONTROLS
========================================================= */

.month-controls {
  display: flex;

  align-items: center;

  gap: 16px;
}

.month-heading {
  min-width: 210px;
}

.month-label {
  display: block;

  margin-bottom: 7px;

  color: #707070;

  font-size: 8px;

  font-weight: 400;

  letter-spacing: 2.8px;
}

.month-heading h2 {
  margin: 0;

  color: #eeeeee;

  font-size:
    clamp(
      19px,
      1.8vw,
      25px
    );

  font-weight: 400;

  line-height: 1;

  letter-spacing: 4px;
}


/* =========================================================
   MONTH ARROWS
========================================================= */

.month-arrow {
  width: 36px;

  height: 36px;

  padding: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  background:
    rgba(255, 255, 255, 0.01);

  color: #a7a7a7;

  font-family: "Montserrat", sans-serif;

  font-size: 23px;

  font-weight: 300;

  line-height: 1;

  cursor: pointer;

  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.month-arrow:hover {
  border-color:
    rgba(255, 255, 255, 0.6);

  background: #f5f5f5;

  color: #050505;
}


/* =========================================================
   TODAY BUTTON
========================================================= */

.today-button {
  height: 35px;

  padding:
    0
    20px;

  border:
    1px solid
    rgba(255, 255, 255, 0.18);

  background: transparent;

  color: #969696;

  font-family: "Montserrat", sans-serif;

  font-size: 9px;

  font-weight: 500;

  letter-spacing: 2.7px;

  cursor: pointer;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.today-button:hover {
  background: #f5f5f5;

  color: #050505;

  border-color: #f5f5f5;
}


/* =========================================================
   WEEKDAYS
========================================================= */

.weekday-row {
  display: grid;

  grid-template-columns:
    repeat(7, 1fr);

  background:
    rgba(255, 255, 255, 0.01);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.13);
}

.weekday-row span {
  padding:
    11px
    6px;

  color: #9b9b9b;

  font-size: 9px;

  font-weight: 500;

  letter-spacing: 1.8px;

  text-align: center;
}


/* =========================================================
   CALENDAR GRID
========================================================= */

.calendar-grid {
  min-height: 540px;

  display: grid;

  grid-template-columns:
    repeat(
      7,
      minmax(0, 1fr)
    );

  grid-template-rows:
    repeat(
      6,
      90px
    );
}


/* =========================================================
   DAYS
========================================================= */

.calendar-day {
  min-width: 0;

  position: relative;

  padding: 8px;

  overflow: hidden;

  border-right:
    1px solid
    rgba(255, 255, 255, 0.08);

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.08);

  background:
    rgba(255, 255, 255, 0.004);

  transition:
    background 0.2s ease;
}

.calendar-day:nth-child(7n) {
  border-right: none;
}

.calendar-day:hover {
  background:
    rgba(255, 255, 255, 0.024);
}


/* =========================================================
   DAY NUMBERS
========================================================= */

.day-number {
  display: block;

  margin-bottom: 7px;

  color: #c4c4c4;

  font-size: 11px;

  font-weight: 500;
}

.calendar-day.other-month
.day-number {
  color: #494949;
}


/* =========================================================
   TODAY
========================================================= */

.calendar-day.today
.day-number {
  width: 27px;

  height: 27px;

  display: flex;

  align-items: center;

  justify-content: center;

  margin-top: -2px;

  border:
    1px solid
    rgba(255, 255, 255, 0.68);

  border-radius: 50%;

  color: #ffffff;

  font-size: 11px;
}


/* =========================================================
   EVENTS
========================================================= */

.calendar-event {
  width: 100%;

  margin-top: 4px;

  padding:
    6px
    7px;

  display: block;

  overflow: hidden;

  border:
    1px solid
    rgba(255, 255, 255, 0.15);

  border-left:
    2px solid
    rgba(255, 255, 255, 0.5);

  background:
    rgba(255, 255, 255, 0.03);

  color: #d4d4d4;

  font-family: "Montserrat", sans-serif;

  text-align: left;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.calendar-event:hover {
  transform:
    translateY(-2px);

  background:
    rgba(255, 255, 255, 0.07);

  border-color:
    rgba(255, 255, 255, 0.42);
}

.calendar-event-title {
  display: block;

  overflow: hidden;

  color: #e2e2e2;

  font-size: 9px;

  font-weight: 500;

  line-height: 1.35;

  white-space: nowrap;

  text-overflow: ellipsis;
}

.calendar-event-time {
  display: block;

  margin-top: 4px;

  color: #7d7d7d;

  font-size: 8px;
}


/* =========================================================
   EVENT TYPES
========================================================= */

.calendar-event.frc {
  border-left-color:
    rgba(255, 255, 255, 0.9);
}

.calendar-event.ftc {
  border-left-color:
    rgba(255, 255, 255, 0.67);
}

.calendar-event.outreach {
  border-left-color:
    rgba(255, 255, 255, 0.42);
}

.calendar-event.general {
  border-left-color:
    rgba(255, 255, 255, 0.22);
}


/* =========================================================
   FILTERS
========================================================= */

.calendar-filters {
  min-height: 68px;

  padding:
    14px
    20px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  border-top:
    1px solid
    rgba(255, 255, 255, 0.12);
}

.filter-title {
  color: #747474;

  font-size: 10px;

  font-weight: 400;

  letter-spacing: 3px;

  white-space: nowrap;
}

.filter-buttons {
  display: flex;

  flex-wrap: wrap;

  justify-content: flex-end;

  gap: 6px;
}

.calendar-filter {
  min-width: 72px;

  height: 31px;

  padding:
    0
    11px;

  border:
    1px solid
    rgba(255, 255, 255, 0.14);

  background: transparent;

  color: #8a8a8a;

  font-family: "Montserrat", sans-serif;

  font-size: 8px;

  font-weight: 500;

  letter-spacing: 1.9px;

  cursor: pointer;

  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.calendar-filter:hover,
.calendar-filter.active {
  color: #f5f5f5;

  border-color:
    rgba(255, 255, 255, 0.5);

  background:
    rgba(255, 255, 255, 0.035);
}


/* =========================================================
   UPCOMING PANEL
========================================================= */

.upcoming-panel {
  padding:
    24px
    22px;

  display: flex;

  flex-direction: column;
}

.upcoming-heading > span {
  display: block;

  margin-bottom: 9px;

  color: #727272;

  font-size: 8px;

  letter-spacing: 2.8px;
}

.upcoming-heading h2 {
  margin: 0;

  color: #f3f3f3;

  font-size:
    clamp(
      20px,
      1.7vw,
      26px
    );

  font-weight: 400;

  line-height: 1.2;

  letter-spacing: 4px;
}

.upcoming-divider {
  width: 100%;

  height: 1px;

  margin:
    20px
    0
    6px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.4),
      transparent
    );
}


/* =========================================================
   UPCOMING LIST
========================================================= */

.upcoming-list {
  flex: 1;
}


/* =========================================================
   UPCOMING EVENT
========================================================= */

.upcoming-item {
  padding:
    18px
    0;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    56px;

  gap: 13px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.08);

  cursor: pointer;

  transition:
    padding-left 0.2s ease,
    background 0.2s ease;
}

.upcoming-item:hover {
  padding-left: 6px;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.022),
      transparent
    );
}

.upcoming-category {
  display: block;

  margin-bottom: 7px;

  color: #757575;

  font-size: 8px;

  font-weight: 500;

  letter-spacing: 2px;
}

.upcoming-title {
  margin: 0;

  color: #e3e3e3;

  font-size: 12px;

  font-weight: 500;

  line-height: 1.45;
}

.upcoming-time,
.upcoming-location {
  display: block;

  margin-top: 6px;

  color: #838383;

  font-size: 9px;

  line-height: 1.5;
}


/* =========================================================
   UPCOMING DATE
========================================================= */

.upcoming-date {
  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  border-left:
    1px solid
    rgba(255, 255, 255, 0.1);

  text-align: center;
}

.upcoming-month {
  color: #777777;

  font-size: 8px;

  letter-spacing: 2px;
}

.upcoming-day {
  margin:
    5px
    0;

  color: #f0f0f0;

  font-size: 24px;

  font-weight: 300;
}

.upcoming-weekday {
  color: #737373;

  font-size: 8px;

  letter-spacing: 1.5px;
}


/* =========================================================
   GOOGLE CALENDAR SOURCE
========================================================= */

.calendar-source {
  margin-top: 22px;

  padding: 17px;

  border:
    1px solid
    rgba(255, 255, 255, 0.1);

  background:
    rgba(255, 255, 255, 0.012);
}

.calendar-source-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.source-label {
  color: #727272;

  font-size: 8px;

  font-weight: 400;

  letter-spacing: 2.2px;
}

.source-dot {
  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: #999999;

  box-shadow:
    0
    0
    8px
    rgba(255, 255, 255, 0.22);
}

.calendar-source p {
  margin:
    8px
    0
    10px;

  color: #c8c8c8;

  font-size: 10px;

  font-weight: 400;

  letter-spacing: 1.8px;
}

.source-status {
  color: #7d7d7d;

  font-size: 8px;

  font-weight: 400;

  letter-spacing: 1.8px;
}


/* =========================================================
   LOADING / EMPTY / ERROR
========================================================= */

.calendar-loading,
.calendar-empty {
  padding:
    28px
    4px;

  color: #707070;

  font-size: 9px;

  font-weight: 400;

  letter-spacing: 2.6px;
}

.calendar-grid > .calendar-loading {
  grid-column:
    1 / -1;

  grid-row:
    1 / -1;

  display: flex;

  align-items: center;

  justify-content: center;
}

.calendar-error {
  grid-column:
    1 / -1;

  grid-row:
    1 / -1;

  display: flex;

  align-items: center;

  justify-content: center;

  color: #707070;

  font-size: 9px;

  font-weight: 400;

  letter-spacing: 2.6px;

  text-align: center;
}


/* =========================================================
   MODAL
========================================================= */

.event-modal {
  position: fixed;

  inset: 0;

  z-index: 50000;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  visibility: hidden;

  pointer-events: none;

  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.event-modal.open {
  opacity: 1;

  visibility: visible;

  pointer-events: auto;
}


/* =========================================================
   MODAL BACKDROP
========================================================= */

.event-modal-backdrop {
  position: absolute;

  inset: 0;

  background:
    rgba(0, 0, 0, 0.82);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);
}


/* =========================================================
   MODAL CARD
========================================================= */

.event-modal-card {
  width: min(560px, 90%);

  position: relative;

  z-index: 2;

  padding:
    36px;

  border:
    1px solid
    rgba(255, 255, 255, 0.24);

  background:
    linear-gradient(
      145deg,
      #151515,
      #080808
    );

  box-shadow:
    0
    35px
    90px
    rgba(0, 0, 0, 0.65);
}


/* =========================================================
   CLOSE
========================================================= */

.event-modal-close {
  position: absolute;

  top: 12px;

  right: 16px;

  padding: 0;

  border: none;

  background: transparent;

  color: #868686;

  font-family: "Montserrat", sans-serif;

  font-size: 23px;

  font-weight: 300;

  cursor: pointer;
}


/* =========================================================
   MODAL CATEGORY
========================================================= */

.event-modal-category {
  display: block;

  margin-bottom: 10px;

  color: #707070;

  font-size: 8px;

  letter-spacing: 2.6px;
}


/* =========================================================
   MODAL TITLE
========================================================= */

.event-modal-card h2 {
  margin: 0;

  color: #f3f3f3;

  font-size:
    clamp(
      23px,
      2.6vw,
      34px
    );

  font-weight: 400;

  line-height: 1.1;

  letter-spacing: 4px;
}


/* =========================================================
   MODAL DIVIDER
========================================================= */

.event-modal-divider {
  width: 100%;

  height: 1px;

  margin:
    20px
    0;

  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.43),
      transparent
    );
}


/* =========================================================
   MODAL DETAILS
========================================================= */

.event-detail-row {
  padding:
    11px
    0;

  display: grid;

  grid-template-columns:
    100px
    1fr;

  gap: 18px;

  border-bottom:
    1px solid
    rgba(255, 255, 255, 0.07);
}

.event-detail-row span,
.event-description > span {
  color: #6d6d6d;

  font-size: 8px;

  letter-spacing: 1.8px;
}

.event-detail-row p {
  margin: 0;

  color: #c9c9c9;

  font-size: 11px;

  line-height: 1.5;
}


/* =========================================================
   MODAL DESCRIPTION
========================================================= */

.event-description {
  margin-top: 20px;
}

.event-description p {
  margin:
    10px
    0
    0;

  color: #a0a0a0;

  font-size: 11px;

  line-height: 1.7;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

  .calendar-shell {
    width: min(980px, 100%);

    grid-template-columns: 1fr;
  }

  .upcoming-list {
    display: grid;

    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      );

    column-gap: 22px;
  }

  .calendar-source {
    margin-top: 25px;
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px) {

  .calendar-page {
    min-height:
      calc(
        100svh - 90px
      );

    padding:
      38px
      16px
      60px;
  }

  .calendar-page-heading {
    margin-bottom: 30px;
  }

  .calendar-page-eyebrow {
    font-size: 9px;

    letter-spacing: 3.5px;
  }

  .calendar-page-heading h1 {
    font-size: 33px;

    letter-spacing: 5px;
  }

  .calendar-heading-divider {
    width: 82%;
  }

  .calendar-toolbar {
    min-height: 0;

    padding:
      16px;

    flex-direction: column;

    align-items: stretch;
  }

  .month-controls {
    justify-content: space-between;

    gap: 8px;
  }

  .month-heading {
    min-width: 0;

    flex: 1;

    text-align: center;
  }

  .today-button {
    width: 100%;
  }

  .weekday-row span {
    padding:
      10px
      2px;

    font-size: 8px;

    letter-spacing: 0.4px;
  }

  .calendar-grid {
    min-height: 468px;

    grid-template-rows:
      repeat(
        6,
        78px
      );
  }

  .calendar-day {
    padding: 5px;
  }

  .day-number {
    font-size: 10px;
  }

  .calendar-event {
    padding:
      4px
      5px;
  }

  .calendar-event-title {
    font-size: 8px;
  }

  .calendar-event-time {
    display: none;
  }

  .calendar-filters {
    flex-direction: column;

    align-items: flex-start;
  }

  .filter-title {
    font-size: 9px;
  }

  .filter-buttons {
    width: 100%;

    justify-content: flex-start;
  }

  .calendar-filter {
    flex: 1;

    min-width: 78px;

    font-size: 8px;
  }

  .upcoming-list {
    display: block;
  }

  .upcoming-heading h2 {
    font-size: 21px;
  }

  .upcoming-title {
    font-size: 12px;
  }

  .upcoming-time,
  .upcoming-location {
    font-size: 9px;
  }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

  .calendar-page-heading h1 {
    font-size: 28px;

    letter-spacing: 4px;
  }

  .month-heading h2 {
    font-size: 15px;

    letter-spacing: 1.8px;
  }

  .month-label {
    font-size: 7px;

    letter-spacing: 1.4px;
  }

  .month-arrow {
    width: 32px;

    height: 32px;

    font-size: 20px;
  }

  .calendar-grid {
    min-height: 396px;

    grid-template-rows:
      repeat(
        6,
        66px
      );
  }

  .day-number {
    font-size: 9px;
  }

  .calendar-event {
    padding: 3px;
  }

  .calendar-event-title {
    font-size: 7px;
  }

  .upcoming-title {
    font-size: 11px;
  }

  .upcoming-time,
  .upcoming-location {
    font-size: 8px;
  }

  .event-modal-card {
    width:
      calc(
        100% - 30px
      );

    padding:
      30px
      20px;
  }

  .event-detail-row {
    grid-template-columns: 1fr;

    gap: 5px;
  }

}