/* Custom CSS for CS-Tervel Admin Application */

/* Custom backgrounds and gradients */

.bg-gray-750 {
  background-color: #2d3748;
}

.bg-gray-650 {
  background-color: #3f4758;
}

:root {
  --glow-color: rgba(32, 178, 170, 0.5);

  --cyber-blue: #20e3b2;

  --cyber-pink: #ff5edf;
}

/* Body background */
body {
  background-image: url('fullHeader.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 18, 18, 0.92);
  z-index: -1;
}

/* Hero section enhancement */

.hero {
  position: relative;

  background-size: cover;

  background-position: center;

  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("fullHeader.png");
  background-size: cover;
  background-position: top center;
  opacity: 1;
  z-index: -1;
  filter: brightness(0.6);
}

.hero::after {
  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  z-index: -1;
}

/* Shadow effects */

.shadow-glow {
  box-shadow: 0 0 15px var(--glow-color), 0 0 8px rgba(0, 0, 0, 0.2);
}

.shadow-glow:hover {
  box-shadow: 0 0 25px var(--glow-color), 0 0 10px rgba(0, 0, 0, 0.3);
}

/* Table styling enhancements */

table {
  border-collapse: separate;

  border-spacing: 0;
}

.table-glow {
  box-shadow: 0 0 15px rgba(32, 178, 170, 0.1);

  transition: box-shadow 0.3s ease;
}

.table-glow:hover {
  box-shadow: 0 0 20px rgba(32, 178, 170, 0.15);
}

th {
  font-weight: 600;

  text-transform: uppercase;

  font-size: 0.85rem;

  letter-spacing: 0.05em;
}

.player-name {
  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 200px;
}

/* Ban list styles */

.reason-text {
  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 250px;
}

/* Glass morphism */

.glass-card {
  background-color: rgba(30, 30, 30, 0.5);

  backdrop-filter: blur(10px);

  transition: all 0.3s ease;
}

/* Cyber grid */

.cyber-grid {
  background-image: url('fullHeader.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.08;
  z-index: 0;
}

/* Rank styling */

.top-rank {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 24px;

  height: 24px;

  border-radius: 50%;

  font-weight: bold;
}

.rank-1 {
  background: linear-gradient(45deg, #ffd700, #f9b94a);

  color: #000;
}

.rank-2 {
  background: linear-gradient(45deg, #c0c0c0, #e6e6e6);

  color: #000;
}

.rank-3 {
  background: linear-gradient(45deg, #cd7f32, #e9967a);

  color: #000;
}

/* Progress bars */

.progress-bar-high {
  background: linear-gradient(90deg, #ff5f6d, #ffc371);

  animation: progress-pulse 2s infinite;
}

.progress-bar-medium {
  background: linear-gradient(90deg, #ffb347, #ffcc33);
}

.progress-bar-low {
  background: linear-gradient(90deg, #56ab2f, #a8e063);
}

@keyframes progress-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.8;
  }
}

/* Navigation styles */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";

  position: absolute;

  width: 0;

  height: 2px;

  bottom: -5px;

  left: 0;

  background: linear-gradient(90deg, var(--cyber-blue), #60efff);

  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Neon button */

.neon-button {
  position: relative;

  overflow: hidden;
}

.neon-button::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: 0.5s;
}

.neon-button:hover::before {
  left: 100%;
}

.shadow-glow {
  box-shadow: 0 0 15px rgba(32, 178, 170, 0.3);
}

/* Social icons */

.social-icon-link {
  transition: all 0.3s ease;
}

.social-icon-link:hover {
  transform: translateY(-3px);
}

/* Animations */

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.online-indicator {
  animation: pulse 2s infinite;
}

.countdown-timer {
  position: relative;

  padding: 0 2px;
}

.countdown-timer::after {
  content: "";

  position: absolute;

  bottom: -2px;

  left: 0;

  width: 100%;

  height: 1px;

  background: cyan;
}

/* Icon circle */

.icon-circle {
  box-shadow: 0 0 0 5px rgba(32, 227, 178, 0.1);
}

/* Custom scrollbar */

.custom-scrollbar::-webkit-scrollbar {
  width: 8px;

  height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #1a202c;

  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #4a5568;

  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(32, 227, 178, 0.5);
}

/* Glowing elements */

.glowing-box {
  position: relative;

  z-index: 1;

  overflow: hidden;

  box-shadow: 0 0 10px rgba(32, 227, 178, 0.3);
}

.glowing-box::before {
  content: "";

  position: absolute;

  top: -2px;

  left: -2px;

  right: -2px;

  bottom: -2px;

  z-index: -1;

  background: linear-gradient(45deg, #20e3b2, #0bc5ea, #20e3b2, #0bc5ea);

  background-size: 400%;

  border-radius: 999px;

  filter: blur(5px);

  opacity: 0;

  transition: opacity 0.3s;

  animation: glowing 20s linear infinite;
}

.glowing-box:hover::before {
  opacity: 1;
}

@keyframes glowing {
  0% {
    background-position: 0 0;
  }

  50% {
    background-position: 400% 0;
  }

  100% {
    background-position: 0 0;
  }
}

/* Error icon wrapper */

.error-icon-wrapper {
  width: 80px;

  height: 80px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 99, 71, 0.3);

  border: 1px solid rgba(255, 99, 71, 0.5);

  position: relative;
}

.error-icon-wrapper::after {
  content: "";

  position: absolute;

  top: -5px;

  left: -5px;

  right: -5px;

  bottom: -5px;

  border-radius: 50%;

  border: 1px solid rgba(255, 99, 71, 0.2);

  animation: pulse 2s infinite;
}

/* Contact card hover effect */

.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Pagination styling */

nav[aria-label="Pagination"] {
  box-shadow: 0 0 15px rgba(32, 178, 170, 0.1);
}

/* Responsive adjustments */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .player-name {
    max-width: 120px;
  }

  .glass-card {
    padding: 1rem;
  }

  .reason-text {
    max-width: 150px;
  }
}

/* Advertisement section styles */
.advertisement-section {
  position: relative;
  overflow: hidden;
}

.banner-link {
  display: block;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  overflow: hidden;
}

.banner-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(32, 227, 178, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(32, 227, 178, 0.2);
}

.banner-link:hover::before {
  opacity: 1;
}

.banner-image {
  display: block;
  border-radius: 4px;
  border: 1px solid rgba(32, 227, 178, 0.1);
  transition: all 0.3s ease;
}

.banner-link:hover .banner-image {
  border-color: rgba(32, 227, 178, 0.3);
}

/* Payment methods styles */
.payment-methods {
  transition: all 0.3s ease;
}

.payment-methods:hover {
  border-color: var(--cyber-blue);
  box-shadow: 0 0 15px rgba(32, 227, 178, 0.1);
}

.bank-details {
  background: rgba(32, 227, 178, 0.05);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(32, 227, 178, 0.1);
  margin-top: 0.5rem !important;
}

.bank-details p {
  transition: all 0.3s ease;
}

.bank-details p:hover {
  background: rgba(32, 227, 178, 0.1);
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.copy-bank-details {
  transition: all 0.3s ease;
}

.copy-bank-details.copied {
  color: #10b981;
}

@media (max-width: 768px) {
  .advertisement-section .flex {
    gap: 2rem;
  }

  .banner-image {
    max-width: 100%;
    height: auto;
  }
}

/* Footer background styling */
footer {
  position: relative;
  background-image: url('bgFooter.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 400px;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(17, 24, 39, 0.75); /* Dark overlay for better text readability */
  z-index: 0;
}

footer > * {
  position: relative;
  z-index: 1;
}

/* Scroll to top button animation */
@keyframes bounce-slow {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

.animate-bounce-slow {
  animation: bounce-slow 2s ease-in-out infinite;
}

.scroll-to-top-btn {
  display: inline-block;
  transition: all 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(32, 227, 178, 0.3));
}

.scroll-to-top-btn:hover {
  filter: drop-shadow(0 0 20px rgba(32, 227, 178, 0.6));
  transform: scale(1.1);
}
