/* ============================================================
   style.css — mapsconverter.com
   Dark-tech design system. Palette from og-image.
   ============================================================ */

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

/* ── Tokens ── */
:root {
  /* Surfaces */
  --bg-deep:    #0e0b14;
  --bg:         #130f1a;
  --bg2:        #1c1428;
  --bg3:        #221840;
  --bg-card:    #1a1326;
  --bg-raised:  #211a30;

  /* Text */
  --text:       #f0ecf7;
  --text2:      #8275a0;
  --text3:      #4a3860;

  /* Brand */
  --brand:      #5A4869;
  --brand-mid:  #7a5e8a;
  --brand-light:#9080b0;
  --brand-bright:#c4b0d8;

  /* Borders */
  --border:     #2a1f38;
  --border2:    #3d2d55;
  --border3:    rgba(255,255,255,0.06);

  /* Semantic */
  --info-bg:    #0d1f3a;
  --info:       #7ab3e8;
  --info-border:#1a3a5c;
  --ok-bg:      #0d2010;
  --ok:         #7bc47e;
  --ok-border:  #1a3d1e;
  --warn-bg:    #2a1a06;
  --warn:       #d4a24a;
  --warn-border:#3d2a0e;
  --danger-bg:  #250d0d;
  --danger:     #d47070;
  --danger-border:#3d1818;
  --purple-bg:  #1a1040;
  --purple:     #a89ae0;
  --purple-border:#2e2060;

  /* Misc */
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --mono:       'SF Mono','Fira Code','Cascadia Code','Courier New',monospace;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.5), 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.6), 0 2px 8px rgba(0,0,0,0.5);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5);
  --glow:       0 0 24px rgba(90,72,105,0.3);
}

/* ── Base ── */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 0 0 80px;
  line-height: 1.7;
}

/* Subtle grid on body */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 0;
  position: relative;
  z-index: 1;
}

a { color: var(--info); text-decoration: none; }
a:hover { color: var(--brand-bright); }

code {
  background: var(--bg2);
  border: 0.5px solid var(--border2);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--brand-bright);
}

/* ── Nav ── */
.site-nav {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.nav-brand img { width: 20px; height: 27px; flex-shrink: 0; }
.nav-brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--text);
}

/* Monospace domain style on nav */
.nav-domain {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 1px;
  margin-left: 4px;
  opacity: 0.7;
}

.nav-back {
  margin-left: auto;
  font-size: 13px;
  color: var(--text2);
  text-decoration: none;
  border: 0.5px solid var(--border2);
  padding: 6px 14px;
  border-radius: var(--radius);
  background: var(--bg2);
  transition: all .15s;
}
.nav-back:hover {
  background: var(--bg3);
  color: var(--text);
  border-color: var(--brand);
}

/* ── Card ── */
.card {
  background: var(--bg-card);
  border: 0.5px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-md);
}

/* ── Alerts ── */
.alert {
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.a-ok     { background: var(--ok-bg);     color: var(--ok);     border: 0.5px solid var(--ok-border); }
.a-info   { background: var(--info-bg);   color: var(--info);   border: 0.5px solid var(--info-border); }
.a-warn   { background: var(--warn-bg);   color: var(--warn);   border: 0.5px solid var(--warn-border); }
.a-purple { background: var(--purple-bg); color: var(--purple); border: 0.5px solid var(--purple-border); }

/* ── Corner bracket decoration ── */
.bracket::before,
.bracket::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--brand);
  border-style: solid;
  opacity: 0.5;
}
.bracket::before {
  top: 12px; left: 12px;
  border-width: 1.5px 0 0 1.5px;
  border-radius: 2px 0 0 0;
}
.bracket::after {
  bottom: 12px; right: 12px;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0 0 2px 0;
}

/* ── Footer ── */
footer {
  text-align: center;
  font-size: 12px;
  color: var(--text3);
  margin-top: 48px;
  padding: 24px 20px;
  border-top: 0.5px solid var(--border);
  line-height: 1.9;
  font-family: var(--mono);
  letter-spacing: 0.3px;
}
footer a { color: var(--text3); }
footer a:hover { color: var(--brand-light); }
