/* ═══════════════════════════════════════════════
   Yvonne's Shortlets — Guest Portal Stylesheet
   Extends main.css
   ═══════════════════════════════════════════════ */

/* ── Layout ──────────────────────────────────────────────────────────── */
.guest-layout {
  display: flex;
  min-height: 100vh;
  background: #F4F2EE;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.guest-sidebar {
  width: 240px;
  background: var(--heading);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 300;
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.guest-sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.guest-sidebar-logo .logo       { color: #fff; font-size: 1.2rem; }
.guest-sidebar-logo .logo span  { color: var(--accent); }
.guest-sidebar-logo .logo small { color: rgba(255,255,255,0.3); }
.guest-sidebar-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  background: rgba(139,26,26,0.2);
  border: 1px solid rgba(139,26,26,0.3);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-display);
}
.guest-sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.guest-sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  transition: all 0.18s;
  border-left: 3px solid transparent;
  font-family: var(--font-display);
  text-decoration: none;
}
.guest-sidebar-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.6; }
.guest-sidebar-link:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.04); }
.guest-sidebar-link.active { color: var(--accent-lite); border-left-color: var(--accent); background: rgba(139,26,26,0.12); }
.guest-sidebar-link.active svg { opacity: 1; }

.guest-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.guest-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.guest-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(139,26,26,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.82rem; font-weight: 800;
  color: rgba(255,255,255,0.7);
  flex-shrink: 0;
}
.guest-user-name  { font-size: 0.82rem; font-weight: 700; color: #fff; }
.guest-user-email { font-size: 0.68rem; color: rgba(255,255,255,0.35); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.guest-logout-btn {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 12px;
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.15);
  border-radius: var(--radius);
  font-size: 0.75rem; font-weight: 700;
  color: rgba(220,38,38,0.7);
  cursor: pointer; transition: all 0.2s;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.guest-logout-btn:hover { background: rgba(220,38,38,0.15); color: #dc2626; }

/* ── Main ────────────────────────────────────────────────────────────── */
.guest-main {
  margin-left: 240px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────────────── */
.guest-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0; z-index: 100;
  gap: 16px;
}
.guest-topbar-title {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 800;
  color: var(--heading);
}
.guest-menu-btn {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 6px;
  color: var(--heading);
  -webkit-tap-highlight-color: transparent;
}
.guest-topbar-btn {
  width: 34px; height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); transition: all 0.18s;
  text-decoration: none;
}
.guest-topbar-btn:hover { border-color: var(--accent); color: var(--accent); }
.guest-topbar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(139,26,26,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.75rem;
  font-weight: 800; color: var(--accent);
}

/* ── Content ─────────────────────────────────────────────────────────── */
.guest-content { padding: 28px; flex: 1; }

/* ── Cards ───────────────────────────────────────────────────────────── */
.g-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}
.g-card-title {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 800;
  color: var(--heading); margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.g-row {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.g-row:last-child { border-bottom: none; }
.g-row .label { color: var(--muted); font-weight: 600; }
.g-row .value { font-weight: 700; color: var(--heading); text-align: right; }

/* ── Status card ─────────────────────────────────────────────────────── */
.status-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.status-card-top {
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.status-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.status-icon svg { width: 24px; height: 24px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.status-icon.pending  { background: var(--amber-bg);  } .status-icon.pending  svg { stroke: var(--amber); }
.status-icon.confirmed { background: var(--green-bg); } .status-icon.confirmed svg { stroke: var(--green); }
.status-icon.checkedin { background: var(--accent-bg); } .status-icon.checkedin svg { stroke: var(--accent); }
.status-icon.done     { background: var(--off);       } .status-icon.done  svg { stroke: var(--muted); }
.status-icon.cancelled { background: var(--red-bg);   } .status-icon.cancelled svg { stroke: var(--red); }
.status-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.status-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--heading); margin-bottom: 4px; }
.status-sub   { font-size: 0.83rem; color: var(--muted); line-height: 1.5; }
.status-card-footer {
  padding: 14px 24px;
  background: var(--off);
  border-top: 1px solid var(--border);
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* ── Countdown ───────────────────────────────────────────────────────── */
.countdown-wrap {
  background: var(--heading);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  text-align: center;
}
.countdown-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.countdown-nums  { display: flex; justify-content: center; gap: 16px; }
.countdown-unit  { text-align: center; }
.countdown-num   { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: #fff; line-height: 1; }
.countdown-unit-label { font-size: 0.65rem; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px; }
.countdown-sep   { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: rgba(255,255,255,0.2); line-height: 1.1; }

/* ── Locked state ────────────────────────────────────────────────────── */
.locked-state {
  text-align: center;
  padding: 60px 20px;
}
.locked-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--off); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.locked-icon svg { width: 28px; height: 28px; stroke: var(--muted); fill: none; stroke-width: 1.5; }
.locked-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: var(--heading); margin-bottom: 8px; }
.locked-sub   { font-size: 0.85rem; color: var(--muted); line-height: 1.7; max-width: 320px; margin: 0 auto; }

/* ── Access code ─────────────────────────────────────────────────────── */
.access-code-box {
  background: var(--heading);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}
.access-code-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.access-code-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: 8px; margin-bottom: 12px; }
.access-code-copy  { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); padding: 8px 20px; border-radius: var(--radius); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; font-family: var(--font-display); transition: all 0.2s; -webkit-tap-highlight-color: transparent; }
.access-code-copy:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* ── Quick action btns ───────────────────────────────────────────────── */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.qa-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  -webkit-tap-highlight-color: transparent;
}
.qa-btn:hover { border-color: var(--accent); box-shadow: 0 4px 16px rgba(139,26,26,0.08); transform: translateY(-2px); }
.qa-btn-icon { width: 36px; height: 36px; border-radius: var(--radius); background: var(--off); display: flex; align-items: center; justify-content: center; }
.qa-btn-icon svg { width: 18px; height: 18px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa-btn-label { font-size: 0.75rem; font-weight: 700; color: var(--heading); font-family: var(--font-display); }

/* ── Overlay (mobile) ────────────────────────────────────────────────── */
.guest-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(28,5,5,0.5);
  z-index: 299;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .guest-sidebar { transform: translateX(-100%); }
  .guest-sidebar.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(28,5,5,0.3); }
  .guest-overlay.open { display: block; }
  .guest-main   { margin-left: 0; }
  .guest-menu-btn { display: flex; }
  .guest-content  { padding: 20px 16px; }
  .guest-topbar   { padding: 0 16px; }
  .quick-actions  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .countdown-num  { font-size: 1.6rem; }
  .access-code-value { font-size: 1.8rem; letter-spacing: 5px; }
}
