/* ============================================================
   PointMe.live — Shared Stylesheet
   Dark dashboard / retro-terminal aesthetic
   Fonts: Orbitron (display) + Share Tech Mono (body/data)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Orbitron:wght@400;700;900&display=swap');

/* ===== VARIABLES ===== */
:root {
  --green:       #00ff41;
  --green-dim:   #00cc33;
  --green-muted: rgba(0,255,65,0.45);
  --green-glow:  rgba(0,255,65,0.22);
  --green-bg:    rgba(0,255,65,0.06);
  --red:         #ff3030;
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface2:    #161616;
  --border:      rgba(0,255,65,0.15);
  --text:        rgba(0,255,65,0.9);
  --text-muted:  rgba(0,255,65,0.4);
  --font-display: 'Orbitron', monospace;
  --font-mono:    'Share Tech Mono', monospace;
  --nav-h:       56px;
  --radius:      6px;
  --transition:  0.2s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; color: #fff; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--green);
}

h1 { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 900; }
h2 { font-size: clamp(1.2rem, 3.5vw, 1.8rem); font-weight: 700; margin-bottom: 0.8rem; }
h3 { font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; color: rgba(0,255,65,0.8); }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.4rem; color: rgba(0,255,65,0.8); }

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  gap: 12px;
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
  white-space: nowrap;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--text-muted); font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--green);
  background: var(--green-bg);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 12px 20px 20px;
    gap: 2px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 0.85rem; padding: 10px 12px; width: 100%; }
}

/* ===== MAIN CONTENT WRAPPER ===== */
.page-content {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.page-content.wide { max-width: 1100px; }
.page-content.narrow { max-width: 680px; }

/* ===== HERO (used on homepage) ===== */
.hero {
  text-align: center;
  padding: 32px 0 24px;
}
.hero-logo {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow), 0 0 60px rgba(0,255,65,0.08);
}
.hero-logo span { color: var(--text-muted); font-weight: 400; }
.hero-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
}

/* ===== COMPASS ===== */
.compass-wrapper {
  position: relative;
  width: min(340px, 85vw);
  height: min(340px, 85vw);
  margin: 0 auto;
}

.compass-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: radial-gradient(ellipse at center, #0d0d0d 55%, #111 100%);
  box-shadow: 0 0 40px rgba(0,255,65,0.06), inset 0 0 40px rgba(0,0,0,0.5);
}

#compassRose {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  transition: transform 0.12s linear;
  will-change: transform;
}

#needle {
  position: absolute;
  left: 50%; top: 50%;
  width: 6px;
  height: 40%;
  transform-origin: bottom center;
  transform: translateX(-50%) translateY(-100%) rotate(0deg);
  transition: transform 0.12s linear;
  will-change: transform;
  pointer-events: none;
}
.needle-north {
  width: 100%; height: 60%;
  background: linear-gradient(to top, #cc0000, var(--red));
  clip-path: polygon(50% 0%, 100% 100%, 50% 78%, 0% 100%);
  filter: drop-shadow(0 0 5px rgba(255,48,48,0.5));
}
.needle-south {
  width: 100%; height: 40%;
  background: linear-gradient(to bottom, #777, #bbb);
  clip-path: polygon(50% 100%, 0% 0%, 50% 22%, 100% 0%);
}

.center-dot {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--green), 0 0 20px var(--green-glow);
  z-index: 10;
}

/* ===== DATA DISPLAY ===== */
.data-panel {
  text-align: center;
  margin-top: 18px;
}
#degreeDisplay {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 12vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green);
  text-shadow: 0 0 30px var(--green-glow);
  letter-spacing: 0.04em;
}
#directionDisplay {
  font-family: var(--font-display);
  font-size: clamp(1rem, 4vw, 1.5rem);
  color: var(--green-dim);
  letter-spacing: 0.3em;
  margin-top: 4px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: box-shadow var(--transition), transform 0.1s;
}
.btn-primary {
  background: var(--green);
  color: var(--bg);
  box-shadow: 0 0 20px var(--green-glow);
}
.btn-primary:hover {
  box-shadow: 0 0 35px rgba(0,255,65,0.5);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--green);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--green-bg);
  text-decoration: none;
}
.btn.hidden { display: none !important; }

/* ===== STATUS + HINTS ===== */
#statusMsg {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
}
#calibHint {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 6px;
  opacity: 0;
  transition: opacity 0.6s;
}
#calibHint.visible { opacity: 1; }

/* ===== FULLSCREEN BTN ===== */
/* Sits below the nav bar — never overlaps hamburger or nav links */
#fsBtn {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  right: 14px;
  z-index: 400;
  background: var(--green-bg);
  border: 1px solid var(--border);
  color: var(--green);
  font-size: 1rem;
  width: 32px; height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
#fsBtn:hover { background: rgba(0,255,65,0.15); }
/* On mobile, hide it entirely — fullscreen API is unreliable on mobile browsers */
@media (max-width: 768px) {
  #fsBtn { display: none; }
}

/* ===== CARDS (blog, features, etc.) ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--green-dim);
  box-shadow: 0 0 20px rgba(0,255,65,0.06);
}
.card-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 14px; }
.card-link {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dim);
}
.card-link:hover { color: var(--green); }

/* ===== ARTICLE / PROSE ===== */
.article-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 20px;
  margin-bottom: 32px;
}
.article-header .date {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}
.article-body h3 {
  margin-top: 1.5rem;
  color: var(--green-dim);
}
.article-body ul { list-style: '▸ '; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.back-link:hover { color: var(--green); }

/* ===== FAQ ===== */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 8px;
}
.faq-a { font-size: 0.85rem; color: rgba(0,255,65,0.7); }

/* ===== FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green-dim); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== INFO BOX ===== */
.info-box {
  background: var(--green-bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.88rem;
}

/* ===== STEP LIST ===== */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.steps li::before {
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.4rem;
  color: var(--green);
  text-shadow: 0 0 12px var(--green-glow);
  min-width: 32px;
  line-height: 1;
  padding-top: 2px;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 24px;
  text-align: center;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  list-style: none;
  margin-bottom: 20px;
}
.footer-nav a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--green); text-decoration: none; }
.footer-disclaimer {
  font-size: 0.68rem;
  color: rgba(0,255,65,0.25);
  max-width: 560px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.footer-copy {
  font-size: 0.68rem;
  color: rgba(0,255,65,0.2);
}

/* ===== AD PLACEHOLDER ===== */
.ad-slot {
  width: 100%;
  max-width: 728px;
  margin: 32px auto;
  /* AdSense unit goes here */
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
  .page-content { padding: 32px 16px 48px; }
  .card-grid { grid-template-columns: 1fr; }
}
