/* styles.css — info.aakashamlani.co.uk
   Simple, high-contrast leaflet landing page
*/

/* ===== Base theme ===== */
:root {
  --bg-page: #050912;
  --bg-grad-top: rgba(18, 30, 54, 0.95);
  --bg-grad-bottom: rgba(5, 9, 18, 0.98);

  --card-bg: rgba(11, 17, 30, 0.96);
  --card-border: rgba(255, 255, 255, 0.06);

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-strong: #e5e7eb;

  --pill-bg: #f9fafb;
  --pill-text: #111827;
  --pill-muted: #4b5563;

  --accent: #2b7a78;       /* your teal */
  --accent-soft: #a7d6d3;

  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.55);
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(43, 122, 120, 0.25), transparent 55%),
    linear-gradient(to bottom, var(--bg-grad-top), var(--bg-grad-bottom));
  color: var(--text-main);
}

/* ===== Layout shell ===== */
.shell {
  min-height: 100vh;
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ===== Hero / identity ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 0;
}

.hero-logo {
  height: 48px;
  width: auto;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-role {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ===== Card / panels ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 18px 18px 20px;
}

.card-main {
  margin-top: 4px;
}

.card-leaflets {
  margin-top: 4px;
}

.card-foot {
  margin-top: 8px;
}

.card h1 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  font-weight: 700;
}

.card h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 650;
}

.lead {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* tiny boot/init text, mostly for debugging */
.meta-line {
  margin: 2px 0 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== Leaflet list (pills with “Open” button) ===== */
.leaflet-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.leaflet-list li {
  margin-bottom: 10px;
}

/* the JS creates a simple <a> inside each <li> — we style it as a pill row */
.leaflet-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding: 10px 14px;
  border-radius: var(--radius-pill);

  background: var(--pill-bg);
  color: var(--pill-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

/* main title text */
.leaflet-list a span.leaflet-title {
  flex: 1;
}

/* “Open” badge using ::after so JS can stay simple */
.leaflet-list a::after {
  content: "Open";
  flex-shrink: 0;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 650;
  text-align: center;
}

.leaflet-list a:active {
  transform: translateY(1px);
}

/* ===== Error & footer text ===== */
.error {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: #fecaca; /* soft red */
}

.footnote {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Mobile tweaks ===== */
@media (max-width: 600px) {
  .shell {
    padding: 20px 14px 28px;
  }
  .card {
    padding: 16px 14px 18px;
  }
  .hero-logo {
    height: 42px;
  }
  .card h1 {
    font-size: 1.3rem;
  }
  .leaflet-list a {
    padding: 9px 12px;
    font-size: 0.92rem;
  }
}