/* Sidebar Join Us Styles */
.sidebar-join-us {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  padding: 25px 20px;
  margin-bottom: 25px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.4s ease;
}

.sidebar-join-us:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

/* Animated background effect */
.sidebar-join-us::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent,
    rgba(255, 255, 255, 0.05)
  );
  transform: rotate(45deg);
  animation: backgroundShine 6s infinite linear;
  z-index: 1;
}

@keyframes backgroundShine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Floating particles effect */
.sidebar-join-us::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(255, 255, 255, 0.1) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.1) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(255, 255, 255, 0.05) 3px,
      transparent 3px
    );
  background-size: 50px 50px, 30px 30px, 70px 70px;
  animation: floatParticles 20s infinite linear;
  z-index: 1;
}

@keyframes floatParticles {
  0% {
    background-position: 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 50px 50px, 30px 30px, 70px 70px;
  }
}

.join-us-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.join-us-header i {
  font-size: 28px;
  background: rgba(255, 255, 255, 0.2);
  padding: 12px;
  border-radius: 50%;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: iconFloat 3s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

@keyframes iconFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-5px) scale(1.05);
  }
}

.join-us-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.5px;
}

.join-us-content {
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.join-us-content p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.95;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-join-us {
  width: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.15)
  );
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 14px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 2;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.btn-join-us::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-join-us:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.25)
  );
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.btn-join-us:hover::before {
  left: 100%;
}

.btn-join-us:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Main pulse effect */
.pulse-effect {
  position: absolute;
  top: 50%;
  right: 25px;
  width: 12px;
  height: 12px;
  background: #ffd93d;
  border-radius: 50%;
  animation: pulseGlow 2s infinite;
  z-index: 2;
  box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.7);
}

@keyframes pulseGlow {
  0% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 217, 61, 0.7);
    background: #ffd93d;
  }
  50% {
    transform: scale(1.2);
    box-shadow: 0 0 0 15px rgba(255, 217, 61, 0);
    background: #ffed4a;
  }
  100% {
    transform: scale(0.8);
    box-shadow: 0 0 0 0 rgba(255, 217, 61, 0);
    background: #ffd93d;
  }
}

/* Additional sparkle effects */
.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
  animation: sparkle 4s infinite;
  z-index: 2;
}

.sparkle:nth-child(1) {
  top: 20%;
  left: 15%;
  animation-delay: 0s;
}

.sparkle:nth-child(2) {
  top: 60%;
  left: 85%;
  animation-delay: 1s;
}

.sparkle:nth-child(3) {
  top: 80%;
  left: 25%;
  animation-delay: 2s;
}

.sparkle:nth-child(4) {
  top: 30%;
  left: 75%;
  animation-delay: 3s;
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar-join-us {
    padding: 20px 15px;
    margin-bottom: 20px;
  }

  .join-us-header {
    gap: 12px;
  }

  .join-us-header i {
    font-size: 24px;
    padding: 10px;
  }

  .join-us-header h3 {
    font-size: 18px;
  }

  .join-us-content p {
    font-size: 14px;
  }

  .btn-join-us {
    padding: 12px 16px;
    font-size: 14px;
  }

  .pulse-effect {
    right: 20px;
    width: 10px;
    height: 10px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .sidebar-join-us {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  }

  .btn-join-us {
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  }

  .btn-join-us:hover {
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .sidebar-join-us {
    border: 2px solid white;
  }

  .btn-join-us {
    border: 2px solid white;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sidebar-join-us::before,
  .sidebar-join-us::after,
  .join-us-header i,
  .pulse-effect,
  .sparkle {
    animation: none;
  }

  .sidebar-join-us:hover {
    transform: none;
  }

  .btn-join-us:hover {
    transform: none;
  }

  .btn-join-us::before {
    display: none;
  }
}
