/* ═══════════════════════════════════════════════════════════
   SHARED PAGE COMPONENTS
   Hero badges, stat tiles, FAQ accordion and CTA panel.
   Used by the location pages and /services/vpn.
   Loaded AFTER style.css and cyberpunk-theme.css.
   Uses the existing theme custom properties only — no new
   colours are introduced here, so a palette change upstream
   still flows through these components.
   ═══════════════════════════════════════════════════════════ */

/* ── Hero badge row ────────────────────────────────────────
   Short factual pills under the H1: postcode, distance,
   callout policy. Mirrors the neon-bordered badges used on
   the homepage hero. */

.loc-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
}

.loc-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: linear-gradient(135deg, rgba(0, 255, 255, 0.12), rgba(191, 0, 255, 0.10));
  border: 1px solid var(--neon-cyan);
  border-radius: 10px;
  box-shadow: 0 0 14px rgba(0, 255, 255, 0.22),
              inset 0 0 18px rgba(0, 255, 255, 0.06);
}

.loc-badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: locDotPulse 2s ease-in-out infinite;
}

.loc-badge--pink {
  border-color: var(--neon-pink);
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.12), rgba(0, 128, 255, 0.10));
  box-shadow: 0 0 14px rgba(255, 0, 255, 0.22),
              inset 0 0 18px rgba(255, 0, 255, 0.06);
}

@keyframes locDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

/* ── Coverage stat tiles ───────────────────────────────────
   Same visual language as the homepage live-telemetry block,
   but static facts rather than fetched numbers. */

.loc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.25rem;
  background: rgba(10, 10, 20, 0.55);
  border: 1px solid rgba(0, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: inset 0 0 40px rgba(0, 255, 255, 0.04);
}

.loc-stat {
  text-align: center;
  padding: 0.5rem;
  border-right: 1px solid rgba(0, 255, 255, 0.10);
}

.loc-stat:last-child { border-right: none; }

.loc-stat__label {
  display: block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.loc-stat__value {
  display: block;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.45);
}

.loc-stat[data-accent="pink"] .loc-stat__value {
  color: var(--neon-pink);
  text-shadow: 0 0 12px rgba(255, 0, 255, 0.45);
}

.loc-stat[data-accent="green"] .loc-stat__value {
  color: var(--neon-green);
  text-shadow: 0 0 12px rgba(0, 255, 0, 0.45);
}

@media (max-width: 640px) {
  .loc-stat { border-right: none; border-bottom: 1px solid rgba(0, 255, 255, 0.10); }
  .loc-stat:last-child { border-bottom: none; }
}

/* ── Lead paragraphs ───────────────────────────────────────
   Replaces the repeated inline max-width/colour styles. */

.loc-lead {
  max-width: 900px;
  margin: 1.5rem auto;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
}

.loc-areas {
  max-width: 900px;
  margin: 1rem auto;
  color: var(--text-secondary);
  line-height: 1.85;
}

.loc-areas strong {
  color: var(--neon-cyan);
  font-weight: 600;
  text-shadow: 0 0 8px rgba(0, 255, 255, 0.3);
}

/* ── FAQ accordion ─────────────────────────────────────────
   Matches the Troubleshooting section on /services/vpn: a
   collapsible header strip with an icon on the left, a chevron
   on the right that flips when open, and a recessed answer
   panel tucked underneath.

   That section builds its accordion with inline styles plus a
   toggleTroubleshooting() JS handler. This uses native
   <details>/<summary> instead — same look, no script to load
   on three separate pages, keyboard-operable for free, and the
   answers stay in the DOM so search engines still read them. */

.loc-faq {
  max-width: 900px;
  margin: 1rem auto 2rem;
}

.loc-faq__item {
  margin-bottom: 1rem;
}

/* Header strip */
.loc-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: 0.3px;
  line-height: 1.4;
  transition: background-color 0.3s, border-color 0.3s;
  list-style: none;
}

/* Suppress the browser's default disclosure triangle */
.loc-faq__q::-webkit-details-marker { display: none; }
.loc-faq__q::marker { content: ''; }

.loc-faq__q:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.35);
}

.loc-faq__q:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 3px;
}

/* Question mark badge on the left */
.loc-faq__q::before {
  content: '❓';
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 0.25rem;
}

/* Chevron on the right, flipped when the item is open */
.loc-faq__q::after {
  content: '▼';
  font-size: 1.2rem;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.3s;
}

.loc-faq__item[open] .loc-faq__q::after {
  transform: rotate(180deg);
}

.loc-faq__item[open] .loc-faq__q {
  border-radius: 12px 12px 0 0;
  border-bottom-color: transparent;
}

