/* ── Design Tokens (mirrors AppTheme) ─────────────────── */
:root {
  --bg:          #F8F6F1;
  --primary:     #2A9D8F;
  --primary-dark:#21867a;
  --accent:      #FF7A5A;
  --text-body:   #1A1B22;
  --text-sub:    #2A363B;
  --text-muted:  #9E9B96;
  --surface:     #FFFFFF;
  --outline:     #E0DDD8;
  --surface-var: #F1F1EF;
  --shadow-sm:   0 2px 8px rgba(0,0,0,0.05);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.08);
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ─────────────────────────────────────────────── */
.header {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  text-decoration: none;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.header-logo img {
  height: 1em;
  width: auto;
  display: block;
}
.header-slogan {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-left: 2px solid var(--outline);
  padding-left: 14px;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 520px;
  padding: 36px 20px 60px;
}
.hidden { display: none !important; }

/* ── Loader ─────────────────────────────────────────────── */
#loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 80px;
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--outline);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Typography ─────────────────────────────────────────── */
.hero-title {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.75px;
  line-height: 1.2;
  color: var(--text-body);
  margin-bottom: 14px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 32px;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-group { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.btn {
  display: inline-block;
  width: 100%;
  padding: 16px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(42,157,143,0.3);
}
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: rgba(42,157,143,0.06); }

/* ── Listing Cards ──────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--outline);
  margin-bottom: 14px;
}
.card-pill {
  display: inline-block;
  background: rgba(42,157,143,0.1);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-body);
  margin-bottom: 8px;
  line-height: 1.35;
}
.card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.card-meta .price { color: var(--primary); font-weight: 700; }

/* ── Detail Page ────────────────────────────────────────── */
.detail-card    { text-align: center; padding: 40px 24px; margin-bottom: 20px; }
.detail-title   { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.5px; margin-bottom: 18px; line-height: 1.25; }
.detail-full-desc { font-size: 0.95rem; color: var(--text-sub); line-height: 1.7; margin-bottom: 24px; text-align: left; }
.detail-meta    { display: flex; justify-content: center; gap: 20px; font-size: 1rem; margin-bottom: 32px; flex-wrap: wrap; }

/* ── Error Card ─────────────────────────────────────────── */
.error-card { text-align: center; padding: 48px 24px; }
.error-icon { font-size: 3rem; margin-bottom: 16px; }
.error-title { font-size: 1.3rem; font-weight: 800; color: var(--text-body); margin-bottom: 10px; }
.error-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 28px; line-height: 1.55; }

/* ── Content Pages (Static) ───────────────────────────────── */
.content-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline);
}
.content-card h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}
.content-card .content-updated {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.content-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-body);
  margin: 24px 0 8px;
}
.content-card p {
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 1.7;
}
.content-card ul {
  padding-left: 18px;
  font-size: 0.93rem;
  color: var(--text-sub);
  line-height: 1.9;
}
.back-link {
  display: block;
  text-align: center;
  margin-top: 28px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

/* ── Help Form ───────────────────────────────────────────── */
.form-input, .form-textarea {
  width: 100%;
  padding: 13px 16px;
  margin-bottom: 14px;
  border: 1.5px solid var(--outline);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  color: var(--text-body);
  background: var(--surface);
  transition: border-color 0.15s;
  appearance: none;
}
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--primary); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }

/* ── Live Feed Section ───────────────────────────────────── */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 16px;
  margin-top: 48px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--outline);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}
.footer a { color: var(--primary); text-decoration: none; margin: 0 10px; }
.footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 28px 16px 56px; }
  .content-card { padding: 24px 18px; }
  .detail-card { padding: 32px 16px; }
  .header-slogan { display: none; }
}
