/* ============================================================ */
/*  ZERO-G GHOST v6.7 — User Guide Page                         */
/*  Cyberpunk / glassmorphism aesthetic over Win2K windows       */
/*  Requires: ui-vars.css                                       */
/* ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-ui);
}

body {
  background: var(--clr-desktop);
  background-image:
    linear-gradient(rgba(0, 128, 128, 0.7), rgba(0, 50, 50, 0.9)),
    radial-gradient(circle at 20% 30%, rgba(0, 242, 255, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 0, 255, 0.1) 0%, transparent 40%);
  min-height: 100vh;
  color: var(--clr-text-main);
  overflow-x: hidden;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Scanline overlay — decorative, behind all content */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background:
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
  z-index: 1;
  background-size: 100% 4px, 3px 100%;
  pointer-events: none;
}

/* ── GLASS PANEL (base wrapper) ─────────────────────────────── */
.glass-panel {
  position: relative;
  z-index: 10;
  background: var(--clr-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--clr-glass-border);
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  max-width: 800px;
  width: 100%;
  margin-bottom: 30px;
  animation: fadeIn 0.8s ease-out;
}

/* ── WIN2K WINDOW ───────────────────────────────────────────── */
.win-window {
  background: var(--clr-win-bg);
  border: 2px solid;
  border-color: var(--clr-bevel-light) var(--clr-bevel-dark) var(--clr-bevel-dark) var(--clr-bevel-light);
  box-shadow: inset 1px 1px 0 var(--clr-bevel-light), inset -1px -1px 0 var(--clr-bevel-mid), 4px 4px 16px rgba(0, 0, 0, 0.4);
  margin-bottom: 30px;
  width: 100%;
  max-width: 800px;
  border-radius: 0;
}

.win-titlebar {
  background: linear-gradient(90deg, var(--clr-title-from), var(--clr-title-mid), var(--clr-title-to));
  color: var(--clr-text-white);
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: var(--font-sz-md);
  user-select: none;
}

.win-content {
  padding: 24px;
}

/* ── HEADER ─────────────────────────────────────────────────── */
header {
  position: relative;
  z-index: 20;
}

/* ── TYPOGRAPHY ─────────────────────────────────────────────── */
h1 {
  font-size: var(--font-sz-h1);
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--clr-text-white);
  text-shadow: 0 0 10px var(--clr-accent-glow), 3px 3px 0 var(--clr-text-main);
  margin-bottom: 10px;
  text-align: center;
}

.tagline {
  text-align: center;
  color: var(--clr-accent-glow);
  font-family: var(--font-mono);
  font-size: var(--font-sz-body);
  margin-bottom: 40px;
  text-transform: uppercase;
}

h2 {
  border-bottom: 2px solid var(--clr-title-from);
  padding-bottom: 8px;
  margin-bottom: 16px;
  font-size: var(--font-sz-h2);
  color: var(--clr-title-from);
}

p, li {
  font-size: var(--font-sz-body);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--clr-win-bg);
  border: 2px solid;
  border-color: var(--clr-bevel-light) var(--clr-bevel-dark) var(--clr-bevel-dark) var(--clr-bevel-light);
  cursor: pointer;
  text-decoration: none;
  color: var(--clr-text-main);
  font-weight: bold;
  font-size: var(--font-sz-body);
  transition: all 0.1s;
  border-radius: 0;
}

.btn:active {
  border-color: var(--clr-bevel-dark) var(--clr-bevel-light) var(--clr-bevel-light) var(--clr-bevel-dark);
  transform: translate(1px, 1px);
}

.btn-modern {
  background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-accent-violet));
  color: var(--clr-text-white);
  border: none;
  border-radius: 4px;
  padding: 12px 24px;
  box-shadow: 0 4px 15px rgba(0, 242, 255, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 20px 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 255, 0.5);
}

/* ── LANGUAGE SWITCHER ──────────────────────────────────────── */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

/* ── FEATURES GRID ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* ── MISC ───────────────────────────────────────────────────── */
.hidden {
  display: none !important;
}

code {
  background: #eee;
  padding: 2px 4px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.github-link {
  text-align: center;
  margin: 30px 0;
}

table {
  border: 1px solid var(--clr-bevel-mid);
  background: var(--clr-input-bg);
}

/* ── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  body {
    padding-top: 80px; /* space for fixed language switcher */
  }

  h1 {
    font-size: var(--font-sz-h1-mobile);
  }

  .win-content {
    padding: 16px;
  }
}