/* Answer panel */
.loc-faq__a {
  padding: 1.5rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 12px 12px;
  color: var(--text-secondary);
  line-height: 1.75;
  animation: locFaqOpen 0.3s ease;
}

@keyframes locFaqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .loc-faq__q { font-size: 0.98rem; padding: 0.9rem 1.1rem; }
  .loc-faq__a { padding: 1.15rem; }
}

/* ── Call to action panel ──────────────────────────────────
   Replaces a light-theme card (white background, dark hairline
   border) that was invisible-by-contrast on the dark site. */

.loc-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 3.5rem auto 2.5rem;
  padding: 1.75rem;
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.08), rgba(0, 255, 255, 0.08)),
              var(--bg-card);
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 12px;
  box-shadow: 0 0 28px rgba(0, 255, 255, 0.12),
              inset 0 0 45px rgba(255, 0, 255, 0.05);
}

.loc-cta__body { flex: 1; min-width: 240px; }

.loc-cta h3 {
  margin: 0 0 0.5rem 0;
  color: var(--neon-cyan);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.4);
}

.loc-cta p { margin: 0 0 0.35rem 0; color: var(--text-secondary); }

.loc-cta a { color: var(--neon-cyan); text-decoration: none; }
.loc-cta a:hover { text-shadow: 0 0 10px var(--neon-cyan); }

.loc-cta strong { color: var(--neon-yellow); }

/* ── Cross-links to the other location pages ───────────────── */

.loc-crosslinks {
  max-width: 900px;
  margin: 2rem auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 255, 255, 0.12);
  color: var(--text-secondary);
  text-align: center;
}

.loc-crosslinks a {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dotted rgba(0, 255, 255, 0.4);
}

.loc-crosslinks a:hover {
  text-shadow: 0 0 10px var(--neon-cyan);
  border-bottom-color: var(--neon-cyan);
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   Genuinely page-agnostic. Kept to a deliberately tiny set —
   these earn their place only because each replaced a dozen or
   more identical inline style attributes.
   ═══════════════════════════════════════════════════════════ */

.u-center  { text-align: center; }
.u-mb-sm   { margin-bottom: 0.5rem; }
.u-mb-md   { margin-bottom: 1rem; }
.u-pt-lg   { padding-top: 3rem; }

/* ═══════════════════════════════════════════════════════════
   REMOTE DESKTOP SUPPORT PAGE
   ═══════════════════════════════════════════════════════════ */

.rds-note {
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.rds-note-list {
  text-align: left;
  color: var(--gray-text);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.rds-inline-icon {
  vertical-align: middle;
  margin-right: 4px;
}

/* ═══════════════════════════════════════════════════════════
   VPN PAGE
   Extracted from inline style attributes on /services/vpn.
   Everything is vpn- prefixed (bar the two troubleshooting
   classes, which already existed as markup hooks with no rules
   behind them) so nothing can collide with style.css.

   Deliberately NOT extracted: any inline style JavaScript reads
   or writes — display:none toggles, the progress-bar width, and
   max-height on .troubleshooting-content, which
   toggleTroubleshooting() reads back off the element.
   ═══════════════════════════════════════════════════════════ */

.vpn-note        { color: var(--gray-text); margin-bottom: 1rem; }
.vpn-subhead     { color: var(--text-color); margin-bottom: 0.5rem; }
.vpn-accent-sm   { color: var(--primary-color); font-size: 0.9rem; }
.vpn-btn-sm      { padding: 0.7rem 1.4rem; font-size: 0.85rem; }
.vpn-btn-xs      { padding: 0.6rem 1.2rem; }
.vpn-grid-250    { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.vpn-flex-row    { display: flex; align-items: center; gap: 1rem; }
.vpn-issue-icon  { font-size: 1.5rem; }
.vpn-issue-title { margin: 0; font-size: 1.1rem; }

.vpn-list {
  color: var(--gray-text);
  margin-left: 1.5rem;
  line-height: 1.8;
}

/* Numbered step badges in the setup guide */
.vpn-step-num {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #FFD700, #FFA500);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

/* Troubleshooting accordion */
.troubleshooting-header {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s, border-color 0.3s;
}

.troubleshooting-header:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.35);
}

.troubleshooting-body {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

.troubleshooting-chevron {
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

/* ── Motion safety ─────────────────────────────────────────
   The theme leans heavily on animation. Anyone who has asked
   their OS to reduce motion gets the styling without it. */

@media (prefers-reduced-motion: reduce) {
  .loc-badge__dot { animation: none; }
  .loc-faq__a { animation: none; }
  .loc-faq__q::after { transition: none; }
}
