/* marcusc custom theme for LookingGlass */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Syne:wght@400;700;800&display=swap');

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

:root {
  --bg: #080b0f;
  --surface: #0e1318;
  --border: #1a2230;
  --accent: #00e5ff;
  --accent2: #0077ff;
  --text: #c8d8e8;
  --muted: #4a5a6a;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Syne', sans-serif;
}

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  overflow-x: hidden;
}

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

body::after {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0,119,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 48px;
  animation: fadeDown 0.6s ease both;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  opacity: 0.8;
}

.header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  line-height: 1;
}

.header h1 a {
  color: #fff;
  text-decoration: none;
}

.header h1 a span {
  color: var(--accent);
}

.header-sub {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 1px;
}

/* Sections */
section {
  margin-bottom: 20px;
  animation: fadeUp 0.5s ease both;
}

#information { animation-delay: 0.1s; }
#tests       { animation-delay: 0.2s; }
#results     { animation-delay: 0.3s; }

/* Well / card */
.well {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px 28px;
  position: relative;
}

.well::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
}

/* Legend */
#legend, span#legend {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.8;
}

/* Network info */
#information p {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  font-family: var(--mono);
}

#information b {
  color: #fff;
}

#information a {
  color: var(--accent);
  text-decoration: none;
}

#information a:hover {
  text-decoration: underline;
}

#testfile {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent) !important;
  transition: border-color 0.2s, background 0.2s;
}

#testfile:hover {
  background: rgba(0,229,255,0.05);
  border-color: var(--accent);
  text-decoration: none !important;
}

/* Form */
.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.form-inline fieldset {
  width: 100%;
  border: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.controls {
  flex: 1;
  min-width: 200px;
}

input#host {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s;
}

input#host::placeholder {
  color: var(--muted);
}

input#host:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0,229,255,0.08);
}

select[name="cmd"] {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 10px 14px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

select[name="cmd"]:focus,
select[name="cmd"]:hover {
  border-color: var(--accent);
}

/* Button */
.btn-primary {
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  border: none;
  border-radius: 4px;
  color: #000;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Error state */
.control-group.error input#host {
  border-color: #ff4466;
}

/* Results */
#results pre {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-all;
  line-height: 1.7;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-top: 8px;
}

/* Footer */
.footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  animation: fadeUp 0.5s 0.4s ease both;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

.pull-right {
  float: none;
}

/* Row / span compat */
.row { width: 100%; }
.span12 { width: 100%; }

/* Animations */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
