/* ========================================================
   APKTransit Hub - Modern Light Green Theme (Design 3 Compact)
   100% English | Mobile-Optimized | Unified Light Green Palette
   ======================================================== */

:root {
  /* Unified Light Green Palette */
  --bg-primary: #EBF5ED;           /* Main soothing light green */
  --bg-surface: #F3FAF5;           /* Inputs, pills background */
  --bg-card: #FFFFFF;              /* Crisp clean card background */
  --bg-card-hover: #F7FCF9;        /* Subtle hover state */
  --bg-footer: #E2EFE5;            /* Soft light green footer background */

  --border-color: #CFE6D7;         /* Soft sage green border */
  --border-hover: #10B981;         /* Emerald hover border */
  --border-light: rgba(16, 185, 129, 0.16);

  /* Accents */
  --accent-green: #10B981;         /* Primary emerald green */
  --accent-green-hover: #059669;   /* Darker emerald */
  --accent-green-dark: #065F46;    /* Deep emerald text */
  --accent-green-pill: #E1F4E8;    /* Pill background */
  --accent-green-border: #A7DFBD;  /* Pill border */

  --accent-gold: #D97706;          /* Rating gold */
  --accent-gold-soft: #FEF3C7;

  /* Typography Colors (High Contrast on Light Green) */
  --text-primary: #0F291E;         /* Deep forest charcoal */
  --text-secondary: #1F4331;       /* Medium forest slate */
  --text-muted: #4A6D5A;           /* Muted sage green */
  --text-dim: #6B8F7C;             /* Dim helper text */

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 2px 8px rgba(16, 85, 45, 0.05);
  --shadow-md: 0 6px 20px rgba(16, 85, 45, 0.08);
  --shadow-lg: 0 14px 32px rgba(16, 85, 45, 0.12);

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ========================================================
   Header
   ======================================================== */
.site-header {
  background: rgba(235, 245, 237, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.brand-name strong {
  color: var(--accent-green-hover);
}

.header-badge-18 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-green-dark);
  background: var(--accent-green-pill);
  border: 1px solid var(--accent-green-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ========================================================
   Main Container
   ======================================================== */
.page-container {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 36px;
  flex: 1 0 auto;
}

/* ========================================================
   Scenic Indian Heritage Banner (Clean & Ultra-Sharp)
   ======================================================== */
.scenic-banner-box {
  width: 100%;
  margin: 0 auto 16px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 16px rgba(16, 85, 45, 0.08);
  border: 1px solid var(--border-color);
  background: #E8F3EB;
}

.scenic-banner-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center 38%;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* ========================================================
   Hero with Particle Flare & Shimmer Animations
   ======================================================== */
.hero-compact {
  text-align: center;
  padding: 6px 0 16px;
  position: relative;
  overflow: visible;
}

.hero-particle-canvas {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 120px;
  pointer-events: none;
  z-index: 1;
}

.hero-title-compact {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
  display: inline-block;
  cursor: pointer;
  user-select: none;

  /* Multi-stop colorful iridescent metallic gradient */
  background: linear-gradient(
    135deg,
    #059669 0%,
    #10B981 18%,
    #F59E0B 36%,
    #EF4444 54%,
    #8B5CF6 72%,
    #06B6D4 88%,
    #059669 100%
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowShine 6s ease-in-out infinite;
  filter: drop-shadow(0 2px 10px rgba(16, 185, 129, 0.35)) drop-shadow(0 4px 22px rgba(245, 158, 11, 0.28));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
}

.hero-title-compact:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 18px rgba(16, 185, 129, 0.55)) drop-shadow(0 8px 30px rgba(245, 158, 11, 0.45));
}

.hero-title-compact:active {
  transform: scale(0.96);
}

@keyframes rainbowShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle-compact {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;

  /* Golden & emerald metallic sheen glow */
  background: linear-gradient(90deg, #166534 0%, #D97706 35%, #059669 70%, #166534 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: subtitleGlow 4s linear infinite;
}

@keyframes subtitleGlow {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* Search Box */
.search-box-compact {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}

.search-box-compact input {
  width: 100%;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0 16px 0 40px;
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.search-box-compact input:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-box-compact input::placeholder {
  color: var(--text-dim);
}

.search-icon-compact {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

/* Category Filter Pills */
.filter-pills-compact {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-pills-compact::-webkit-scrollbar {
  display: none;
}

.filter-btn-compact {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.filter-btn-compact:hover {
  color: var(--accent-green-dark);
  border-color: var(--accent-green);
}

.filter-btn-compact.active {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* List Counter Header */
.list-head-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.list-head-compact strong {
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ========================================================
   Design 3: Compact Fast Rows (Light Green Theme)
   ======================================================== */
.v3-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.v3-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.v3-card:hover {
  border-color: var(--accent-green);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.v3-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.v3-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.05);
  object-fit: cover;
  display: block;
}

.v3-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.v3-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v3-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  background: var(--accent-green);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  flex-shrink: 0;
}

.v3-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v3-sub span {
  color: var(--accent-gold);
  font-weight: 600;
}

.v3-btn {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.v3-btn:hover {
  background: linear-gradient(135deg, var(--accent-green-hover), #047857);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
}

/* ========================================================
   Bottom Footer with Collapsible App Info & FAQ
   (Pinned cleanly at the very bottom of the page)
   ======================================================== */
.site-footer {
  width: 100%;
  background: var(--bg-footer);
  border-top: 1px solid var(--border-color);
  padding: 24px 16px 36px;
  margin-top: auto;
}

.footer-inner {
  max-width: 480px;
  margin: 0 auto;
}

/* Collapsible Details Block */
.seo-details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.seo-details[open] {
  padding-bottom: 14px;
}

.seo-details-summary {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
  outline: none;
  transition: color 0.2s;
}

.seo-details-summary:hover {
  color: var(--accent-green-dark);
}

.seo-details-content {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-color);
}

.seo-details-content h3 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 4px;
}

.seo-details-content p {
  margin-bottom: 8px;
}

.seo-tag-group {
  margin-top: 14px;
}

.seo-tag-group:first-of-type {
  margin-top: 6px;
}

.seo-tag-group h4 {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.seo-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-tag {
  display: inline-block;
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--accent-green-dark);
  background: var(--bg-body);
  border: 1px solid var(--border-color);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-tag:hover {
  background: var(--accent-green-pill);
  border-color: var(--accent-green-border);
  color: var(--accent-green-hover);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.15);
}

/* Trust Navigation & Disclaimer */
.minimal-footer-trust {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-top: 20px;
}

.trust-badge-line {
  font-weight: 600;
  color: var(--accent-green-dark);
  margin-bottom: 6px;
}

.footer-links-row {
  margin-bottom: 6px;
}

.footer-links-row a {
  color: var(--text-secondary);
  text-decoration: underline;
  margin: 0 4px;
  transition: color 0.2s;
}

.footer-links-row a:hover {
  color: var(--accent-green-dark);
}

.copyright-text {
  color: var(--text-dim);
  font-size: 0.68rem;
}

/* ========================================================
   Transit Modal (Light Green Styling)
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 30, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  padding: 16px;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  padding: 24px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(15px);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-app-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  margin: 0 auto 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  display: block;
}

.security-scan-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-green-pill);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green-dark);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.transit-timer-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.transit-timer-box strong {
  color: var(--accent-green);
  font-size: 1rem;
}

.transit-links-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-primary-transit {
  background: linear-gradient(135deg, var(--accent-green), var(--accent-green-hover));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.28);
}

.btn-primary-transit:hover {
  background: linear-gradient(135deg, var(--accent-green-hover), #047857);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}

.copy-link-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-link-btn:hover {
  border-color: var(--accent-green);
  color: var(--accent-green-dark);
}

.transit-disclaimer {
  font-size: 0.68rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ========================================================
   Toast Notice
   ======================================================== */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent-green-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
