/* ==================== GLOBAL VARIABLES & RESET ==================== */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-surface: #16161f;
  --bg-card: #1a1a26;
  --bg-card-hover: #1f1f2e;
  --text-primary: #f0f0f5;
  --text-secondary: #b0b0c0;
  --text-muted: #6a6a7e;
  --accent-red: #e63946;
  --accent-red-glow: rgba(230, 57, 70, 0.4);
  --accent-blue: #457bff;
  --accent-blue-glow: rgba(69, 123, 255, 0.35);
  --accent-purple: #8b5cf6;
  --accent-purple-glow: rgba(139, 92, 246, 0.3);
  --accent-cyan: #06d6a0;
  --accent-gold: #f4a261;
  --border-color: #252530;
  --border-light: #303045;
  --gradient-dark: linear-gradient(
    135deg,
    #0a0a0f 0%,
    #111118 50%,
    #0d0d18 100%
  );
  --gradient-card: linear-gradient(145deg, #1a1a26 0%, #14141f 100%);
  --gradient-accent: linear-gradient(135deg, #e63946 0%, #8b5cf6 100%);
  --gradient-blue: linear-gradient(135deg, #457bff 0%, #06d6a0 100%);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow-red: 0 0 20px rgba(230, 57, 70, 0.25);
  --shadow-glow-blue: 0 0 20px rgba(69, 123, 255, 0.2);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-heading: "Orbitron", "Segoe UI", sans-serif;
  --font-body: "Exo 2", "Segoe UI", sans-serif;
  --nav-height: 72px;
  --container-max: 1280px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}
body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  background: none;
}
input,
select,
textarea {
  font-family: var(--font-body);
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.section-padding {
  padding: 80px 0;
}
.bg-surface {
  background-color: var(--bg-secondary);
}
.bg-gradient {
  background: var(--gradient-accent);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-accent);
  color: #fff;
  box-shadow: var(--shadow-glow-red);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 30px rgba(230, 57, 70, 0.5),
    0 0 15px rgba(139, 92, 246, 0.3);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-light);
}
.btn-secondary:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: var(--shadow-glow-blue);
}
.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}
.btn-outline:hover {
  background: var(--accent-blue);
  color: #fff;
  box-shadow: var(--shadow-glow-blue);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}
.btn:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==================== NAVIGATION ==================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
  height: var(--nav-height);
}
.navbar.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(10, 10, 15, 0.95);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  z-index: 1001;
}
.logo-icon {
  font-size: 1.6rem;
  color: var(--accent-red);
  animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,
  100% {
    text-shadow: 0 0 8px var(--accent-red-glow);
  }
  50% {
    text-shadow:
      0 0 20px var(--accent-red-glow),
      0 0 30px rgba(139, 92, 246, 0.3);
  }
}
.logo-highlight {
  color: var(--accent-red);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  position: relative;
}
.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.nav-link.active {
  color: var(--accent-red);
  font-weight: 600;
}
.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--accent-red);
  border-radius: 1px;
}
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-smooth);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-contact-col {
  display: none !important;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.footer-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 8px 0 16px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}
.social-link:hover {
  transform: translateY(-3px);
  color: #fff;
}
.social-link.instagram:hover {
  background: #e4405f;
  color: #fff;
  box-shadow: 0 0 15px rgba(228, 64, 95, 0.4);
}
.social-link.discord:hover {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}
.social-link.whatsapp:hover {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 15px rgba(37, 211, 102, 0.4);
}
.social-link.email:hover {
  background: #ea4335;
  color: #fff;
  box-shadow: 0 0 15px rgba(234, 67, 53, 0.4);
}
.footer-links-col h4,
.footer-contact-col h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.footer-links-col ul li {
  margin-bottom: 8px;
}
.footer-links-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-links-col ul li a:hover {
  color: var(--accent-blue);
}
.footer-contact-col p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: var(--shadow-glow-red);
}

/* ==================== PAGE LOADER ==================== */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader-spinner {
  position: relative;
  width: 80px;
  height: 80px;
}
.spinner-ring {
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-top-color: var(--accent-red);
  border-right-color: var(--accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.loader-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--accent-red);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== SCROLL REVEAL ANIMATIONS (AOS) ==================== */
.reveal-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.revealed {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}

/* ==================== PREMIUM TOAST NOTIFICATIONS ==================== */
.notification-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.notification {
  background: var(--gradient-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  min-width: 280px;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease;
  pointer-events: auto;
}
.notification.show {
  transform: translateX(0);
  opacity: 1;
}
.notification.hide {
  transform: translateX(120%);
  opacity: 0;
}
.notification-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}
.notification-message {
  flex: 1;
  font-size: 0.9rem;
  color: var(--text-primary);
}
.notification-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition-fast);
  flex-shrink: 0;
}
.notification-close:hover {
  color: var(--accent-red);
}
.notification.success {
  border-left: 4px solid var(--accent-cyan);
}
.notification.error {
  border-left: 4px solid var(--accent-red);
}
.notification.info {
  border-left: 4px solid var(--accent-blue);
}
.notification.warning {
  border-left: 4px solid var(--accent-gold);
}

/* ==================== CUSTOM SMOOTH DROPDOWN (select) ==================== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
  user-select: none;
}
.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
}
.custom-select-trigger:hover {
  border-color: var(--accent-blue);
}
.custom-select-trigger.open {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
.custom-select-trigger .arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}
.custom-select-trigger.open .arrow {
  transform: rotate(180deg);
}
.custom-options {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s;
  box-shadow: var(--shadow-md);
}
.custom-options.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 10px 14px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: background 0.2s ease;
}
.custom-option:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}
.custom-option.selected {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==================== REAL GAME LOGOS ==================== */
.game-logo {
  width: 40px;
  height: auto;
  max-height: 40px;
  object-fit: contain;
}
.game-logo-img {
  width: 100%;
  height: auto;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}
.game-logo-small {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 4px;
}
.filter-logo {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.tournament-info-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
}
.tournament-info-banner .banner-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

/* ==================== FIX NAV ARROWS (REMOVE UNWANTED ICONS) ==================== */
.nav-links li::before,
.nav-links li::after,
.nav-links a::before,
.nav-links a::after {
  display: none !important;
  content: none !important;
}
.nav-links li {
  background-image: none !important;
}

/* ==================== CARD HIGHLIGHTING ==================== */
.highlight-card {
  outline: 3px solid var(--accent-red);
  box-shadow: var(--shadow-glow-red);
  transition: var(--transition-smooth);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .section-padding {
    padding: 60px 0;
  }
}
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 90px 30px 30px;
    gap: 8px;
    transition: var(--transition-smooth);
    border-left: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active {
    right: 0;
  }
  .nav-link {
    font-size: 1rem;
    padding: 10px 16px;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
  .section-padding {
    padding: 50px 0;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .section-title {
    font-size: 1.4rem;
  }
  .notification {
    min-width: 250px;
  }
}
