/* =========================================== */
/* GRADIENT OVERLAYS 2026 */
/* Award-winning subtle gradients for depth */
/* =========================================== */

:root {
  --gradient-opacity: 0.15;
  --gradient-opacity-strong: 0.25;
  --gradient-opacity-subtle: 0.08;
  --gradient-blend-mode: overlay;
}

/* =========================================== */
/* GRADIENT OVERLAY BASE */
/* =========================================== */

#main-content-section .section {
  position: relative;
}

#main-content-section .section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

#main-content-section .section.gradient-overlay::before {
  opacity: 1;
}

/* =========================================== */
/* PRIMARY GRADIENT OVERLAYS */
/* =========================================== */

/* Top to bottom gradient */
#main-content-section .section.gradient-top-bottom::before {
  background: linear-gradient(
    to bottom,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Bottom to top gradient */
#main-content-section .section.gradient-bottom-top::before {
  background: linear-gradient(
    to top,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Left to right gradient */
#main-content-section .section.gradient-left-right::before {
  background: linear-gradient(
    to right,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Right to left gradient */
#main-content-section .section.gradient-right-left::before {
  background: linear-gradient(
    to left,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* =========================================== */
/* DIAGONAL GRADIENTS */
/* =========================================== */

/* Top-left to bottom-right */
#main-content-section .section.gradient-diagonal-tl-br::before {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Top-right to bottom-left */
#main-content-section .section.gradient-diagonal-tr-bl::before {
  background: linear-gradient(
    225deg,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* =========================================== */
/* RADIAL GRADIENTS */
/* =========================================== */

/* Radial from center */
#main-content-section .section.gradient-radial-center::before {
  background: radial-gradient(
    circle at center,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 70%
  );
}

/* Radial from top */
#main-content-section .section.gradient-radial-top::before {
  background: radial-gradient(
    ellipse at top,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 70%
  );
}

/* Radial from bottom */
#main-content-section .section.gradient-radial-bottom::before {
  background: radial-gradient(
    ellipse at bottom,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 70%
  );
}

/* =========================================== */
/* CORNER GRADIENTS */
/* =========================================== */

/* Top-left corner */
#main-content-section .section.gradient-corner-tl::before {
  background: radial-gradient(
    circle at top left,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%
  );
}

/* Top-right corner */
#main-content-section .section.gradient-corner-tr::before {
  background: radial-gradient(
    circle at top right,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    transparent 50%
  );
}

/* Bottom-left corner */
#main-content-section .section.gradient-corner-bl::before {
  background: radial-gradient(
    circle at bottom left,
    rgba(139, 92, 246, var(--gradient-opacity)) 0%,
    transparent 50%
  );
}

/* Bottom-right corner */
#main-content-section .section.gradient-corner-br::before {
  background: radial-gradient(
    circle at bottom right,
    rgba(139, 92, 246, var(--gradient-opacity)) 0%,
    transparent 50%
  );
}

/* =========================================== */
/* MULTI-COLOR GRADIENTS */
/* =========================================== */

/* Purple to pink */
#main-content-section .section.gradient-purple-pink::before {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, var(--gradient-opacity)) 0%,
    rgba(139, 92, 246, var(--gradient-opacity)) 50%,
    rgba(236, 72, 153, var(--gradient-opacity)) 100%
  );
}

/* Blue to purple */
#main-content-section .section.gradient-blue-purple::before {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, var(--gradient-opacity)) 0%,
    rgba(99, 102, 241, var(--gradient-opacity)) 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Warm gradient */
#main-content-section .section.gradient-warm::before {
  background: linear-gradient(
    135deg,
    rgba(251, 146, 60, var(--gradient-opacity)) 0%,
    rgba(236, 72, 153, var(--gradient-opacity)) 50%,
    rgba(139, 92, 246, var(--gradient-opacity)) 100%
  );
}

/* Cool gradient */
#main-content-section .section.gradient-cool::before {
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, var(--gradient-opacity)) 0%,
    rgba(99, 102, 241, var(--gradient-opacity)) 50%,
    rgba(14, 165, 233, var(--gradient-opacity)) 100%
  );
}

/* =========================================== */
/* OPACITY VARIANTS */
/* =========================================== */

/* Strong gradient */
#main-content-section .section.gradient-strong::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, var(--gradient-opacity-strong)) 0%,
    rgba(139, 92, 246, var(--gradient-opacity-strong)) 100%
  );
}

/* Subtle gradient */
#main-content-section .section.gradient-subtle::before {
  opacity: 1;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, var(--gradient-opacity-subtle)) 0%,
    rgba(139, 92, 246, var(--gradient-opacity-subtle)) 100%
  );
}

/* =========================================== */
/* BLEND MODES */
/* =========================================== */

#main-content-section .section.gradient-blend-overlay::before {
  mix-blend-mode: overlay;
}

#main-content-section .section.gradient-blend-soft-light::before {
  mix-blend-mode: soft-light;
}

#main-content-section .section.gradient-blend-multiply::before {
  mix-blend-mode: multiply;
}

#main-content-section .section.gradient-blend-screen::before {
  mix-blend-mode: screen;
}

/* =========================================== */
/* CONTENT POSITIONING */
/* =========================================== */

/* Ensure content is above gradient */
#main-content-section .section.gradient-overlay > * {
  position: relative;
  z-index: 1;
}

/* =========================================== */
/* ANIMATED GRADIENTS */
/* =========================================== */

#main-content-section .section.gradient-animated::before {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

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

/* =========================================== */
/* SECTION PATTERN COMBINATIONS */
/* =========================================== */

/* Apply gradient to section-pattern sections */
#main-content-section .section.section-pattern.gradient-overlay::before {
  opacity: 0.2; /* Slightly stronger for pattern sections */
}

/* =========================================== */
/* RESPONSIVE ADJUSTMENTS */
/* =========================================== */

@media (max-width: 768px) {
  /* Reduce gradient opacity on mobile */
  :root {
    --gradient-opacity: 0.1;
    --gradient-opacity-strong: 0.15;
    --gradient-opacity-subtle: 0.05;
  }
  
  /* Disable animated gradients on mobile for performance */
  #main-content-section .section.gradient-animated::before {
    animation: none;
  }
}

/* =========================================== */
/* ACCESSIBILITY */
/* =========================================== */

@media (prefers-contrast: high) {
  /* Reduce gradient opacity for high contrast */
  :root {
    --gradient-opacity: 0.05;
    --gradient-opacity-strong: 0.08;
    --gradient-opacity-subtle: 0.02;
  }
}

@media (prefers-reduced-motion: reduce) {
  #main-content-section .section.gradient-animated::before {
    animation: none;
  }
  
  #main-content-section .section::before {
    transition: none;
  }
}

/* =========================================== */
/* PRINT STYLES */
/* =========================================== */

@media print {
  #main-content-section .section::before {
    display: none;
  }
}

