@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* Global Reset and Scrollbars */
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  scroll-behavior: smooth;
  background-color: #080808;
  color: #f3f4f6;
}

pre, code, .mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e11d48;
}

/* Selection Highlight */
::selection {
  background-color: #e11d48;
  color: #ffffff;
}

/* Custom Cyber/Terminal Utility Styles */
.glow-text-red {
  text-shadow: 0 0 10px rgba(225, 29, 72, 0.4), 0 0 20px rgba(225, 29, 72, 0.2);
}

.glow-text-green {
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.4), 0 0 20px rgba(16, 185, 129, 0.2);
}

.terminal-border {
  border: 1px solid #1f1f1f;
  transition: all 0.3s ease-in-out;
}

.terminal-border:hover {
  border-color: #e11d48;
  box-shadow: 0 0 15px rgba(225, 29, 72, 0.15);
}

.terminal-border-green:hover {
  border-color: #10b981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

/* Scanline and Crisscross Overlay Effects */
.scanline-bg {
  position: relative;
  overflow: hidden;
}

.scanline-bg::before {
  content: " ";
  display: block;
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 2;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* Background grid effect */
.grid-bg {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
}

/* Animations */
@keyframes blink {
  50% { opacity: 0; }
}

.cursor-blink::after {
  content: " _";
  animation: blink 1s step-start infinite;
  color: #e11d48;
}

@keyframes glitch {
  0% { transform: translate(0) }
  20% { transform: translate(-2px, 2px) }
  40% { transform: translate(-2px, -2px) }
  60% { transform: translate(2px, 2px) }
  80% { transform: translate(2px, -2px) }
  100% { transform: translate(0) }
}

.glitch-hover:hover {
  animation: glitch 0.3s linear infinite;
}

/* Slide in transitions for details drawer */
.drawer-transition {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tooltip */
.tooltip {
  position: relative;
}
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #171717;
  color: #ffffff;
  padding: 4px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease-in-out;
  border: 1px solid #262626;
  pointer-events: none;
  font-family: 'JetBrains Mono', monospace;
}
.tooltip:hover::after {
  opacity: 1;
  visibility: visible;
}
