/* ============================================
   Animations & Effects
   ============================================ */

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@keyframes gradientMove {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -30px) scale(1.1); }
}

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

@keyframes floatReverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(-3deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blob {
  0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

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

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Floating elements */
.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: floatReverse 7s ease-in-out infinite; }
.float-3 { animation: float 8s ease-in-out infinite 1s; }
.float-4 { animation: floatReverse 5s ease-in-out infinite 0.5s; }

/* Blob shapes */
.blob {
  position: absolute;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  animation: blob 8s ease-in-out infinite;
  filter: blur(1px);
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(255, 179, 102, 0.3), rgba(255, 214, 165, 0.2));
  top: 10%;
  left: -5%;
}

.blob-2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.25), rgba(255, 179, 102, 0.15));
  bottom: 20%;
  right: 10%;
  animation-delay: -3s;
}

.blob-3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(255, 214, 165, 0.4), rgba(255, 179, 102, 0.2));
  top: 40%;
  right: 25%;
  animation-delay: -5s;
}

/* Glow effects */
.glow-hover {
  transition: box-shadow var(--transition), transform var(--transition);
}

.glow-hover:hover {
  box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 179, 102, 0.3);
}

/* Card hover lift */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}

.hover-lift:hover {
  transform: translateY(-6px) scale(1.02);
}

/* Stagger reveal */
.reveal-item {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Loading spinner */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

/* Skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--background) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Page load fade */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--background);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader .loader-logo {
  width: 64px;
  height: 64px;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Animated gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-dark), #E8860C, var(--primary));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Geometric decorations */
.geo-ring {
  position: absolute;
  border: 2px solid rgba(255, 179, 102, 0.2);
  border-radius: 50%;
}

.geo-ring-1 {
  width: 120px;
  height: 120px;
  top: 15%;
  right: 20%;
  animation: float 10s ease-in-out infinite;
}

.geo-ring-2 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 15%;
  animation: floatReverse 8s ease-in-out infinite;
}

/* Particle glow */
.particle-glow {
  box-shadow: 0 0 10px rgba(255, 179, 102, 0.5);
}

/* Success animation classes */
.animate-check circle {
  animation: drawCircle 0.6s ease forwards 0.2s;
}

.animate-check path {
  animation: drawCheck 0.4s ease forwards 0.6s;
}

/* Table row fade */
.table-row-animate {
  opacity: 0;
  transform: translateX(-10px);
}

.table-row-animate.visible {
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Status pulse dot */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.status-dot.pending { background: var(--warning); }
.status-dot.under-review { background: var(--info); }
.status-dot.accepted { background: var(--success); }
.status-dot.rejected { background: var(--danger); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---- ZTT Pixel Theme Animations ---- */

@keyframes logoPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes pixelDrift {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% {
    transform: translateY(-20px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes blockFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-24px) rotate(4deg); }
  66% { transform: translateY(12px) rotate(-3deg); }
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.logo-pulse {
  animation: logoPulse 3s ease-in-out infinite;
}

.progress-step.active {
  animation: btnBounce 2s ease-in-out infinite;
}

@keyframes btnBounce {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(0, -3px); }
}
