/* =============================================
   FLINT TECHNOLOGIES - SECTION DIVIDERS
   Global Section Divider System
   ============================================= */

/* Base Section Divider Spacing */
.section-divider {
  margin: 80px 0;
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Divider Line Styles */

/* Style 1: Simple Elegant Line */
.section-divider.style-line {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 15%,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.6) 50%,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 85%,
    transparent 100%
  );
}

/* Style 2: Gradient Brand Line */
.section-divider.style-gradient {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 90, 0, 0.2) 15%,
    rgba(255, 90, 0, 0.7) 50%,
    rgba(255, 90, 0, 0.2) 85%,
    transparent 100%
  );
  box-shadow: 0 0 8px rgba(255, 90, 0, 0.15);
}

/* Style 3: Double Line */
.section-divider.style-double {
  height: 5px;
  border-radius: 3px;
  background: linear-gradient(
    to bottom,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 0%,
    transparent 50%,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 100%
  );
}

/* Style 4: Centered Icon Divider */
.section-divider.style-icon {
  height: auto;
}

.section-divider.style-icon::before,
.section-divider.style-icon::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 100%
  );
}

.section-divider.style-icon::before {
  margin-right: 24px;
}

.section-divider.style-icon::after {
  margin-left: 24px;
  background: linear-gradient(
    90deg,
    rgba(var(--borders-color-opc, 226, 229, 234), 0.4) 0%,
    transparent 100%
  );
}

.section-divider.style-icon .divider-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-color1-opc, 255, 90, 0), 0.1);
  border-radius: 50%;
  border: 2px solid rgba(var(--primary-color1-opc, 255, 90, 0), 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(var(--primary-color1-opc, 255, 90, 0), 0.1);
}

.section-divider.style-icon .divider-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--primary-color1, #ff5a00);
}

.section-divider.style-icon:hover .divider-icon {
  background: rgba(var(--primary-color1-opc, 255, 90, 0), 0.2);
  border-color: rgba(var(--primary-color1-opc, 255, 90, 0), 0.5);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(var(--primary-color1-opc, 255, 90, 0), 0.2);
}

/* Style 5: Text Label Divider */
.section-divider.style-label {
  height: auto;
  gap: 24px;
}

.section-divider.style-label::before,
.section-divider.style-label::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--borders-color-opc, 226, 229, 234), 0.4);
}

.section-divider.style-label .divider-label {
  font-family: var(--font-inter, "Inter", sans-serif);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-color);
  opacity: 0.6;
  white-space: nowrap;
  padding: 0 8px;
}

/* Style 6: Geometric Dots */
.section-divider.style-dots {
  height: auto;
  gap: 8px;
}

.section-divider.style-dots::before,
.section-divider.style-dots::after {
  content: "";
  flex: 1;
  height: 2px;
  border-radius: 2px;
  background: rgba(var(--borders-color-opc, 226, 229, 234), 0.4);
}

.section-divider.style-dots .divider-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.section-divider.style-dots .divider-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color1, #ff5a00);
  opacity: 0.7;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(255, 90, 0, 0.3);
}

.section-divider.style-dots .divider-dots span:nth-child(2) {
  width: 10px;
  height: 10px;
  opacity: 1;
  box-shadow: 0 0 10px rgba(255, 90, 0, 0.4);
}

.section-divider.style-dots:hover .divider-dots span {
  opacity: 1;
  transform: scale(1.2);
}

/* Style 7: Glow Effect */
.section-divider.style-glow {
  height: 3px;
  border-radius: 3px;
  background: rgba(var(--primary-color1-opc, 255, 90, 0), 0.3);
  box-shadow:
    0 0 20px rgba(var(--primary-color1-opc, 255, 90, 0), 0.2),
    0 0 40px rgba(var(--primary-color1-opc, 255, 90, 0), 0.1);
}

/* Style 8: Orange Line with Sparkle Icon */
.section-divider.style-sparkle {
  height: auto;
  justify-content: flex-start;
  position: relative;
}

.section-divider.style-sparkle::before {
  content: "";
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    rgba(var(--primary-color1-opc, 255, 90, 0), 0.9) 0%,
    rgba(var(--primary-color1-opc, 255, 90, 0), 0.5) 70%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(var(--primary-color1-opc, 255, 90, 0), 0.2);
}

.section-divider.style-sparkle .sparkle-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  animation:
    sparkleRotate 8s linear infinite,
    sparklePulse 2s ease-in-out infinite;
}

.section-divider.style-sparkle .sparkle-icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--primary-color1, #ff5a00);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 10px rgba(255, 90, 0, 0.5));
}

