/* ===================================================================
   Austin386 — menu page only
   Menu cabinet drawers — Steelmaster label-holder system
   Depends on tokens defined in styles.css (:root custom properties,
   --font-mono, --transition, --green/--yellow, etc.) Load this file
   AFTER styles.css in the menu page's <head>.

   Single shared cabinet face for every #menuGrid destination.
   status: "filed"   -> flat outline pill (Cookbook)
   status: "planned" -> yellow "Coming Soon" pill (Photos, Docs)
   status: "online"  -> mint pill (Ferry Tracker)
   status: null      -> no badge rendered
   =================================================================== */

#menuGrid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Room-row titles are <h2> elements inside .room-row, but they must
   NOT inherit the generic `section h2::before` mint tick defined in
   styles.css. This explicit override kills it regardless of selector
   order/specificity quirks in the cascade. */
.room-row-title::before {
  content: none;
  display: none;
}

.room-row {
  --drawer-face: #1a2420;
  --drawer-top: #2e3d36;
  --drawer-bottom: #050807;
  --drawer-edge: #0b100e;
  --chrome-dark: #3c4740;
  --chrome-mid: #8a9a92;
  --chrome-light: #d7e0db;

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr) 32px;
  grid-template-areas:
    "icon body pull"
    "icon badge pull";
  align-items: center;
  gap: 0.7rem 0.6rem;
  min-height: 8.6rem;
  overflow: hidden;
  padding: 0.85rem 1.1rem 0.85rem 0.8rem;

  color: var(--text);
  /*
    Ribs now run left-right (horizontal bands), tight at 2-3px per
    rib. Fat top-edge highlight is a separate gradient layer stacked
    above the rib pattern, not baked into each rib -- reads as one
    continuous bright edge along the whole drawer top, like light
    catching a raised lip.
  */
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.22) 0px,
      rgba(255, 255, 255, 0.10) 2px,
      transparent 6px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.07) 0px,
      rgba(255, 255, 255, 0.07) 0.5px,
      rgba(0, 0, 0, 0.28) 0.5px,
      rgba(0, 0, 0, 0.16) 1.6px,
      rgba(0, 0, 0, 0.04) 2.3px,
      transparent 3px
    ),
    var(--drawer-face);
  border-top: 1px solid var(--drawer-top);
  border-right: 1px solid #111915;
  border-bottom: 1px solid var(--drawer-bottom);
  border-left: 1px solid #111915;
  border-radius: 0.55rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -2px 0 rgba(0, 0, 0, 0.58),
    0 3px 0 rgba(0, 0, 0, 0.42),
    0 9px 22px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transform: translateX(0);
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    filter var(--transition);
}

.room-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}

/*
  Steelmaster label window: flat, thin lip -- not a soft bevel.
  3px metal border + 1px dark inner line, 8px radius max.
  The card image sits flush inside with no extra padding glow.
*/
.room-row-icon {
  grid-area: icon;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  border-radius: 8px;
  border: 3px solid #b8c2bc;
  box-shadow:
    inset 0 0 0 1px #3a4540,
    0 1px 0 rgba(0, 0, 0, 0.5);
  background: #0b0f0d;
  overflow: hidden;
}

