/* ── Hamburger button ───────────────────────────────────────────────────── */

#menu-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  transition: transform 0.2s ease;
}

#menu-btn:hover { transform: scale(1.1); }

.menu-bar {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-header);
  transition: background 0.2s;
}

/* Red dot indicator for non-active season */
#menu-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4444;
  border: 1.5px solid var(--bg-header);
  display: none;
}

#menu-dot.visible { display: block; }

/* ── Backdrop ───────────────────────────────────────────────────────────── */
#menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#menu-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ─────────────────────────────────────────────────────────────── */
#menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}

#menu-drawer.open {
  transform: translateX(0);
}

/* ── Drawer header ──────────────────────────────────────────────────────── */
#menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#menu-header-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

#menu-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s, color 0.15s;
}

#menu-close:hover {
  background: var(--bg-pill-hover);
  color: var(--text-primary);
}

/* ── Drawer body ────────────────────────────────────────────────────────── */
#menu-body {
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

#menu-body::-webkit-scrollbar { width: 4px; }
#menu-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── Sections ───────────────────────────────────────────────────────────── */
.menu-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.menu-section-label {
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}



















/* ── Season dropdown ────────────────────────────────────────────────────── */
.season-dropdown-wrapper {
  position: relative;
}

.season-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-pill);
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.season-dropdown-trigger:hover {
  background: var(--bg-pill-hover);
}

.season-dropdown-trigger.past-season {
  border-color: #ff4444;
}

.season-trigger-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.season-trigger-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-trigger-dot.active  { background: #00c853; }
.season-trigger-dot.past    { background: #ff4444; }
.season-trigger-dot.hidden  { display: none; }

.season-trigger-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.season-trigger-badge {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 2px;
}

.season-dropdown-arrow {
  font-size: 0.7rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.season-dropdown-wrapper.open .season-dropdown-arrow {
  transform: rotate(180deg);
}

/* ── Dropdown list ──────────────────────────────────────────────────────── */
.season-dropdown-list {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  z-index: 100;
  overflow: hidden;
}

.season-dropdown-wrapper.open .season-dropdown-list {
  display: block;
}

.season-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.15s;
  border-bottom: 1px solid var(--border);
}

.season-option:last-child { border-bottom: none; }

.season-option:hover {
  background: var(--bg-pill-hover);
}

.season-option.selected {
  color: var(--accent);
}

.season-option-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.season-option-dot.active { background: #00c853; }
.season-option-dot.hidden { display: none; }

.season-option-badge {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: auto;
}

.season-option-selected-mark {
  font-size: 0.7rem;
  color: var(--accent);
  margin-left: auto;
}












/* Past season banner on map */
#past-season-banner {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(255,68,68,0.15);
  border: 1px solid rgba(255,68,68,0.4);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.68rem;
  font-weight: 600;
  color: #ff6b6b;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  display: none;
}

#past-season-banner.visible { display: block; }

/* ── Menu links ─────────────────────────────────────────────────────────── */
.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s;
  cursor: pointer;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  width: 100%;
  text-align: left;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-link:last-child { border-bottom: none; }

.menu-link:hover { color: var(--accent); }

.menu-link-arrow {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Install button */
.menu-install-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  background: rgba(197,83,43,0.08);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  transition: background 0.15s;
}

.menu-install-btn:hover {
  background: rgba(197,83,43,0.15);
}

.menu-install-icon { font-size: 1.1rem; }

/* ── App identity footer ────────────────────────────────────────────────── */
#menu-identity {
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  flex-shrink: 0;
}

#menu-identity img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

#menu-identity-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

#menu-identity-sub {
  font-size: 0.62rem;
  font-style: italic;
  color: var(--text-secondary);
}

#menu-identity-copy {
  font-size: 0.58rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #menu-drawer {
    width: 100%;
    border-left: none;
  }
}