/* Table View Landing Page Style System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg-dark: #090d16;
  --bg-card: rgba(17, 24, 39, 0.7);
  --border-card: rgba(255, 255, 255, 0.08);
  --accent-indigo: #6366f1;
  --accent-violet: #8b5cf6;
  --accent-fuchsia: #d946ef;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  background-image:
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 40%);
  background-attachment: fixed;
}

/* Glassmorphism utility */
.glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
}

.glass-interactive:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
  transform: translateY(-2px);
}

/* Custom Gradients */
.text-gradient {
  background: linear-gradient(135deg, #a5b4fc 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-accent {
  background: linear-gradient(
    135deg,
    var(--accent-indigo) 0%,
    var(--accent-violet) 50%,
    var(--accent-fuchsia) 100%
  );
}

.border-gradient-glow {
  position: relative;
}

.border-gradient-glow::before {
  content: '';
  position: absolute;
  inset: -1.5px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.5),
    rgba(139, 92, 246, 0.5),
    rgba(217, 70, 239, 0.5)
  );
  border-radius: inherit;
  z-index: -1;
  opacity: 0.8;
  filter: blur(10px);
  transition: opacity 0.3s ease;
}

.border-gradient-glow:hover::before {
  opacity: 1;
  filter: blur(14px);
}

/* Custom Animations */
@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.75;
  }
}

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

/* Custom SQL editor styles */
.terminal-window {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.terminal-header {
  background: rgba(3, 7, 18, 0.85);
  border-bottom: 1px solid var(--border-card);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.terminal-body {
  font-family: var(--font-mono);
  background: rgba(9, 13, 22, 0.95);
  padding: 16px;
}

.sql-keyword {
  color: #f472b6;
}
.sql-string {
  color: #34d399;
}
.sql-identifier {
  color: #60a5fa;
}
.sql-comment {
  color: #64748b;
  font-style: italic;
}

/* Custom grid result table style */
.result-table th {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.result-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Text Shimmer/Shine Animation */
.shimmer-text-silver {
  background: linear-gradient(
    to right,
    #f8fafc 20%,
    #cbd5e1 40%,
    #ffffff 50%,
    #cbd5e1 60%,
    #f8fafc 80%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 6s linear infinite;
}

.shimmer-text-colored {
  background: linear-gradient(
    to right,
    #a5b4fc 10%,
    #c084fc 35%,
    #ffffff 50%,
    #f472b6 65%,
    #a5b4fc 90%
  );
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shine 6s linear infinite;
}

@keyframes text-shine {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

/* Infinite Marquee Loop styling */
.marquee-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  /* Creates a smooth fade-out gradient mask on the edges */
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 15%,
    black 85%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    /* Translate by exactly -50% because the track contains Set A + Set B (duplicated) */
    transform: translateX(calc(-50% - 12px));
  }
}
