/* ═══════════════════════════════════════════
   MV PORTAL — landing page (index.html)

   Load order:
     tokens.css → components.css → style.css

   Station-signage themed portfolio portal.
   Content comes from js/data.js + js/main.js.
   ═══════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}


/* HEADER —  entrance sign style */

.station-header {
  margin: 40px 0 12px;
  animation: fadeDown .5s ease both;
}

.station-header .top-bar {
  background: var(--red);
  color: #fff;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-header .top-bar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.station-name-board {
  background: var(--sign-white);
  border: 3px solid var(--fg);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.station-name-board .names {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.station-name-board h1 {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1.2;
  color: var(--fg);
}

.station-name-board .romaji {
  font-size: clamp(11px, 2vw, 13px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}

.station-number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}

.station-number .line-letter {
  font-size: 11px;
  letter-spacing: 1px;
}

.station-number .station-num {
  font-size: 22px;
}

.station-header .direction-bar {
  background: var(--sign-white);
  border: 2px solid var(--border);
  border-top: none;
  padding: 10px 24px;
  font-size: 12px;
  color: var(--fg-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.direction-bar .arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--fg);
}

.direction-bar .arrow svg {
  width: 14px;
  height: 14px;
}


/* SECTION LABEL — line indicator */

.section-label {
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeDown .5s ease .1s both;
}

.section-label .line-indicator {
  height: 24px;
  padding: 0 12px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.section-label .line-indicator svg {
  width: 12px;
  height: 12px;
}

.section-label .label-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-label .label-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* STATION STYLE LIST */

.station-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

a.station-card {
  display: grid;
  grid-template-columns: 44px 4px 1fr 44px;
  align-items: stretch;
  background: var(--sign-white);
  border: 2px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
  animation: fadeUp .4s ease both;
  min-height: 72px;
}

a.station-card:hover {
  border-color: var(--border-dark);
  background: var(--hover-bg);
}

.platform {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 2px solid var(--border);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--fg);
}

.line-bar {
  width: 4px;
  align-self: stretch;
}

.line-bar.red    { background: var(--red); }
.line-bar.blue   { background: var(--blue); }
.line-bar.green  { background: var(--green); }
.line-bar.orange { background: var(--orange); }
.line-bar.purple { background: var(--purple); }
.line-bar.teal   { background: var(--teal); }

.station-info {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
}

.station-info h2 {
  font-family: 'Noto Sans JP', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-info .description {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.station-info .meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.tech-tag {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: .3px;
}

.direction {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid var(--border);
  color: var(--muted);
  transition: color .15s;
}

.direction svg {
  width: 18px;
  height: 18px;
}

a.station-card:hover .direction {
  color: var(--fg);
}

/*  FACILITIES BAR  */

.facilities {
  margin-top: 28px;
  background: var(--sign-white);
  border: 2px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  animation: fadeUp .5s ease .4s both;
}

.facility a,
.facility button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  transition: color .15s;
}

.facility svg {
  width: 22px;
  height: 22px;
  color: var(--fg-secondary);
}

.facility span {
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
  text-transform: uppercase;
}

.facility a:hover svg,
.facility button:hover svg {
  color: var(--red);
}

.facility a:hover span,
.facility button:hover span {
  color: var(--red);
}

/* Theme toggle icon swap animation */
.theme-toggle .tt-icon {
  display: flex;
}

.theme-toggle.swap .tt-icon {
  animation: ttSpin .45s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes ttSpin {
  from {
    transform: rotate(-150deg) scale(.2);
    opacity: 0;
  }

  to {
    transform: none;
    opacity: 1;
  }
}

/* FOOTER */

.footer {
  margin: 28px 0 40px;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .5px;
  animation: fadeUp .5s ease .5s both;
}

.footer .line-sep {
  width: 40px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 12px;
  border-radius: 2px;
}

/* RESPONSIVE */

@media (max-width: 540px) {
  a.station-card {
    grid-template-columns: 36px 4px 1fr 36px;
    min-height: 64px;
  }

  .platform {
    font-size: 14px;
  }

  .station-info {
    padding: 10px 12px;
  }

  .station-info h2 {
    font-size: 14px;
  }

  .facilities {
    gap: 16px;
    padding: 12px 16px;
  }

  .facility svg {
    width: 18px;
    height: 18px;
  }

  .station-number {
    width: 44px;
    height: 44px;
  }

  .station-number .station-num {
    font-size: 18px;
  }

  .station-number .line-letter {
    font-size: 9px;
  }
}

/* ── SOCIABUZZ SUPPORT BUTTON — station sign plate ── */

#btnModal {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  background-color: var(--red) !important;
  color: #fff !important;
  border: 2px solid var(--fg) !important;
  border-radius: 0 !important;
  box-shadow: 0 0 0 4px var(--bg), 0 6px 16px rgba(0, 0, 0, 0.28);
  font-family: 'Noto Sans JP', 'Inter', sans-serif !important;
  font-size: 11px !important;
  font-weight: 900 !important;
  font-style: normal !important;
  line-height: 1.1 !important;
  letter-spacing: 3px;
  text-transform: uppercase;
  min-height: 46px !important;
  max-width: 200px;
  padding: 13px 18px !important;
  transition: filter .15s ease, transform .15s ease, box-shadow .15s ease;
}

#btnModal::before {
  content: '';
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23ffffff'%3E%3Cpath d='M160-340v-380q0-53 27.5-84.5t72.5-48 102.5-22T480-880q66 0 124.5 5.5t102 22 68.5 48 25 84.5v380q0 59-40.5 99.5T660-200l60 60v20h-80l-80-80H400l-80 80h-80v-20l60-60q-59 0-99.5-40.5T160-340m80-220h200v-120H240zm280 0h200v-120H520zM383-337q17-17 17-43t-17-43-43-17-43 17-17 43 17 43 43 17 43-17m280 0q17-17 17-43t-17-43-43-17-43 17-17 43 17 43 43 17 43-17'/%3E%3C/svg%3E") no-repeat center / contain;
}

#btnModal:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 0 0 4px var(--bg), 0 10px 22px rgba(0, 0, 0, 0.32);
}

#btnModal:active {
  transform: translateY(0);
  box-shadow: 0 0 0 4px var(--bg), 0 3px 8px rgba(0, 0, 0, 0.28);
}

#btnModal:focus-visible {
  outline: 2px dashed #fff;
  outline-offset: 3px;
}

#wrapperFloatingBtn .floating-btn {
  padding: 18px 20px;
}

@media (max-width: 540px) {
  #wrapperFloatingBtn .floating-btn {
    padding: 14px 16px;
  }

  #btnModal {
    min-height: 42px;
    padding: 11px 14px;
    letter-spacing: 2px;
  }

  #btnModal::before {
    width: 14px;
    height: 14px;
  }
}
