/* ============================================================
   SUGAM — home.css
   Page 1: Home / Landing — "Where are you?"
   ============================================================ */

/* ── Page Layout ─────────────────────────────────────────── */
.home-page {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
  background: var(--page-bg);
}

/* ── Hero Card (Logo Box) ────────────────────────────────── */
.hero-logo-card {
  background: var(--white);
  border-radius: 16px;
  border: 0.5px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 160px;
  margin-bottom: 20px;
}
.hero-logo-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.hero-logo-card .logo-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.04em;
}
.hero-logo-card .logo-tagline {
  font-size: 11px;
  color: var(--muted);
}

/* ── Set Location Pill ───────────────────────────────────── */
.set-location-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1.5px solid var(--red);
  border-radius: 24px;
  padding: 7px 18px;
  font-size: 14px;
  color: var(--red);
  background: transparent;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background 0.2s;
}
.set-location-pill:hover { background: var(--red-light); }
.set-location-pill i { font-size: 15px; }

/* ── Heading ─────────────────────────────────────────────── */
.home-heading {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 8px;
}
.home-subheading {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 24px;
}

/* ── Divider ─────────────────────────────────────────────── */
.home-divider {
  width: 100%;
  max-width: 520px;
  height: 1px;
  background: #DDDDDD;
  margin-bottom: 20px;
}

/* ── Cards Container ─────────────────────────────────────── */
.location-cards {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

/* ── Building Dropdown ───────────────────────────────────── */
.building-selector {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--red);
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--white);
  margin-bottom: 14px;
  cursor: pointer;
}
.building-selector i { font-size: 18px; color: var(--red); }
.building-selector select {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--text);
  background: transparent;
  font-family: var(--font);
  cursor: pointer;
}

/* ── Location Method Card ────────────────────────────────── */
.loc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--white);
  border: 0.5px solid var(--border);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}
.loc-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}
.loc-card:active { transform: scale(0.98); }

/* Primary card (QR - red) */
.loc-card.primary {
  background: var(--red);
  border-color: var(--red);
}
.loc-card.primary .loc-card-title { color: var(--white); }
.loc-card.primary .loc-card-sub   { color: rgba(255,255,255,0.75); }
.loc-card.primary .loc-card-arrow { color: var(--white); }

/* Card icon box */
.loc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.loc-card-icon i { font-size: 22px; color: var(--red); }
.loc-card.primary .loc-card-icon { background: var(--red-dark); }
.loc-card.primary .loc-card-icon i { color: var(--white); }

/* Card text */
.loc-card-texts { flex: 1; }
.loc-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.loc-card-sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

/* Card arrow */
.loc-card-arrow {
  font-size: 18px;
  color: var(--red);
  flex-shrink: 0;
}

/* ── QR Scanner Modal ────────────────────────────────────── */
.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
#qr-video {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  border: 2px solid var(--red);
}
.qr-modal-hint {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ── Manual Location Modal ───────────────────────────────── */
.manual-selectors {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.manual-selectors label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
  display: block;
}
.manual-selectors select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  outline: none;
  cursor: pointer;
}
.manual-selectors select:focus { border-color: var(--red); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .home-heading  { font-size: 26px; }
  .home-page     { padding: 24px 16px 16px; }
  .hero-logo-card { width: 140px; }
}
