/**
 * @format
 *
 * Discord Bot Website By Anomus.LY
 * Modified for Ophraxx Moderation
 * © 2025 Ophraxx
 */

.hexagon-pattern-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  opacity: 0.6;
}

.hexagon-pattern {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  grid-gap: 10px;
  transform: translateZ(0);
}

.hexagon {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.02);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hexagon::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  right: 1px;
  bottom: 1px;
  background-color: var(--bg-darker);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

.hexagon.active {
  background-color: var(--primary);
  box-shadow:
    0 0 15px var(--primary),
    0 0 30px var(--primary-light);
  z-index: 2;
  transform: scale(1.1);
}

.hexagon.glow {
  background-color: var(--accent);
  box-shadow:
    0 0 10px var(--accent),
    0 0 20px var(--accent-light);
  z-index: 2;
}

.hexagon.primary {
  background-color: var(--primary);
  box-shadow:
    0 0 10px var(--primary),
    0 0 20px var(--primary-light);
}

.hexagon.accent {
  background-color: var(--accent);
  box-shadow:
    0 0 10px var(--accent),
    0 0 20px var(--accent-light);
}

.hexagon.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Hero pattern specific styles */
#heroPattern {
  position: absolute;
  top: -50%;
  left: -25%;
  width: 150%;
  height: 200%;
  transform: rotate(30deg);
  z-index: 0;
}

/* Commands pattern specific styles */
#commandsPattern {
  position: absolute;
  top: -30%;
  right: -25%;
  width: 100%;
  height: 150%;
  transform: rotate(-15deg);
  z-index: 0;
}

/* Support pattern specific styles */
#supportPattern {
  position: absolute;
  bottom: -30%;
  left: -25%;
  width: 100%;
  height: 150%;
  transform: rotate(15deg);
  z-index: 0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hexagon-pattern {
    grid-template-columns: repeat(auto-fill, 50px);
    grid-gap: 10px;
  }

  .hexagon {
    width: 50px;
    height: 50px;
  }

  #heroPattern {
    top: -30%;
    left: -50%;
    width: 200%;
    height: 150%;
  }

  #commandsPattern,
  #iconGridPattern,
  #supportPattern {
    opacity: 0.4;
  }
}

@media (max-width: 768px) {
  .hexagon-pattern {
    grid-template-columns: repeat(auto-fill, 40px);
    grid-gap: 8px;
  }

  .hexagon {
    width: 40px;
    height: 40px;
  }

  #heroPattern {
    top: -20%;
    left: -100%;
    width: 300%;
    height: 140%;
  }
}

@media (max-width: 576px) {
  .hexagon-pattern {
    grid-template-columns: repeat(auto-fill, 30px);
    grid-gap: 6px;
  }

  .hexagon {
    width: 30px;
    height: 30px;
  }

  .hexagon-pattern-container {
    opacity: 0.4;
  }

  #heroPattern {
    transform: rotate(45deg);
  }
}
