/**
 * Custom Style Sheet for ATW AI Tools (Dark Premium Theme)
 */

:root {
  --bg-deep: #02040a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.6);
  --card-bg: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #3b82f6;
  --accent-secondary: #c026d3;
  --accent-tertiary: #06b6d4;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
}

.theme-neon {
  --bg-deep: #05010a;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --card-bg: rgba(192, 38, 211, 0.05);
  --card-border: rgba(192, 38, 211, 0.2);
  --accent-primary: #c026d3;
  --accent-secondary: #06b6d4;
  --accent-tertiary: #f43f5e;
}

.theme-light {
  --bg-deep: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --card-bg: #ffffff;
  --card-border: rgba(15, 23, 42, 0.08);
  --accent-primary: #2563eb;
  --accent-secondary: #7c3aed;
  --accent-tertiary: #0d9488;
  --glass-bg: rgba(15, 23, 42, 0.02);
  --glass-border: rgba(15, 23, 42, 0.06);
}

html {
  font-family: 'Outfit', system-ui, sans-serif;
  scroll-behavior: smooth;
  background: var(--bg-deep);
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Override Utilities */
.text-white {
  color: var(--text-primary) !important;
}
.text-white\/80 {
  color: var(--text-primary) !important;
  opacity: 0.85;
}
.text-white\/70 {
  color: var(--text-primary) !important;
  opacity: 0.7;
}
.text-white\/60 {
  color: var(--text-secondary) !important;
}
.text-white\/50 {
  color: var(--text-secondary) !important;
  opacity: 0.8;
}
.text-white\/40 {
  color: var(--text-secondary) !important;
  opacity: 0.65;
}
.text-white\/30 {
  color: var(--text-secondary) !important;
  opacity: 0.5;
}
.border-white\/5 {
  border-color: var(--card-border) !important;
}
.border-white\/10 {
  border-color: var(--card-border) !important;
  opacity: 0.9;
}
.bg-white\/5 {
  background-color: var(--glass-bg) !important;
}
.bg-black\/40 {
  background-color: var(--glass-bg) !important;
}
.nav-modern {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--card-border);
}
.card-modern {
  background: var(--card-bg) !important;
  border: 1px solid var(--card-border) !important;
  color: var(--text-primary) !important;
}
body.theme-light .cyber-grid {
  opacity: 0.03;
}
body.theme-light input, 
body.theme-light textarea, 
body.theme-light select {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
}
body.theme-light input::placeholder, 
body.theme-light textarea::placeholder {
  color: #94a3b8 !important;
}

* {
  box-sizing: border-box;
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Premium Glassmorphism */
.glass-effect {
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.glass-card {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 50px rgba(59, 130, 246, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.card-modern {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 1.5rem;
}

.holographic {
  position: relative;
  overflow: hidden;
}

.holographic::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 0%, rgba(255, 255, 255, 0) 45%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 55%, transparent 100%);
  transform: rotate(-45deg);
  animation: hologleam 3s infinite;
}

@keyframes hologleam {
  0% {
    transform: translateX(-100%) rotate(-45deg);
  }
  100% {
    transform: translateX(100%) rotate(-45deg);
  }
}

/* Advanced Gradients */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #60a5fa, #f472b6, #22d3ee);
  background-size: 200% auto;
  animation: textShine 4s linear infinite;
}

.text-gradient-alt {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-image: linear-gradient(to right, #34d399, #22d3ee, #60a5fa);
}

.bg-mesh {
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 100% 0%, rgba(192, 38, 211, 0.1) 0%, transparent 50%), radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%), radial-gradient(circle at 0% 100%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
}

.shimmer-bg {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.03) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* Modern Buttons */
.button-modern {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  font-weight: 700;
  transition: all 0.3s;
  background: linear-gradient(135deg, #1d4ed8 0%, #7e22ce 50%, #1d4ed8 100%);
  background-size: 200% 100%;
  box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.5);
}

.button-modern:hover {
  background-position: 100% 0;
  box-shadow: 0 15px 40px -10px rgba(59, 130, 246, 0.7);
  transform: translateY(-2px);
}

.button-modern:active {
  transform: scale(0.95);
}

.button-glass {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  transition: all 0.3s;
}

.button-glass:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

@keyframes textShine {
  to {
    background-position: 200% center;
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Neon Glows */
.neon-border {
  position: relative;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.neon-border::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  z-index: -10;
  border-radius: inherit;
  opacity: 0.3;
  filter: blur(4px);
  background: linear-gradient(45deg, #3b82f6, #c026d3, #06b6d4);
}

.terminal-text {
  font-family: 'Space Grotesk', monospace;
  color: #60a5fa;
  font-weight: 500;
  letter-spacing: -0.025em;
}

/* Cyber Grid Overlay */
.cyber-grid {
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
}

/* Interactive Glowing Orb */
.orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  background: radial-gradient(circle, #3b82f6, transparent 70%);
}

.hero-modern {
  position: relative;
  min-h: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.15) 0%, transparent 50%), radial-gradient(circle at 100% 0%, rgba(192, 38, 211, 0.1) 0%, transparent 50%), radial-gradient(circle at 100% 100%, rgba(6, 182, 212, 0.15) 0%, transparent 50%), radial-gradient(circle at 0% 100%, rgba(79, 70, 229, 0.1) 0%, transparent 50%);
}

.nav-modern {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s;
  padding: 1.5rem 2rem;
}

.nav-scrolled {
  padding: 0.75rem 2rem;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Markdown styling overrides */
.markdown-content h1 {
  font-size: 2.25rem;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

.markdown-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.markdown-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.markdown-content ul {
  list-style-type: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.markdown-content code {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  color: #93c5fd;
  font-family: monospace;
}

.markdown-content pre {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

/* Generic Tool & Form Overrides */
input, select, textarea {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  outline: none;
  transition: all 0.3s;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.input-modern {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  outline: none;
  transition: all 0.3s;
}

.input-modern:focus {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

/* Premium Pulse Shimmer loading animation styling */
.pulse-shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.03) 25%,
    rgba(255, 255, 255, 0.08) 37%,
    rgba(255, 255, 255, 0.03) 63%
  );
  background-size: 400% 100%;
  animation: pulse-shimmer-anim 1.4s ease infinite;
}

@keyframes pulse-shimmer-anim {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
