/* Bytes2BitesAI mockups: shared tokens and base styles (v2, 2026-10-21).
   Dark only. Quiet neutrals, thin borders, one accent colour. */

:root {
  color-scheme: dark;

  --bg: #0b0c0b;
  --surface: #121413;
  --surface-raised: #181b19;
  --surface-hover: #1d211e;
  --border: #232725;
  --border-strong: #303532;

  --text: #ecedeb;
  --text-muted: #a3a8a4;
  --text-faint: #6f7571;

  /* Brand green, used sparingly: primary actions, focus, small accents. */
  --green: #39ff7a;
  --green-hover: #66ff98;
  --green-text: #5cf08f;
  --green-soft: rgba(57, 255, 122, 0.1);
  --on-green: #04140a;

  --amber: #f2c14e;
  --amber-soft: rgba(242, 193, 78, 0.12);
  --red: #ff7b6b;
  --red-soft: rgba(255, 123, 107, 0.12);
  --blue: #7cb4ff;
  --blue-soft: rgba(124, 180, 255, 0.12);

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: Menlo, "SF Mono", Monaco, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  --control-height: 44px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  /* No rubber-band at the edges: it exposed blank space above the photos. */
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  /* No body background: the page colour comes from <html>, so fixed photo
     layers with a negative z-index stay visible. */
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
  font-feature-settings: "cv11", "ss01";
}

/* `hidden` always wins over component display rules. */
[hidden] { display: none !important; }

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

a { color: var(--green-text); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Food photo layer. The page picks the photo with data-photo on <body>;
   ?photo=1..4 in the URL overrides it. */
.food-photo {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
body[data-photo="1"] .food-photo { background-image: url("assets/foodbackdrop1.jpg"); }
body[data-photo="2"] .food-photo { background-image: url("assets/foodbackdrop2.jpg"); }
body[data-photo="3"] .food-photo { background-image: url("assets/foodbackdrop3.jpg"); }
body[data-photo="4"] .food-photo { background-image: url("assets/foodbackdrop4.jpg"); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--control-height);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1 var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary { background: var(--green); color: var(--on-green); }
.btn-primary:hover { background: var(--green-hover); }
.btn-primary:disabled {
  background: var(--surface-raised);
  color: var(--text-faint);
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--surface-raised);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover { background: var(--surface-hover); }

.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { background: var(--surface-raised); color: var(--text); }

.btn-danger {
  background: transparent;
  border-color: rgba(255, 123, 107, 0.4);
  color: var(--red);
}
.btn-danger:hover { background: var(--red-soft); }

.btn-sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }

/* Inputs */
.input {
  width: 100%;
  height: var(--control-height);
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: 400 15px var(--font-sans);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--text-faint); }
.input:hover { border-color: #3d433f; }
.input:focus-visible {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 255, 122, 0.15);
}

/* Small status badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-raised);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge.green { background: var(--green-soft); color: var(--green-text); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }

/* Mockup-only notice */
.mock-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}
.mock-toast.show { opacity: 1; transform: translate(-50%, 0); }
