/*
 * 比赛日选择条：改编自 Uiverse.io 作品 “Upcoming Meetings”
 * https://uiverse.io/juyi_2230/hot-moth-33
 *
 * Copyright - 2026 juyi_2230 (Camille Ferros)
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
 * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
 * permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
 * the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
 * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 *
 * 改动：深蓝金色配色；卡片改为通栏；圆点并入每个日期格，日期变多时可横向滑动且保持对齐。
 */

.meeting-card {
  background-color: #102a43;
  border: 1px solid #28415b;
  border-radius: 1.6rem;
  padding: 1.1rem 1.5rem 1.2rem;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.meeting-card .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 0.4rem;
}

.meeting-card .title {
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1.2;
  color: #e8c77c;
}

.meeting-card .date-selector {
  background-color: #07142a;
  color: #e8eff8;
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  border: 1px solid #28415b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.meeting-card .date-selector:hover {
  background-color: #0c1e35;
  border-color: #e8c77c;
}

.meeting-card .date-selector span {
  font-size: 1rem;
  font-weight: 500;
}

.meeting-card .calls-info {
  display: flex;
  align-items: center;
  margin-bottom: 0.9rem;
  color: #9cb2cc;
}

.meeting-card .calls-info svg { color: #e8c77c; flex: none; }

.meeting-card .calls-info span {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.meeting-card .calls-info b { color: #e8eff8; font-weight: 600; }

.date-nav-and-indicators {
  position: relative;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #28415b transparent;
  background-color: #07142a;
  border-radius: 16px;
  padding: 20px 8px 12px;
}

.date-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  min-width: max-content;
}

/* 原作的 indicator-line：贯穿全部圆点的虚线 */
.date-nav-container .indicator-line {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 4px;
  border-top: 1.5px dashed #28415b;
  z-index: 1;
}

.day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  min-width: 64px;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
}

.day-number,
.day-name {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 48px;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.day-number {
  font-size: 1.2rem;
  font-weight: 600;
  height: 28px;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding-top: 5px;
  color: #e8eff8;
}

.day-name {
  font-size: 0.7rem;
  height: 20px;
  color: #9cb2cc;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.day-item:hover .day-number,
.day-item:hover .day-name {
  background-color: rgba(232, 199, 124, 0.1);
}

.day-active .day-number,
.day-active .day-name,
.day-item.day-active:hover .day-number,
.day-item.day-active:hover .day-name {
  background-color: #e8c77c;
  color: #10223a;
}

.day-item .indicator-dot {
  width: 8px;
  height: 8px;
  margin-top: 10px;
  border-radius: 50%;
  background-color: #28415b;
  position: relative;
  z-index: 2;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.day-item.day-active .indicator-dot {
  background-color: #e8c77c;
  box-shadow: 0 0 0 4px rgba(232, 199, 124, 0.2);
}

/* 月份分隔：每月第一个比赛日上方显示月份 */
.day-item .month-tag {
  position: absolute;
  top: -16px;
  line-height: 1;
  font-size: 0.6rem;
  color: #e8c77c;
  letter-spacing: 1px;
}

@media screen and (max-width: 480px) {
  .meeting-card {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .meeting-card .title {
    font-size: 1.2rem;
  }

  .meeting-card .date-selector {
    padding: 0.5rem 0.8rem;
  }

  .meeting-card .date-selector span {
    font-size: 0.9rem;
  }

  .day-item { min-width: 52px; }

  .day-number,
  .day-name {
    width: 40px;
  }

  .day-number {
    font-size: 1rem;
  }

  .day-name {
    font-size: 0.65rem;
  }

  .meeting-card .calls-info span {
    font-size: 0.8rem;
  }
}
