/* ================================================
   Guest Hub — component styles
   Builds on css/style.css (shared site theme).
   Only hub-specific pieces live here.
   ================================================ */

/* Alias hub tokens to the shared site theme (defined in style.css). */
:root {
  --gh-black: var(--color-black);
  --gh-rich-black: var(--color-rich-black);
  --gh-gold: var(--color-gold);
  --gh-gold-light: var(--color-gold-light);
  --gh-white: var(--color-white);
  --gh-cream: #FAF8F4;
  --gh-charcoal: #444;
  --gh-muted: #8a8a8a;
  --gh-border: rgba(201, 168, 76, 0.3);
  --gh-font-heading: var(--font-heading);
  --gh-font-body: var(--font-body);
  --gh-font-script: var(--font-script);
  --gh-transition: var(--transition);
}

/* ----- Layout: sit below the fixed nav, push footer down ----- */
.gh-main {
  min-height: calc(100vh - var(--nav-height));
  max-width: 640px;
  margin: 0 auto;
  padding: calc(var(--nav-height) + 1.5rem) 1.25rem 3rem;
}

.gh-back {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

/* ----- View container ----- */
.gh-view {
  text-align: center;
}

/* ----- Typography ----- */
.gh-script { font-family: var(--gh-font-script); font-size: 1.6rem; color: var(--gh-gold); margin-bottom: 4px; }
.gh-view h1 { font-family: var(--gh-font-heading); font-weight: 700; font-size: 1.7rem; margin: 6px 0 8px; }
.gh-view h1.gh-big { font-size: 3rem; color: var(--gh-gold); margin: 14px 0; }
.gh-hello { color: var(--gh-charcoal); font-size: 1.05rem; margin: 0; }
.gh-sub { color: var(--gh-charcoal); margin: 6px auto 22px; max-width: 420px; line-height: 1.6; }
.gh-muted { color: var(--gh-muted); margin: 12px 0; }

/* ----- Hub menu ----- */
.gh-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 22px 0;
}
.gh-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gh-white);
  border: 1px solid var(--gh-border);
  border-radius: 16px;
  padding: 26px 12px;
  color: var(--gh-black);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform var(--gh-transition), box-shadow var(--gh-transition);
}
.gh-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.gh-tile-icon { font-size: 1.9rem; line-height: 1; }
.gh-tile-label { font-size: 0.95rem; font-weight: 400; }

/* ----- Forms & buttons ----- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 7px 0;
  background: var(--gh-white);
}
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gh-gold); border-color: transparent; }

.gh-btn {
  display: inline-block;
  cursor: pointer;
  margin: 10px 4px;
  padding: 13px 26px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--gh-font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1.5px solid var(--gh-gold);
  border-radius: 6px;
  background: var(--gh-gold);
  color: var(--gh-rich-black);
  transition: all var(--gh-transition);
}
.gh-btn:hover, .gh-btn:focus-visible { background: transparent; color: var(--gh-gold); }
.gh-btn--ghost { background: transparent; color: var(--gh-gold); }
.gh-btn--ghost:hover { background: var(--gh-gold); color: var(--gh-rich-black); }
.gh-link { display: inline-block; margin-top: 16px; text-decoration: underline; }

/* ----- Seating cards ----- */
.gh-results { margin-top: 16px; text-align: left; }
.gh-card {
  background: var(--gh-white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 16px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.gh-card .gh-name { font-size: 1.05rem; margin-bottom: 8px; }
.gh-badge {
  display: inline-block;
  background: var(--gh-gold);
  color: var(--gh-rich-black);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}
.gh-badge--muted { background: #eee; color: var(--gh-muted); font-weight: 400; }

/* ----- Timeline (schedule) ----- */
.gh-timeline { text-align: left; margin: 18px 0; }
.gh-tl { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid #eee; }
.gh-tl:last-child { border-bottom: none; }
.gh-tl-time { min-width: 78px; color: var(--gh-gold); font-weight: 700; }
.gh-tl-title { font-size: 1.02rem; }
.gh-tl-desc { color: var(--gh-muted); font-size: 0.9rem; }

/* ----- Notice / info ----- */
.gh-notice {
  background: #fff8ec;
  border: 1px solid var(--gh-gold);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  text-align: left;
  line-height: 1.55;
}
.gh-info { text-align: left; color: var(--gh-charcoal); margin: 16px 0; }
.gh-info p { margin: 6px 0; }

/* ----- Gallery / previews ----- */
.gh-gallery, .gh-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  margin: 18px 0;
}
.gh-gallery img, .gh-previews img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

/* ----- Guest book wall ----- */
.gh-wall { margin: 22px 0; text-align: left; }
.gh-note {
  background: var(--gh-white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.gh-note-msg { font-style: italic; color: #2a2a2a; font-weight: 400; line-height: 1.65; }
.gh-note-from { color: var(--gh-gold); margin-top: 6px; font-size: 0.9rem; font-weight: 700; }

/* ----- Guest book pagination ----- */
.gh-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 4px;
}
.gh-btn--sm {
  margin: 0;
  padding: 8px 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.gh-btn--sm:disabled {
  opacity: 0.4;
  cursor: default;
  background: var(--gh-gold);
  color: var(--gh-rich-black);
}
.gh-page-info {
  font-size: 0.85rem;
  color: #666;
  min-width: 96px;
  text-align: center;
}

/* ----- Status text ----- */
.gh-status { min-height: 22px; color: var(--gh-charcoal); margin: 10px 0; font-size: 0.95rem; }

/* ----- Demo banner ----- */
.gh-demo {
  background: #2a2a2a;
  color: var(--gh-gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 8px 14px;
}
