@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Orbitron:wght@400;700&display=swap');

:root {
 --bg: #050b14;
 --panel: rgba(10, 20, 35, 0.7);
 --cyan: #00e5ff;
 --neon-pink: #ff0055;
 --text: #d8f3ff;
 --text-muted: #8ab4f8;
 --border: rgba(0, 229, 255, 0.2);
}

body {
 background: var(--bg);
 background-image: 
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
 background-size: 30px 30px;
 color: var(--text);
 font-family: 'Fira Code', monospace;
 margin: 0;
 line-height: 1.5;
}

h1, h2, h3 {
 font-family: 'Orbitron', sans-serif;
 text-transform: uppercase;
 letter-spacing: 2px;
 margin-top: 0;
}

.container {
 max-width: 1200px;
 margin: auto;
 padding: 30px;
}

.card {
 background: var(--panel);
 border: 1px solid var(--border);
 padding: 25px;
 margin: 15px 0;
 border-radius: 8px;
 backdrop-filter: blur(10px);
 transition: all 0.3s ease;
 position: relative;
 overflow: hidden;
 cursor: default;
}

#cards .card {
 cursor: pointer;
}

.card::before {
 content: '';
 position: absolute;
 top: 0; left: 0;
 width: 4px;
 height: 100%;
 background: var(--cyan);
 box-shadow: 0 0 10px var(--cyan);
}

#cards .card:hover, .card.glow {
 border-color: rgba(0, 229, 255, 0.6);
 box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

input {
 width: 100%;
 padding: 15px;
 background: rgba(0,0,0,0.5);
 color: var(--text);
 border: 1px solid var(--cyan);
 font-family: 'Fira Code', monospace;
 font-size: 16px;
 outline: none;
 transition: box-shadow 0.3s;
 border-radius: 4px;
 box-sizing: border-box;
}

input:focus {
 box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

a.back-btn {
 display: inline-block;
 color: var(--cyan);
 text-decoration: none;
 margin-bottom: 20px;
 padding: 8px 15px;
 border: 1px solid var(--cyan);
 border-radius: 4px;
 text-transform: uppercase;
 font-family: 'Orbitron', sans-serif;
 font-size: 14px;
 transition: all 0.3s;
 background: rgba(0, 229, 255, 0.05);
}

a.back-btn:hover {
 background: var(--cyan);
 color: #000;
 box-shadow: 0 0 15px var(--cyan);
}

/* Specific Cyberpunk classes */
.grid-2 {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 20px;
}

@media(max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.data-group {
 margin-bottom: 15px;
}

.data-label {
 color: var(--text-muted);
 font-size: 0.85em;
 text-transform: uppercase;
 margin-bottom: 4px;
 display: block;
}

.data-value {
 font-size: 1.1em;
 font-weight: 600;
 word-break: break-all;
}

.badge {
 display: inline-block;
 padding: 4px 8px;
 border-radius: 4px;
 font-size: 0.8em;
 text-transform: uppercase;
 font-weight: bold;
 background: rgba(0, 229, 255, 0.1);
 color: var(--cyan);
 border: 1px solid var(--cyan);
}

.badge.high { border-color: var(--neon-pink); color: var(--neon-pink); background: rgba(255, 0, 85, 0.1); }
.badge.alert { border-color: #ffaa00; color: #ffaa00; background: rgba(255, 170, 0, 0.1); }
.badge.stale { border-color: #ff2b99; color: #ff66cc; background: rgba(255, 43, 153, 0.12); text-shadow: 0 0 8px rgba(255, 102, 204, 0.35); }

.stale-note .data-value {
  color: var(--neon-pink);
  font-weight: 700;
}

pre.code-block {
 background: rgba(0, 0, 0, 0.6);
 padding: 15px;
 border: 1px solid #333;
 border-left: 3px solid var(--neon-pink);
 color: #a5d6ff;
 white-space: pre-wrap;
 word-break: break-all;
 font-size: 0.9em;
 overflow-x: auto;
 border-radius: 4px;
}

.section-title {
 border-bottom: 1px dashed var(--border);
 padding-bottom: 10px;
 margin-top: 30px;
 margin-bottom: 20px;
 color: var(--cyan);
 display: flex;
 align-items: center;
 gap: 10px;
}

.section-title::before {
 content: '>>';
 color: var(--neon-pink);
}

ul.ref-list {
 list-style: none;
 padding: 0;
 margin: 0;
}

ul.ref-list li {
 padding: 5px 0;
 border-bottom: 1px solid rgba(255,255,255,0.05);
}

ul.ref-list li::before {
 content: '[*] ';
 color: var(--cyan);
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.visualizer-orb {
  position: relative;
  background: rgba(10, 20, 35, 0.8);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 190px;
  height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
  transition: all 0.3s;
  box-sizing: border-box;
}

.visualizer-orb::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  box-shadow: inset 0 0 20px rgba(255,255,255,0.02);
  pointer-events: none;
}

.visualizer-orb:hover {
  background: rgba(0, 229, 255, 0.05);
  box-shadow: 0 0 40px rgba(0, 229, 255, 0.15);
}

.stat-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2), inset 0 0 15px rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.05);
  position: relative;
}

.stat-orb::before {
  content: '';
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--neon-pink);
  animation: spin 4s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text);
  text-shadow: 0 0 5px var(--cyan);
}

.stat-label {
  font-size: 0.6em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  margin-top: 5px;
}

.search-container {
  position: relative;
  margin-bottom: 30px;
}

.search-container::before {
  content: '>';
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--neon-pink);
  font-family: 'Fira Code', monospace;
  font-weight: bold;
}

#search {
  padding-left: 35px;
  border-radius: 20px;
}

.glitch {
  position: relative;
  color: white;
  font-size: 2em;
}

.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--neon-pink);
  clip: rect(24px, 550px, 90px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--cyan);
  clip: rect(85px, 550px, 140px, 0);
  animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); }
  20% { clip: rect(12px, 9999px, 59px, 0); }
  40% { clip: rect(48px, 9999px, 29px, 0); }
  60% { clip: rect(62px, 9999px, 73px, 0); }
  80% { clip: rect(10px, 9999px, 51px, 0); }
  100% { clip: rect(89px, 9999px, 43px, 0); }
}