/* Gradient Background Pattern - Subtle Grid Style */

/* Main container with gradient background */
.gradient-squares-bg {
  position: relative;
  background: var(--color-primary-bg);
  background-image: 
    radial-gradient(
      circle at 50% 50%,
      rgba(243, 127, 32, 0.06) 0%,
      rgba(243, 127, 32, 0.02) 40%,
      transparent 70%
    );
  overflow: hidden;
  min-height: 100vh;
}

/* Subtle grid pattern with smooth edges */
.gradient-squares-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(
      rgba(243, 127, 32, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(243, 127, 32, 0.15) 1px,
      transparent 1px
    );
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent 90%
  );
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 30%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 70%,
    transparent 90%
  );
  z-index: 1;
}

/* Hide individual squares - we only want grid lines */
.gradient-squares-grid {
  display: none;
}

.gradient-square {
  display: none;
}

/* Very subtle gradient overlay */
.gradient-overlay-animated {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 30%,
    rgba(243, 127, 32, 0.04) 0%,
    transparent 50%
  );
  z-index: 2;
}

/* Second overlay - minimal */
.gradient-overlay-animated2 {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 70%,
    rgba(255, 154, 64, 0.03) 0%,
    transparent 50%
  );
  z-index: 2;
}

/* Subtle vignette effect */
.gradient-depth {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(
      ellipse at center,
      transparent 0%,
      transparent 50%,
      rgba(0, 0, 0, 0.15) 90%,
      rgba(0, 0, 0, 0.25) 100%
    );
  pointer-events: none;
  z-index: 3;
}

/* Content wrapper */
.gradient-squares-content {
  position: relative;
  z-index: 10;
}

/* Theme variations - keep subtle */
[data-theme="navy"] .gradient-squares-bg {
  background: var(--color-primary-bg);
  background-image: 
    radial-gradient(
      circle at 50% 50%,
      rgba(59, 130, 246, 0.06) 0%,
      transparent 70%
    );
}

[data-theme="navy"] .gradient-squares-pattern {
  background-image: 
    linear-gradient(
      rgba(59, 130, 246, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(59, 130, 246, 0.15) 1px,
      transparent 1px
    );
}

[data-theme="orange"] .gradient-squares-pattern {
  background-image: 
    linear-gradient(
      rgba(239, 111, 26, 0.15) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(239, 111, 26, 0.15) 1px,
      transparent 1px
    );
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .gradient-squares-pattern {
    background-size: 60px 60px;
  }
}

/* Performance optimizations */
.gradient-squares-bg {
  will-change: background;
  transform: translateZ(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .gradient-overlay-animated,
  .gradient-overlay-animated2 {
    animation: none;
  }
}