/* ==========================================================
   style.css — SHARED styles used across every page
   (header, footer, mobile nav, modals, toast, chips, icons,
   maps/markers, common responsive + animation helpers)

   Page-specific CSS lives in its own file:
   map.css, issues.css, transparency.css, authority.css,
   login.css, report.css
========================================================== */

html, body { height: 100%; }

body {
  font-family: 'Inter', 'Noto Sans Kannada', system-ui, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  -webkit-tap-highlight-color: transparent;
}

.lang-kn { font-family: 'Noto Sans Kannada', 'Inter', sans-serif; }

/* Scrollbar hiding helpers (used in feed tabs, trust-bar, comment strips, map list) */
.scroll-x { scrollbar-width: none; }
.scroll-x::-webkit-scrollbar { display: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.hide-scroll::-webkit-scrollbar { width: 0; height: 0; }

/* Sticky glass header, used on every page */
.glass {
  background: rgba(255, 255, 255, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}

/* Status/category pill used on cards, tables, filters, chips everywhere */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .6rem;
  border-radius: 9999px;
  font-size: .72rem;
  font-weight: 600;
}

/* Leaflet map base + custom pin marker — reused on home (hero map),
   map.html (main map), report.html (pin picker) and issues.html (mini map) */
.leaflet-container { font-family: inherit; border-radius: 16px; }
.marker-pin {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  border: 2px solid white;
}
.marker-pin > span { transform: rotate(45deg); color: white; font-weight: 700; font-size: 14px; }
.pulse-ring { position: absolute; width: 48px; height: 48px; border-radius: 50%; opacity: .45; }

/* Tab pill state — used on home (recent/trending/resolved) and
   authority.html (queue tabs) */
.tab-active { color: #15803d; border-color: #15803d; background: #f0fdf4; }

/* Lucide icon sizing helpers */
.iconw { width: 18px; height: 18px; }
.iconw-sm { width: 14px; height: 14px; }
.iconw-lg { width: 22px; height: 22px; }
.iconw-xl { width: 28px; height: 28px; }

/* Loading skeleton shimmer (generic placeholder) */
.skeleton {
  background: linear-gradient(90deg,#e2e8f0 0%,#f1f5f9 50%,#e2e8f0 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Mobile bottom-nav safe-area padding, used on every page's <body> */
.pb-nav { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

/* Print friendly — hides header/mobile-nav/no-print elements */
@media print { .no-print { display: none !important; } }

/* Home hero background gradient. Only index.html uses this; there is
   no dedicated home.css in the requested file layout, so it lives here. */
.gradient-hero {
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(34,197,94,.18), transparent 60%),
    radial-gradient(800px 300px at -10% 10%, rgba(245,158,11,.12), transparent 60%),
    linear-gradient(180deg,#ffffff 0%, #f0fdf4 100%);
}

/* Home hero full-width shell + benefits strip. Only index.html uses
   these; same reasoning as .gradient-hero above — there is no
   dedicated home.css in the requested file layout, so they live here.
   The shell intentionally escapes <main>'s max-w-6xl so the hero card
   can use the full page width; every other homepage section keeps its
   existing centered max-w-6xl wrapper untouched. */
.home-hero-shell {
  width: 100%;
  max-width: none;
  padding: 0 16px;
}
@media (min-width: 640px) {
  .home-hero-shell { padding: 0 24px; }
}

.home-hero-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .home-hero-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

.home-hero-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: #065f46;
  padding: 20px 24px;
}
@media (min-width: 768px) {
  .home-hero-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 22px 32px;
  }
}

.hero-benefit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  min-width: 0;
}
.hero-benefit-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-benefit-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.hero-benefit-desc {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255,255,255,.78);
  margin-top: 2px;
}

/* Global modal layer (#modal-root) used by every page for the
   follow modal, comment/guest modal, image viewer, authority
   response modal, citizen/authority notification popovers */
#modal-root { z-index: 99999 !important; }
#modal-root > div { z-index: 99999 !important; }
#modal-root .bg-white { position: relative; z-index: 100000 !important; }

.leaflet-container,
.leaflet-pane,
.leaflet-top,
.leaflet-bottom {
  z-index: 1 !important;
}
