/* Palette: deep black with gold accents */
:root {
  --bg: #0b0f14;
  --bg-elev: #0f141b;
  --text: #e4e7eb;
  --muted: #8292a6;
  --accent: #00ff88;
  --accent-soft: #00cc66;
  --outline: #1a2230;
  --shadow: rgba(0, 0, 0, 0.45);
  --radius: 12px;
  --bar-height: 74px;
  --font-size: 16px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Orbitron', Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--font-size);
  color: var(--text);
  background: radial-gradient(1200px 800px at 20% -10%, #101621 0%, var(--bg) 60%),
              radial-gradient(1000px 600px at 90% 10%, #121a26 0%, var(--bg) 60%),
              var(--bg);
  position: relative;
  overflow-x: hidden;
}

.container,
.site-header,
.site-footer { position: relative; z-index: 2; }

#matrixRain {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 1;
  pointer-events: none;
}

.body-grid,
.body-scan { pointer-events: none; }
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
}
body::before {
  background-image:
    linear-gradient(rgba(0,255,136,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,0.03) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  animation: grid-shift 20s linear infinite;
}
body::after {
  background: repeating-linear-gradient(transparent 0px, rgba(0,0,0,0.2) 1px, transparent 2px);
  mix-blend-mode: overlay;
  opacity: .25;
}

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  min-height: var(--bar-height);
  background: linear-gradient(180deg, rgba(0,255,136,0.08), transparent 70%);
  border-bottom: 1px solid var(--outline);
  position: relative;
  z-index: 1;
}
.site-header { justify-content: center; border-bottom-color: var(--accent); }
.site-footer {
  border-top: 1px solid var(--outline);
  border-bottom: none;
  opacity: .8;
  justify-content: center;
}
.site-footer { border-top-color: var(--accent); }
.site-footer p { margin: 0; }
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.brand-logo { height: calc(var(--bar-height) - 12px); display: block; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,255,136,.3)); }
.brand-mark {
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glitch { position: relative; display: inline-block; text-shadow: 0 0 8px rgba(0,255,136,.6), 0 0 20px rgba(0,255,136,.35); }
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  opacity: .6;
  filter: blur(.5px);
  clip-path: polygon(0 2%, 100% 2%, 100% 12%, 0 12%);
}
.glitch::before { transform: translate(2px, -1px); color: #00ffaa; mix-blend-mode: screen; }
.glitch::after { transform: translate(-2px, 1px); color: #00dd66; mix-blend-mode: screen; }
.glitch:hover { animation: hue 3s linear infinite; }
.brand-name { opacity: .9; font-weight: 600; }
.site-nav .nav-link {
  margin-left: 14px;
  color: var(--text);
  text-decoration: none;
  opacity: .85;
}
.site-nav .nav-link:hover { color: var(--accent); opacity: 1; }

.container {
  max-width: 1200px;
  margin: 24px auto 48px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent 40%),
    rgba(15, 20, 27, 0.60);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px var(--shadow), 0 0 0 1px rgba(0,255,136,.06), 0 0 24px rgba(0,255,136,.06) inset;
  padding: 24px;
  position: relative;
}
.panel-hero, .share-panel { min-height: clamp(680px, 70vh, 900px); display: flex; flex-direction: column; gap: 16px; }
/* Ensure paste view content fills space nicely inside hero card */
.panel-hero .paste-content { min-height: 480px; flex: 1; }
.panel::before, .panel::after {
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--accent);
  opacity: .35;
}
.panel::before { left: 8px; top: 8px; border-right: 0; border-bottom: 0; }
.panel::after { right: 8px; bottom: 8px; border-left: 0; border-top: 0; }
.panel-title {
  margin: 0 0 12px 0;
  font-size: inherit;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,255,136,.25);
}
.panel-header { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.panel-meta { color: var(--muted); font-size: inherit; display: flex; gap: 14px; }

.field { display: grid; gap: 8px; margin-bottom: 14px; }
.field-label { color: var(--muted); font-size: inherit; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }

input[type="text"], input[type="password"], textarea {
  width: 100%;
  color: var(--text);
  background: rgba(14,20,28,0.55);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  padding: 14px 14px;
  font-size: inherit;
  font-family: inherit;
  outline: none;
  transition: border .15s ease, box-shadow .15s ease;
  caret-color: var(--accent);
  box-shadow: inset 0 0 24px rgba(0,255,136,.04), 0 0 0 1px rgba(0,255,136,.06);
  backdrop-filter: blur(6px) saturate(120%);
}
input[type="text"], input[type="password"] { height: 48px; }
input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.22);
}
textarea { line-height: 1.5; resize: vertical; min-height: 360px; }

.actions { display: flex; gap: 10px; }
.btn {
  appearance: none;
  border: 1px solid var(--outline);
  color: var(--text);
  background: #0e141c;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform .06s ease, border-color .15s ease, background .15s ease;
  text-shadow: 0 0 8px rgba(0,255,136,.24);
  font-family: inherit;
  font-size: inherit;
}
.btn:hover { border-color: var(--accent); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, rgba(0,255,136,.22), rgba(0,255,136,.12));
  border-color: var(--accent-soft);
  box-shadow: 0 0 12px rgba(0,255,136,.18), inset 0 0 12px rgba(0,255,136,.12);
}
.btn-ghost {
  background: transparent;
}

.toolbar .filename-input {
  width: 360px;
  max-width: 60vw;
}

pre.paste-content {
  margin: 12px 0 0;
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(14,20,28,0.55);
  border: 1px solid var(--outline);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  text-shadow: 0 0 6px rgba(0,255,136,.06);
}

code { color: var(--accent); font-family: inherit; }

.js .panel { animation: float-in .35s ease both; }
@keyframes float-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes grid-shift {
  to { background-position: 52px 52px, 52px 52px; }
}
@keyframes hue {
  0% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(20deg); }
  100% { filter: hue-rotate(0deg); }
}

::selection {
  background: rgba(0,255,136,.35);
  color: var(--text);
}
