/* ========================================================
   Lava Venue Partner Site — shared base styles
   Three directions live inside .dir-a / .dir-b / .dir-c
   wrappers; their per-direction styles are scoped via those
   class prefixes.
   ======================================================== */

/* TC-first; HarmonyOS Sans TC matches the deck system. */
html, body {
  margin: 0;
  padding: 0;
  background: #ECEAE3;
  font-family: "HarmonyOS Sans TC", "Noto Sans TC", system-ui, sans-serif;
  color: #1A1B14;
  -webkit-font-smoothing: antialiased;
}

#root { min-height: 100vh; }

/* Reset for h tags inside our directions — colors_and_type.css makes
   them serif italic at the document level; we override to HarmonyOS. */
.lva-doc, .lva-doc * {
  font-family: "HarmonyOS Sans TC", "HarmonyOS Sans", "Noto Sans TC", system-ui, sans-serif;
  font-style: normal;
}
.lva-doc h1, .lva-doc h2, .lva-doc h3, .lva-doc h4, .lva-doc h5, .lva-doc h6, .lva-doc p {
  margin: 0;
  font-weight: 400;
}
.lva-doc a { color: inherit; text-decoration: none; }
.lva-doc button { font-family: inherit; }
.lva-doc img { display: block; max-width: 100%; }

/* CSS variables driven by the Tweaks panel.
   Default values mirror TWEAK_DEFAULTS in index.html. */
.lva-doc {
  --t-scale: 1.0;     /* type scale multiplier */
  --t-density: 1.0;   /* section padding multiplier */
  --t-radius: 16px;   /* card radius */
}

/* Common form controls used inside each direction. */
.lva-doc .lf-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lva-doc .lf-field label {
  font-size: calc(13px * var(--t-scale));
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--lf-label, rgba(26,27,20,0.62));
}
.lva-doc .lf-field .lf-req {
  color: #E84224;
  margin-left: 4px;
}
.lva-doc .lf-field input,
.lva-doc .lf-field select,
.lva-doc .lf-field textarea {
  font-family: inherit;
  font-size: calc(15px * var(--t-scale));
  padding: 14px 16px;
  border: 1px solid var(--lf-border, rgba(26,27,20,0.16));
  background: var(--lf-bg, #FFFFFF);
  color: var(--lf-fg, #1A1B14);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lva-doc .lf-field textarea {
  min-height: 96px;
  resize: vertical;
}
.lva-doc .lf-field input:focus,
.lva-doc .lf-field select:focus,
.lva-doc .lf-field textarea:focus {
  border-color: #E84224;
  box-shadow: 0 0 0 4px rgba(232,66,36,0.16);
}

/* Reusable button — matches the deck's pill CTA. */
.lva-doc .lf-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 30px;
  border-radius: 999px;
  border: none;
  background: #E84224;
  color: #FFF5DC;
  font-size: calc(16px * var(--t-scale));
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s, transform 0.08s;
}
.lva-doc .lf-cta:hover { background: #DB3517; }
.lva-doc .lf-cta:active { transform: scale(0.98); }
.lva-doc .lf-cta--ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.lva-doc .lf-cta--ghost:hover {
  background: rgba(0,0,0,0.04);
}

/* Eyebrow tag. */
.lva-doc .lf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: calc(12px * var(--t-scale));
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
}
.lva-doc .lf-eyebrow .lf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}

/* Tag chip. */
.lva-doc .lf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: calc(12px * var(--t-scale));
  letter-spacing: 0.04em;
  font-weight: 500;
  border: 1px solid currentColor;
}

/* Placeholder photo well (clearly labelled). */
.lva-doc .lf-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: rgba(26,27,20,0.08);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}
.lva-doc .lf-photo--mark::after {
  content: "PLACEHOLDER · 待提供真實照片";
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(0,0,0,0.7);
  color: #FFE6A9;
  padding: 5px 9px;
  border-radius: 4px;
  font-weight: 600;
}

/* Native form reset within our directions. */
.lva-doc input, .lva-doc select, .lva-doc textarea, .lva-doc button {
  font-family: inherit;
}

/* Tweaks-panel hint dot (visible when tweaks panel hidden) */
.lva-tweak-hint {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #292D1C;
  color: #FFE6A9;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
