/* =====================================================================
   NELSON COUNTY DEMOCRATS — Digital Business Card Stylesheet
   Shared by all 5 executive committee member cards.
   Master/Slave pattern: owner-only sections (data-owner-only) hidden
   when URL contains ?share=1 (see JS in each card).
   ===================================================================== */

:root {
  --navy: #0a2342;
  --navy-light: #1a3a5c;
  --navy-deep: #061a33;
  --blue: #1c5d99;
  --blue-dem: #00aef3;
  --red: #c8102e;
  --cream: #faf8f3;
  --white: #ffffff;
  --ink: #172033;
  --muted: #8a94a6;
  --line: rgba(10,35,66,.12);
  --shadow-card: 0 26px 80px rgba(10,35,66,.22), 0 0 0 1px rgba(255,255,255,.9);
  --radius: 32px;
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #ffffff 0%, var(--cream) 48%, #e2eaf3 100%);
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 22px;
}

/* ── Card Shell ── */
.card-page { width: 100%; display: flex; justify-content: center; }
.card-shell {
  width: min(430px, 100%);
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* ── Hero / Banner ── */
.hero { position: relative; }
.hero-banner-wrap {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, var(--blue) 100%);
  overflow: hidden;
}
.hero-banner-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0,174,243,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200,16,46,.12) 0%, transparent 45%);
  pointer-events: none;
}
/* subtle stars / dots pattern */
.hero-banner-wrap::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero-topbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 0 0;
  z-index: 2;
}
.hero-party-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.hero-party-mark .donkey {
  width: 26px; height: 26px;
}
.hero-photo-wrap {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.avatar {
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 4px solid var(--white);
  background: var(--navy-light);
  box-shadow: 0 8px 24px rgba(10,35,66,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 36px;
  font-weight: 800;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 1px;
  object-fit: cover;
}

/* ── Hero Info ── */
.hero-info { padding: 64px 24px 18px; text-align: center; }
.hero-info h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.hero-info .subtitle {
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dem);
  text-transform: uppercase;
  letter-spacing: .6px;
}
.specialty-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.specialty-tag {
  background: rgba(0,174,243,.10);
  color: var(--navy);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,174,243,.25);
}
.org-line {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

/* ── Content ── */
.content { padding: 8px 22px 22px; }

/* Primary CTA */
.primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 6px 18px rgba(10,35,66,.28);
  transition: transform .15s ease, box-shadow .15s ease;
}
.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10,35,66,.34); }
.primary:active { transform: translateY(0); }
.btn-save-icon {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--blue-dem);
  align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800;
}

/* Button grid */
.section-label {
  margin: 22px 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:hover { background: #eef4fb; border-color: rgba(0,174,243,.4); }
.btn:active { transform: scale(.98); }
.btn-icon {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  align-items: center; justify-content: center;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Action grid (3-up) */
.re-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.re-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--navy);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
.re-btn:hover { background: #eef4fb; border-color: rgba(0,174,243,.4); }
.re-btn:active { transform: scale(.98); }
.re-icon { font-size: 22px; line-height: 1; }
.re-btn span:nth-child(2) { font-size: 13px; font-weight: 700; }
.re-sub { font-size: 10px; color: var(--muted); font-weight: 500; }

/* About button */
.btn-about {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 12px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  margin-top: 12px;
  transition: background .15s ease;
}
.btn-about:hover { background: var(--navy); color: var(--white); }

/* Areas / Tags chips */
.neighborhoods { margin-top: 20px; }
.neighborhoods h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.neighborhood-list { display: flex; flex-wrap: wrap; gap: 6px; }
.neighborhood-chip {
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 20px;
}

/* ── Owner-only section ── */
.owner-section { margin-top: 8px; }
.owner-divider {
  height: 1px;
  background: var(--line);
  margin: 18px 0 14px;
}
.owner-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.owner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--red) 0%, #a00d24 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  padding: 13px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(200,16,46,.28);
  transition: transform .1s ease;
}
.owner-btn:hover { transform: translateY(-1px); }
.owner-btn:active { transform: scale(.98); }
.ob-icon { font-size: 16px; }

/* Send menu */
.send-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, margin .3s ease;
  margin-top: 0;
}
.send-menu.open {
  max-height: 220px;
  margin-top: 8px;
}
.send-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease;
}
.send-option:hover { background: #eef4fb; }
.send-icon { font-size: 18px; }
.send-label { flex: 1; text-align: left; }
.send-arrow { color: var(--muted); font-size: 18px; }

/* Home screen tips */
.homescreen-btn { width: 100%; margin-top: 8px; }
.homescreen-tips {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.homescreen-tips.open { max-height: 500px; margin-top: 8px; }

.hs-platform-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.hs-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}
.hs-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.hs-platform-panel {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.hs-step { display: flex; gap: 10px; margin-bottom: 10px; align-items: flex-start; }
.hs-step:last-child { margin-bottom: 0; }
.hs-num {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue-dem);
  color: var(--white);
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.hs-step p { font-size: 13px; color: var(--ink); line-height: 1.4; }

/* ── Footer ── */
.card-footer {
  background: var(--navy-deep);
  color: var(--white);
  text-align: center;
  padding: 20px 24px;
}
.card-footer .footer-mark {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 6px;
  opacity: .95;
}
.card-footer p { font-size: 11px; line-height: 1.5; opacity: .75; }
.card-footer .footer-donkey { font-size: 20px; margin-bottom: 6px; }

/* ── QR Overlay ── */
.qr-overlay, .about-overlay {
  position: fixed; inset: 0;
  background: rgba(6,26,51,.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 10000;
}
.qr-overlay.active, .about-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.qr-card, .about-card {
  background: var(--white);
  border-radius: 22px;
  padding: 28px 24px;
  width: min(380px, 100%);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.qr-close, .about-close {
  position: absolute;
  top: 12px; right: 14px;
  background: none; border: none;
  font-size: 26px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
}
.qr-card h2, .about-card h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  font-size: 20px;
  margin-bottom: 6px;
}
.qr-sub { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.qr-image-wrap {
  display: flex; justify-content: center;
  margin-bottom: 14px;
}
.qr-image-wrap img {
  width: 220px; height: 220px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.qr-hint { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.qr-download {
  display: inline-flex;
  align-items: center; gap: 6px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* ── About overlay ── */
.about-header { margin-bottom: 14px; }
.about-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  background: var(--navy-light);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 800;
  font-family: "Playfair Display", Georgia, serif;
  margin: 0 auto 10px;
  object-fit: cover;
}
.about-role { font-size: 13px; color: var(--blue-dem); font-weight: 600; }
.about-body { text-align: left; }
.about-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 12px;
}
.about-body p.dropcap::first-letter {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  color: var(--navy);
  float: left;
  line-height: .9;
  margin: 4px 6px 0 0;
}
.about-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.about-tag {
  font-size: 11px;
  color: var(--blue-dem);
  font-weight: 600;
}
.signature {
  text-align: right;
  margin-top: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  font-style: italic;
}

@media (max-width: 480px) {
  body { padding: 0; }
  .card-shell { border-radius: 0; min-height: 100vh; }
}

/* Photo avatar styles (replacing initials) */
.avatar-photo {
  width: 104px; height: 104px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 8px 24px rgba(10,35,66,.35);
  object-fit: cover;
  display: block;
}

.about-avatar-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 3px solid var(--cream);
  object-fit: cover;
  margin: 0 auto 10px;
  display: block;
}

