/* Waqtak App - Modern Gaming Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --secondary: #ec4899;
  --accent: #06b6d4;
  --dark-bg: #0f172a;
  --dark-surface: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Cairo', sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-main);
  overflow-x: hidden;
}

[dir="rtl"] body {
  font-family: 'Cairo', sans-serif;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--primary-dark), var(--secondary));
}

/* Utilities */
.glass-panel {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.glass-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(139, 92, 246, 0.1);
  transition: all 0.4s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px -10px rgba(139, 92, 246, 0.3);
  background: rgba(30, 41, 59, 0.8);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-main {
  background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.2); }
  50% { box-shadow: 0 0 40px rgba(236, 72, 153, 0.4); }
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-blob { animation: blob 7s infinite; }
.animate-glow { animation: pulse-glow 3s infinite; }

/* Custom Components */
.neon-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

.neon-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: -1;
  transition: opacity 0.3s ease;
}

.neon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

.feature-icon-wrapper {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  border-color: var(--primary);
  transform: rotateY(180deg);
}

.pricing-popular {
  border: 2px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.pricing-popular::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 100%;
  background: radial-gradient(circle at top, rgba(139, 92, 246, 0.15), transparent 70%);
  pointer-events: none;
}

/* Nav */
nav {
  transition: all 0.3s ease;
}
nav.scrolled {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* Loader */
.loader {
  width: 48px;
  height: 48px;
  border: 5px solid var(--text-main);
  border-bottom-color: var(--primary);
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* RTL Support */
[dir="rtl"] .flip-rtl {
  transform: scaleX(-1);
}