@keyframes sparkleRotate {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

/* Spacing Variations */
.section-divider.spacing-sm {
  margin: 40px 0;
}

.section-divider.spacing-md {
  margin: 60px 0;
}

.section-divider.spacing-lg {
  margin: 80px 0;
}

.section-divider.spacing-xl {
  margin: 100px 0;
}

/* Container Variants */
.section-divider.contained {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider.narrow {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-divider.wide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* Animation */
.section-divider.animated::before,
.section-divider.animated::after {
  animation: dividerFade 2s ease-in-out infinite alternate;
}

@keyframes dividerFade {
  0% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.8;
  }
}

/* =============================================
   DARK MODE STYLES
   ============================================= */

body.dark .section-divider.style-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 15%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0.12) 85%,
    transparent 100%
  );
}

body.dark .section-divider.style-gradient {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 90, 0, 0.25) 15%,
    rgba(255, 90, 0, 0.8) 50%,
    rgba(255, 90, 0, 0.25) 85%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(255, 90, 0, 0.25);
}

body.dark .section-divider.style-double {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 100%
  );
}

body.dark .section-divider.style-icon::before,
body.dark .section-divider.style-icon::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 100%
  );
}

body.dark .section-divider.style-icon::after {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 100%
  );
}

body.dark .section-divider.style-icon .divider-icon {
  background: rgba(255, 90, 0, 0.15);
  border-color: rgba(255, 90, 0, 0.4);
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.2);
}

body.dark .section-divider.style-icon:hover .divider-icon {
  background: rgba(255, 90, 0, 0.25);
  border-color: rgba(255, 90, 0, 0.6);
  box-shadow: 0 0 25px rgba(255, 90, 0, 0.3);
}

body.dark .section-divider.style-label::before,
body.dark .section-divider.style-label::after {
  background: rgba(255, 255, 255, 0.15);
}

body.dark .section-divider.style-label .divider-label {
  color: rgba(255, 255, 255, 0.7);
}

body.dark .section-divider.style-dots::before,
body.dark .section-divider.style-dots::after {
  background: rgba(255, 255, 255, 0.15);
}

body.dark .section-divider.style-glow {
  background: rgba(255, 90, 0, 0.4);
  box-shadow:
    0 0 25px rgba(255, 90, 0, 0.3),
    0 0 45px rgba(255, 90, 0, 0.15);
}

body.dark .section-divider.style-sparkle::before {
  background: linear-gradient(
    90deg,
    rgba(255, 90, 0, 1) 0%,
    rgba(255, 90, 0, 0.6) 70%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.3);
}

body.dark .section-divider.style-sparkle .sparkle-icon svg {
  stroke: #ff5a00;
  filter: drop-shadow(0 0 15px rgba(255, 90, 0, 0.7));
}

/* =============================================
   RESPONSIVE ADJUSTMENTS
   ============================================= */

@media (max-width: 991px) {
  .section-divider {
    margin: 60px 0;
  }

  .section-divider.spacing-sm {
    margin: 30px 0;
  }

  .section-divider.spacing-md {
    margin: 45px 0;
  }

  .section-divider.spacing-lg {
    margin: 60px 0;
  }

  .section-divider.spacing-xl {
    margin: 80px 0;
  }

  .section-divider.style-icon::before,
  .section-divider.style-icon::after {
    margin: 0 16px;
  }

  .section-divider.style-label {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .section-divider {
    margin: 40px 0;
  }

  .section-divider.spacing-sm {
    margin: 20px 0;
  }

  .section-divider.spacing-md {
    margin: 30px 0;
  }

  .section-divider.spacing-lg {
    margin: 40px 0;
  }

  .section-divider.spacing-xl {
    margin: 60px 0;
  }

  .section-divider.style-icon .divider-icon {
    width: 32px;
    height: 32px;
  }

  .section-divider.style-icon .divider-icon svg {
    width: 14px;
    height: 14px;
  }

  .section-divider.style-label .divider-label {
    font-size: 10px;
    letter-spacing: 1px;
  }

  .section-divider.style-sparkle .sparkle-icon svg {
    width: 28px;
    height: 28px;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */

/* Hide on mobile */
.section-divider.hide-mobile {
  display: flex;
}

@media (max-width: 767px) {
  .section-divider.hide-mobile {
    display: none;
  }
}

/* Show only on mobile */
.section-divider.show-mobile {
  display: none;
}

@media (max-width: 767px) {
  .section-divider.show-mobile {
    display: flex;
  }
}

/* Invisible spacer (just adds spacing) */
.section-divider.invisible {
  height: 0;
  background: transparent !important;
  border: none !important;
}

.section-divider.invisible::before,
.section-divider.invisible::after {
  display: none !important;
}
