/**
 * Watheeq Checkmark Pattern System
 * Direct CSS file loaded via index.html to bypass build purging
 */

.watheeq-checkmark-container {
  position: relative;
  overflow: hidden;
}

.watheeq-checkmark-subtle {
  position: relative;
}

.watheeq-checkmark-subtle::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-purple.png');
  background-repeat: repeat;
  background-size: 150px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.watheeq-checkmark-progress {
  position: relative;
}

.watheeq-checkmark-progress::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-purple.png');
  background-repeat: repeat;
  background-size: 150px;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
  animation: pulsePattern 2s ease-in-out infinite;
}

@keyframes pulsePattern {
  0%, 100% {
    opacity: 0.08;
  }
  50% {
    opacity: 0.12;
  }
}

.watheeq-checkmark-success {
  position: relative;
}

.watheeq-checkmark-success::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-purple.png');
  background-repeat: repeat;
  background-size: 150px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: checkmarkReveal 0.6s ease-out forwards;
}

@keyframes checkmarkReveal {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.18;
  }
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
}

.watheeq-checkmark-milestone {
  position: relative;
}

.watheeq-checkmark-milestone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-blue.png');
  background-repeat: repeat;
  background-size: 180px;
  background-position: center;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.watheeq-checkmark-hero {
  position: relative;
}

.watheeq-checkmark-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-purple.png');
  background-repeat: repeat;
  background-size: 200px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.watheeq-checkmark-accent {
  position: relative;
}

.watheeq-checkmark-accent::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-blue.png');
  background-repeat: repeat;
  background-size: 160px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.watheeq-checkmark-celebration {
  position: relative;
}

.watheeq-checkmark-celebration::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/patterns/checkmark-gradient-purple.png');
  background-repeat: repeat;
  background-size: 150px;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  animation: celebrationPattern 1s ease-out forwards;
}

@keyframes celebrationPattern {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-5deg);
  }
  50% {
    opacity: 0.20;
    transform: scale(1.05) rotate(2deg);
  }
  100% {
    opacity: 0.15;
    transform: scale(1) rotate(0deg);
  }
}

.watheeq-checkmark-content {
  position: relative;
  z-index: 1;
}

.watheeq-checkmark-subtle > *,
.watheeq-checkmark-progress > *,
.watheeq-checkmark-success > *,
.watheeq-checkmark-milestone > *,
.watheeq-checkmark-hero > *,
.watheeq-checkmark-accent > *,
.watheeq-checkmark-celebration > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .watheeq-checkmark-subtle::before,
  .watheeq-checkmark-progress::before,
  .watheeq-checkmark-success::before {
    background-size: 105px;
  }
  .watheeq-checkmark-milestone::before {
    background-size: 126px;
  }
  .watheeq-checkmark-hero::before {
    background-size: 140px;
  }
  .watheeq-checkmark-accent::before {
    background-size: 112px;
  }
  .watheeq-checkmark-celebration::before {
    background-size: 105px;
  }
}

@media (max-width: 480px) {
  .watheeq-checkmark-subtle::before,
  .watheeq-checkmark-progress::before,
  .watheeq-checkmark-success::before {
    background-size: 75px;
    opacity: 0.08;
  }
  .watheeq-checkmark-milestone::before {
    background-size: 90px;
    opacity: 0.10;
  }
  .watheeq-checkmark-hero::before {
    background-size: 100px;
    opacity: 0.04;
  }
  .watheeq-checkmark-accent::before {
    background-size: 80px;
    opacity: 0.08;
  }
}

@media (prefers-reduced-motion: reduce) {
  .watheeq-checkmark-progress::before {
    animation: none;
    opacity: 0.10;
  }
  .watheeq-checkmark-success::before {
    animation: none;
    opacity: 0.15;
  }
  .watheeq-checkmark-celebration::before {
    animation: none;
    opacity: 0.15;
  }
}

[data-theme="dark"] .watheeq-checkmark-subtle::before,
[data-theme="dark"] .watheeq-checkmark-progress::before,
[data-theme="dark"] .watheeq-checkmark-success::before {
  background-image: url('/assets/patterns/checkmark-gradient-blue.png');
  opacity: 0.08;
}

[data-theme="dark"] .watheeq-checkmark-hero::before {
  background-image: url('/assets/patterns/checkmark-gradient-blue.png');
  opacity: 0.04;
}