.room-row-icon-well {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.room-row-icon-well img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.room-row-icon-well img[data-focus="top"] {
  object-position: center top;
}

.room-row-icon-well img[data-focus="bottom"] {
  object-position: center bottom;
}

.room-row-body {
  grid-area: body;
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.85rem;
}

.room-row-title {
  margin: 0;
  color: #edf4ef;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 1.05rem + 3.4vw, 2.7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-shadow: 1px 2px 0 rgba(0, 0, 0, 0.74);
}

.room-row-desc {
  margin: 0.3rem 0 0;
  overflow: hidden;
  color: #c3ccc6;
  font-family: "Special Elite", var(--font-mono);
  font-weight: 500;
  font-size: clamp(0.85rem, 0.65rem + 1.6vw, 1.4rem);
  line-height: 1.15;
  letter-spacing: 0.015em;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-row .badge {
  grid-area: badge;
  justify-self: start;
  position: relative;
  z-index: 1;
  margin-left: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.badge.filed {
  color: #cdb896;
  background: transparent;
  border: 1px solid rgba(205, 184, 150, 0.45);
}

.badge.planned {
  color: var(--yellow);
  background: rgba(237, 220, 78, 0.10);
  border: 1px solid rgba(237, 220, 78, 0.30);
}

.badge.online {
  color: var(--green);
  background: rgba(61, 220, 132, 0.10);
  border: 1px solid rgba(61, 220, 132, 0.30);
}

/*
  Bar pull: a separate brushed-metal piece, not a chevron/hamburger.
  Inset within its own 32px column so the ribbed drawer-face
  background is visible on both sides of it.
*/
.room-row-pull {
  grid-area: pull;
  justify-self: center;
  align-self: center;
  width: 9px;
  height: 70%;
  border-radius: 3px;
  background: linear-gradient(180deg, #dfe6e2 0%, #c9d0cc 20%, #8b9690 52%, #c9d0cc 82%, #dfe6e2 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    1px 0 0 rgba(0, 0, 0, 0.4),
    -1px 0 0 rgba(255, 255, 255, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition), box-shadow var(--transition);
}

.room-row:hover .room-row-pull,
.room-row:focus-visible .room-row-pull {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    1px 0 0 rgba(61, 220, 132, 0.5),
    -1px 0 0 rgba(255, 255, 255, 0.1),
    0 0 8px rgba(61, 220, 132, 0.35),
    0 1px 3px rgba(0, 0, 0, 0.5);
}

.room-row:active .room-row-pull {
  transform: translateX(1px) scaleX(0.88);
}

.room-row:hover,
.room-row:focus-visible {
  border-top-color: #4b675b;
  border-right-color: rgba(61, 220, 132, 0.62);
  border-bottom-color: #050807;
  transform: translateX(3px);
  box-shadow:
    inset -2px 0 0 rgba(61, 220, 132, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 0 rgba(0, 0, 0, 0.63),
    0 3px 0 rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(61, 220, 132, 0.18),
    0 0 15px rgba(61, 220, 132, 0.2),
    0 10px 24px rgba(0, 0, 0, 0.42);
}

.room-row:active {
  transform: translateX(1px) translateY(1px);
  box-shadow:
    inset -2px 0 0 rgba(61, 220, 132, 0.95),
    inset 0 3px 8px rgba(0, 0, 0, 0.52),
    0 1px 0 rgba(0, 0, 0, 0.5),
    0 0 13px rgba(61, 220, 132, 0.2);
}

.room-row:focus-visible {
  outline: 2px solid #3ddc84;
  outline-offset: 3px;
}

@media (min-width: 700px) {
  .room-row {
    grid-template-columns: 14.5rem minmax(0, 1fr) 32px;
    gap: 1.15rem 0.9rem;
    min-height: 11.25rem;
    padding: 1.1rem 1.4rem 1.1rem 1.2rem;
  }

  .room-row-icon {
    width: 14.5rem;
  }

  .room-row-body {
    padding-left: 1.15rem;
    position: relative;
  }

  .room-row-title {
    font-size: clamp(2rem, 1.5rem + 1.4vw, 2.9rem);
  }

  .room-row-desc {
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.3rem);
  }

  .room-row .badge {
    margin-left: 1.15rem;
    font-size: 0.7rem;
    padding: 0.25rem 0.7rem;
  }

  .room-row-pull {
    width: 10px;
  }

  .room-row-body::before {
    content: "";
    position: absolute;
    top: calc(50% - 2rem);
    left: 0.3rem;
    width: 4px;
    height: 4px;
    border: 1px solid #050807;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #d5ddd8 0 12%, #68756e 22%, #202925 60%, #050807 100%);
    box-shadow:
      0 4rem 0 -1px #050807,
      0 4rem 0 0 #68756e,
      0 0 2px rgba(0, 0, 0, 0.8),
      0 4rem 2px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 420px) {
  .room-row {
    grid-template-columns: 6.6rem minmax(0, 1fr) 28px;
    gap: 0.6rem 0.5rem;
    padding: 0.85rem 0.9rem 0.85rem 0.8rem;
  }

  .room-row-icon {
    width: 6.6rem;
  }

  .room-row-body {
    padding-left: 0.7rem;
  }

  .room-row-title {
    font-size: 1.75rem;
  }

  .room-row-desc {
    font-size: 1rem;
  }

  .room-row .badge {
    margin-left: 0.7rem;
    font-size: 0.62rem;
    padding: 0.2rem 0.5rem;
  }

  .room-row-pull {
    width: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .room-row,
  .room-row-pull {
    transition: none;
  }

  .room-row:hover,
  .room-row:focus-visible,
  .room-row:active {
    transform: none;
  }

  .room-row:active .room-row-pull {
    transform: none;
  }
}
