/* Tinder-Phish Styles - Exact match of Next.js version */

:root {
  --background: #0a0a0a;
  --foreground: #00ff41;
  --terminal-green: #00ff41;
  --terminal-red: #ff0040;
  --terminal-blue: #00d9ff;
  --terminal-yellow: #ffff00;
}

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

body {
  background: #000000;
  color: var(--terminal-green);
  font-family: ui-monospace, 'Courier New', monospace;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Scanline effect */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(0deg,
      rgba(0, 0, 0, 0.15),
      rgba(0, 0, 0, 0.15) 1px,
      transparent 1px,
      transparent 2px);
  pointer-events: none;
  z-index: 9999;
}

/* Glitch effect for headings */
@keyframes glitch {
  0% {
    text-shadow: 2px 2px #ff0040, -2px -2px #00d9ff;
  }
  25% {
    text-shadow: -2px -2px #ff0040, 2px 2px #00d9ff;
  }
  50% {
    text-shadow: 2px -2px #ff0040, -2px 2px #00d9ff;
  }
  75% {
    text-shadow: -2px 2px #ff0040, 2px -2px #00d9ff;
  }
  100% {
    text-shadow: 2px 2px #ff0040, -2px -2px #00d9ff;
  }
}

.glitch {
  animation: glitch 0.3s infinite;
}

/* Terminal cursor blink */
@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}

.cursor-blink::after {
  content: '▮';
  animation: blink 1s infinite;
  margin-left: 2px;
}

/* Pulse animation for background */
@keyframes pulse {
  0%, 100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

/* Utility Classes */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.overflow-auto {
  overflow: auto;
}

.pointer-events-none {
  pointer-events: none;
}

.select-none {
  user-select: none;
}

.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/* Spacing */
.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.p-12 {
  padding: 3rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.m-2 {
  margin: 0.5rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}

.space-x-4 > * + * {
  margin-left: 1rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}

.gap-2 {
  gap: 0.5rem;
}

/* Sizing */
.w-full {
  width: 100%;
}

.w-3 {
  width: 0.75rem;
}

.w-14 {
  width: 3.5rem;
}

.w-16 {
  width: 4rem;
}

.h-3 {
  height: 0.75rem;
}

.h-8 {
  height: 2rem;
}

.h-14 {
  height: 3.5rem;
}

.h-16 {
  height: 4rem;
}

.h-full {
  height: 100%;
}

.min-w-0 {
  min-width: 0;
}

.max-w-md {
  max-width: 28rem;
}

.flex-1 {
  flex: 1;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-8xl {
  font-size: 6rem;
  line-height: 1;
}

.font-bold {
  font-weight: 700;
}

.font-mono {
  font-family: ui-monospace, 'Courier New', monospace;
}

.text-center {
  text-align: center;
}

.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

.whitespace-pre-wrap {
  white-space: pre-wrap;
}

/* Colors */
.bg-black {
  background-color: #000000;
}

.bg-terminal-green {
  background-color: var(--terminal-green);
}

.text-terminal-green {
  color: var(--terminal-green);
}

.text-terminal-red {
  color: var(--terminal-red);
}

.text-black {
  color: #000000;
}

.border-terminal-green {
  border-color: var(--terminal-green);
}

.border-terminal-red {
  border-color: var(--terminal-red);
}

/* Borders */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-2 {
  border-width: 2px;
  border-style: solid;
}

.border-4 {
  border-width: 4px;
  border-style: solid;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-b-2 {
  border-bottom-width: 2px;
  border-bottom-style: solid;
}

.rounded {
  border-radius: 0.25rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded-full {
  border-radius: 9999px;
}

/* Opacity */
.opacity-10 {
  opacity: 0.1;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-60 {
  opacity: 0.6;
}

.opacity-70 {
  opacity: 0.7;
}

.opacity-80 {
  opacity: 0.8;
}

/* Buttons */
button {
  cursor: pointer;
  font-family: ui-monospace, 'Courier New', monospace;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Input fields */
input {
  font-family: ui-monospace, 'Courier New', monospace;
  outline: none;
  transition: all 0.3s ease;
}

input::placeholder {
  opacity: 0.3;
}

input:focus {
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Card container */
.card-container {
  position: relative;
  width: 100%;
  max-width: 28rem;
  height: 600px;
}

.email-card {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #000000;
  border: 2px solid var(--terminal-green);
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
  touch-action: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Swipe overlays */
.swipe-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.swipe-overlay.active {
  opacity: 1;
}

.swipe-label {
  font-size: 3.75rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  font-family: ui-monospace, 'Courier New', monospace;
}

.phish-label {
  color: var(--terminal-red);
  border: 4px solid var(--terminal-red);
  transform: rotate(-12deg);
}

.safe-label {
  color: var(--terminal-green);
  border: 4px solid var(--terminal-green);
  transform: rotate(12deg);
}

/* Matrix background effect */
.matrix-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}

.matrix-line {
  position: absolute;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--terminal-green), transparent);
}

/* Grid background */
.grid-bg {
  background-image: linear-gradient(var(--terminal-green) 1px, transparent 1px),
    linear-gradient(90deg, var(--terminal-green) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Shadow effects */
.shadow-glow {
  box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
}

.shadow-glow-strong {
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

.shadow-glow-red {
  box-shadow: 0 0 15px rgba(255, 0, 64, 0.3);
}

/* Transitions */
.transition-all {
  transition: all 0.3s ease;
}

/* Hover effects */
button.btn-primary:hover {
  background-color: rgba(0, 255, 65, 0.9);
  box-shadow: 0 0 25px rgba(0, 255, 65, 0.7);
}

button.btn-secondary:hover {
  background-color: var(--terminal-green);
  color: #000000;
  box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
}

button.btn-danger:hover {
  background-color: var(--terminal-red);
  color: #000000;
  box-shadow: 0 0 25px rgba(255, 0, 64, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
  .text-6xl {
    font-size: 2.5rem;
  }
  
  .text-8xl {
    font-size: 4rem;
  }
  
  .card-container {
    height: 500px;
  }
}

/* Flexbox utilities */
.flex-wrap {
  flex-wrap: wrap;
}

/* Top header */
.top-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 50;
  border-bottom: 1px solid rgba(0, 255, 65, 0.3);
  background-color: rgba(0, 0, 0, 0.8);
}

/* Bottom controls */
.bottom-controls {
  position: absolute;
  bottom: 2rem;
  display: flex;
  gap: 2rem;
  z-index: 40;
}

.control-hint {
  position: absolute;
  bottom: 7rem;
  text-align: center;
  color: rgba(0, 255, 65, 0.5);
  font-size: 0.75rem;
  font-family: ui-monospace, 'Courier New', monospace;
}
