/* ============================================================================
   SMARTPHONE-FIRST RESPONSIVE STYLES (CARE & LOCAL HELP PLATFORM)
   ============================================================================ */

:root {
  --brand-primary: #0d6efd;
  --brand-dark: #0f172a;
  --brand-soft: #f8fafc;
}

body {
  background-color: #f4f7fb;
  color: #1e293b;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding-bottom: 80px; /* Space for mobile bottom navigation bar */
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: #ffffff;
  border-radius: 1rem;
}

/* Horizontal Scrollable Category Pills on Smartphones */
.category-scroll-row {
  display: flex;
  overflow-x: auto;
  gap: 0.6rem;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.category-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.category-pill:hover {
  transform: translateY(-1px);
}

/* Listing & Category Cards */
.care-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  background: #ffffff;
}

.care-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* Category Showcase Widgets (icon on top, text uses >= 80% container width) */
.category-showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 0.6rem;
  gap: 0.7rem;
}

.category-showcase-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  font-size: 1.5rem;
}

.category-showcase-body {
  width: 85%;
  max-width: 100%;
  margin-inline: auto;
  overflow-wrap: break-word;
}

.category-showcase-title {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

.category-showcase-desc {
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.38;
}

/* Unique 7-Char Account ID Box */
.account-id-badge {
  font-family: "Courier New", Courier, monospace;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.18rem;
  background: #0f172a;
  color: #38bdf8;
  padding: 0.5rem 1.1rem;
  border-radius: 0.75rem;
  display: inline-block;
}

/* Crypto & Card Wallet Address Box */
.wallet-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.wallet-code {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  color: #0f172a;
}

/* 1-10 Star Rating */
.rating-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  white-space: nowrap;
}

.rating-stars .bi-star {
  color: #cbd5e1;
}

/* Smartphone Sticky Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1040;
}

.mobile-bottom-nav a {
  color: #475569;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.5rem;
}

.mobile-bottom-nav a i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

.mobile-bottom-nav a.active {
  color: #0d6efd;
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
  .mobile-bottom-nav {
    display: none;
  }
}
