/*
  Flight Tracker – Japanese Zen-inspired mock-up
  Palette: raw cedar, stone gray, rice-paper cream, quiet moss, matte black
  Philosophies observed: ma (negative space), wabi-sabi, shakkei, asymmetrical balance
*/

:root {
  --cedar: #6b4c3d;
  --stone: #828282;
  --rice: #f6f5f3;
  --moss: #66735a;
  --ink: #222222;
  --panel-bg: rgba(255, 255, 255, 0.68); /* shoji translucency */
  --radius: 12px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: "Noto Sans JP", "Noto Sans", sans-serif;
  background: var(--rice);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* —————————— Top navigation —————————— */
.top-bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2.2rem;
  background: transparent;               /* let background breathe */
  backdrop-filter: blur(6px);            /* sliding shoji screen effect */
  z-index: 100;
}

.logo {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.login-button {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 0.45rem 1.4rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.login-button:hover {
  background: var(--ink);
  color: var(--rice);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* —————————— Flight board wrapper —————————— */
.board-wrapper {
  display: flex;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  min-height: calc(100vh - 96px); /* viewport minus header/footer */
}

.board {
  width: 100%;
  max-width: 980px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem; /* ma spacing between rows */
}

/* —————————— Flight rows —————————— */
.flight-row {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--panel-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 240ms cubic-bezier(.25,.46,.45,.94), box-shadow 240ms ease;
}
.flight-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.06);
}

/* Departure / Arrival blocks */
.col.time {
  display: flex;
  flex-direction: column;
  min-width: 115px;
}
.col.time .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--stone);
}
.col.time .value {
  font-size: 1.05rem;
  font-weight: 500;
}

/* Arrow column */
.col.arrow {
  font-size: 1.5rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

/* Summary column */
.col.summary {
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.45;
}

/* Responsive / small screens */
@media (max-width: 640px) {
  .flight-row {
    grid-template-columns: 1fr 24px 1fr;
    grid-template-areas:
      "dep arrow arr"
      "sum sum sum";
  }
  .col.time:first-child { grid-area: dep; }
  .col.arrow { grid-area: arrow; }
  .col.time:nth-of-type(2) { grid-area: arr; }
  .col.summary { grid-area: sum; margin-top: 0.75rem; }
}

/* —————————— Footer —————————— */
.footer {
  text-align: center;
  padding: 1.5rem 0 2rem;
  font-size: 0.8rem;
  color: var(--stone);
}