/* Zila Ionflare Theme - Custom Animations & Styling */

/* Keyframe Animations */
@keyframes particle-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.6;
  }
  25% {
    transform: translate(10px, -20px) scale(1.1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-5px, -40px) scale(0.9);
    opacity: 0.5;
  }
  75% {
    transform: translate(-15px, -20px) scale(1.05);
    opacity: 0.7;
  }
}

@keyframes particle-drift {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(-100vh) translateX(30px);
  }
}

@keyframes tilt-shift {
  0%,
  100% {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
  }
  25% {
    transform: perspective(1000px) rotateX(1deg) rotateY(-1deg);
  }
  50% {
    transform: perspective(1000px) rotateX(-1deg) rotateY(1deg);
  }
  75% {
    transform: perspective(1000px) rotateX(1deg) rotateY(1deg);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3), 0 0 40px rgba(138, 43, 226, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5), 0 0 60px rgba(138, 43, 226, 0.4);
  }
}

@keyframes ribbon-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Particle System */
.particle-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.8), rgba(138, 43, 226, 0.4));
  animation: particle-drift 15s linear infinite;
  opacity: 0;
}

.particle:nth-child(odd) {
  background: radial-gradient(circle, rgba(138, 43, 226, 0.8), rgba(0, 255, 255, 0.4));
  animation-duration: 18s;
}

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

/* Tilt Effects */
.tilt-card {
  animation: tilt-shift 8s ease-in-out infinite;
  transform-style: preserve-3d;
}

.tilt-card:hover {
  animation-play-state: paused;
  transform: perspective(1000px) scale(1.02);
}

/* Glow Effects */
.glow-cyan {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.4), 0 0 30px rgba(0, 255, 255, 0.2);
}

.glow-violet {
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.4), 0 0 30px rgba(138, 43, 226, 0.2);
}

.glow-pulse-effect {
  animation: glow-pulse 3s ease-in-out infinite;
}

/* Ribbon Flow Background */
.ribbon-bg {
  background: linear-gradient(
    135deg,
    rgba(0, 255, 255, 0.1) 0%,
    rgba(138, 43, 226, 0.1) 25%,
    rgba(0, 255, 255, 0.15) 50%,
    rgba(138, 43, 226, 0.1) 75%,
    rgba(0, 255, 255, 0.1) 100%
  );
  background-size: 400% 400%;
  animation: ribbon-flow 15s ease infinite;
}

/* Shimmer Effect */
.shimmer-effect {
  position: relative;
  overflow: hidden;
}

.shimmer-effect::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
  animation: shimmer 3s infinite;
}

/* Prose Styling for Readability */
.prose-content {
  line-height: 1.75;
  color: #e2e8f0;
}

.prose-content p {
  margin-bottom: 1.25rem;
}

.prose-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #00ffff;
}

.prose-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #8a2be2;
}

.prose-content ul,
.prose-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.prose-content li {
  margin-bottom: 0.5rem;
}

.prose-content strong {
  color: #00ffff;
  font-weight: 600;
}

.prose-content a {
  color: #8a2be2;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.prose-content a:hover {
  color: #00ffff;
}

/* Table Styling */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.5rem;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
  overflow: hidden;
}

.table-responsive th,
.table-responsive td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.table-responsive th {
  background: rgba(0, 255, 255, 0.1);
  color: #00ffff;
  font-weight: 600;
}

.table-responsive tr:hover {
  background: rgba(138, 43, 226, 0.1);
}

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

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ffff, #8a2be2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #00cccc, #7a1bcf);
}

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

/* Grid Glass Effect */
.glass-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 12px;
}

.glass-card:hover {
  border-color: rgba(138, 43, 226, 0.4);
  background: rgba(15, 23, 42, 0.8);
}

/* Button Enhancements */
.btn-primary-glow:hover {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6), 0 0 50px rgba(0, 255, 255, 0.3);
}

.btn-secondary-glow:hover {
  box-shadow: 0 0 25px rgba(138, 43, 226, 0.6), 0 0 50px rgba(138, 43, 226, 0.3);
}
