@tailwind base;
@tailwind components;
@tailwind utilities;

@theme {
  --color-neon: #00ff9c;
  --color-neon-soft: #7dffc4;
  --color-cyan-neon: #22d3ee;
  --color-blood: #ff3b5c;
  --color-ink: #030705;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, "Courier New", monospace;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #020403;
  color: #d7fbe8;
  font-family: var(--font-mono);
  overflow-x: hidden;
}

.matrix-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(0, 255, 156, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 156, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 78%);
}

.scanlines::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0px,
    rgba(0, 0, 0, 0) 2px,
    rgba(0, 40, 20, 0.16) 3px,
    rgba(0, 0, 0, 0) 4px
  );
  mix-blend-mode: overlay;
}

.vignette::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 40%,
    transparent 30%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

.panel {
  background: linear-gradient(
    150deg,
    rgba(4, 20, 12, 0.86),
    rgba(2, 8, 6, 0.92)
  );
  border: 1px solid rgba(0, 255, 156, 0.22);
  backdrop-filter: blur(6px);
  box-shadow: 
    0 0 0 1px rgba(0, 0, 0, 0.6) inset,
    0 18px 40px -28px rgba(0, 255, 156, 0.6);
}

.panel-hover {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.panel-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 156, 0.55);
  box-shadow: 0 24px 60px -30px rgba(0, 255, 156, 0.85);
}

.glow {
  text-shadow: 
    0 0 6px rgba(0, 255, 156, 0.75),
    0 0 22px rgba(0, 255, 156, 0.35);
}

.glow-soft {
  text-shadow: 0 0 10px rgba(0, 255, 156, 0.35);
}

.corner::before, .corner::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: rgba(0, 255, 156, 0.8);
}
.corner::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
}
.corner::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

.label {
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(0, 255, 156, 0.72);
}

.btn-neon {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #00ff9c;
  border: 1px solid rgba(0, 255, 156, 0.45);
  background: rgba(0, 255, 156, 0.07);
  transition: all 0.22s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-neon:hover {
  background: rgba(0, 255, 156, 0.18);
  box-shadow: 0 0 24px rgba(0, 255, 156, 0.45);
  color: #eafff5;
}
.btn-solid {
  color: #03150c;
  background: linear-gradient(120deg, #00ff9c, #22d3ee);
  border-color: transparent;
  font-weight: 700;
}
.btn-solid:hover {
  color: #03150c;
  box-shadow: 0 0 30px rgba(0, 255, 156, 0.7);
}

.input-hacker {
  width: 100%;
  background: rgba(0, 12, 6, 0.85);
  border: 1px solid rgba(0, 255, 156, 0.28);
  padding: 0.7rem 0.9rem;
  color: #d7fbe8;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input-hacker::placeholder {
  color: rgba(125, 255, 196, 0.35);
}
.input-hacker:focus {
  border-color: rgba(0, 255, 156, 0.75);
  box-shadow: 0 0 18px rgba(0, 255, 156, 0.25);
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  41% { opacity: 1; }
  42% { opacity: 0.45; }
  43% { opacity: 1; }
  73% { opacity: 0.8; }
  74% { opacity: 1; }
}
.flicker {
  animation: flicker 6s infinite steps(1, end);
}

@keyframes caret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.caret::after {
  content: "█";
  margin-left: 2px;
  animation: caret 1s infinite;
  color: #00ff9c;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.rise {
  animation: riseIn 0.6s ease both;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: ticker 34s linear infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(255, 59, 92, 0); }
}
.live-dot {
  animation: pulseRing 1.6s infinite;
}

.no-scrollbar::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.no-scrollbar::-webkit-scrollbar-track {
  background: rgba(0, 255, 156, 0.06);
}
.no-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 156, 0.35);
}
.row-scroll {
  scroll-snap-type: x mandatory;
}
.row-scroll > * {
  scroll-snap-align: start;
}
::selection {
  background: rgba(0, 255, 156, 0.32);
  color: #eafff5;
}
