/*
 * Gaming Theme CSS - Ported from Gaming Landing Page
 * This file contains all the custom styles for the NEXUS gaming theme
 */
@import url("https://fonts.googleapis.com/css2?family=Ropa+Sans&display=swap");

/* Custom CSS Variables */
:root {
  --button-notch-size: 15px;
  --cl-accent: 239, 68, 68; /* Red accent color */
  --cl-background: 10, 10, 10; /* Dark background */
  --cl-t-primary: 255, 255, 255; /* White text */
  --cl-t-accent: 255, 255, 255; /* White accent text */
  /* Diagonal red corners button vars */
  --primary-main: #fa0116;
  --button-shape: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  --button-shape-inner: polygon(2px 2px, calc(100% - 20px) 2px, calc(100% - 2px) 20px, calc(100% - 2px) calc(100% - 2px), 20px calc(100% - 2px), 2px calc(100% - 20px));
}

/* Base body styles */
body {
  background-color: #0a0a0a !important;
  color: white;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  /* Ensure normal scrolling works */
  overflow-y: auto;
}

/* Button styles (used by snippets/buttons.njk) */
/* Replaced with notched-corner design and shine hover effect */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 64px;
  width: 20rem;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: rgb(var(--cl-accent));
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn .btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Ensure inline SVG icons align with text inside buttons */
.btn .btn-text svg {
  vertical-align: middle;
}

.btn:active {
  transform: translateY(1px);
}

/* Hover motion and subtle glow */
/* Scoped hover animations (set below for hero + navbar Discord only) */

/* Bottom-left notch (disabled on illustrator) */
.btn:not(.btn-illustrator)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  border-left: 1rem solid rgb(var(--cl-background));
  border-top: 1rem solid rgb(var(--cl-accent));
  transition: border-color 0.15s ease-out;
}

/* Shine sweep on hover (disabled on illustrator) */
.btn:not(.btn-illustrator)::before {
  content: "";
  position: absolute;
  top: 0;
  left: -30%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255,255,255,0) 35%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 65%);
  transform: translateX(-120%) rotate(10deg);
  pointer-events: none;
}

.btn:not(.btn-illustrator):hover::before {
  animation: shine-sweep 0.8s ease;
}

@keyframes shine-sweep {
  to {
    transform: translateX(220%) rotate(10deg);
  }
}

/* Variants */
.btn-primary,
.btn-secondary {
  background: rgb(var(--cl-accent));
  color: #fff;
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(var(--cl-accent), 1);
  color: rgb(var(--cl-accent));
}

.btn-outline::after {
  border-left: 1rem solid rgb(var(--cl-background));
  border-top: 1rem solid rgba(var(--cl-accent), 1);
}


/* Illustrator button style (exact SVG background) */
.btn.btn-illustrator {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 64px;
  padding: 0 36px;
  font-size: 1rem;
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.btn-illustrator-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.btn.btn-illustrator .btn-text {
  position: relative;
  z-index: 2;
  line-height: 1;
  color: inherit;
}

/* Scoped hover animations will be added below */

/* Smooth, scoped hover for hero section buttons and navbar Discord btn */
.hero-section .btn,
.navbar-discord-btn {
  will-change: transform;
  transition: transform 0.28s cubic-bezier(.22,.61,.36,1);
}

.hero-section .btn:hover,
.navbar-discord-btn:hover {
  transform: scale(1.05);
  box-shadow: none;
}

.hero-section .btn .btn-text i,
.hero-section .btn .btn-text svg,
.navbar-discord-btn .btn-text i,
.navbar-discord-btn .btn-text svg {
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}

.hero-section .btn:hover .btn-text i,
.hero-section .btn:hover .btn-text svg,
.navbar-discord-btn:hover .btn-text i,
.navbar-discord-btn:hover .btn-text svg {
  transform: translateX(6px);
}

/* Remove generic notch / shine from illustrator variant */
.btn.btn-illustrator::before,
.btn.btn-illustrator::after,
a.btn.btn-illustrator::before,
a.btn.btn-illustrator::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
}



/* Animations */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in-right {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes pulse-gradient {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.1); opacity: 1; }
}
@keyframes pop-in {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animation Classes */
.animate-fade-in-up { animation: fade-in-up 0.8s ease-out forwards; opacity: 0; }
.animate-slide-in-left { animation: slide-in-left 0.8s ease-out forwards; opacity: 0; }
.animate-fade-in-right { animation: fade-in-right 0.8s ease-out forwards; opacity: 0; }
.animate-fade-in { animation: fade-in 0.8s ease-out forwards; opacity: 0; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-scroll-left {
  animation: scroll-left 30s linear infinite;
  /* Ensure this doesn't interfere with page scrolling */
  will-change: transform;
  transform: translateZ(0);
}
.animate-pop-in { animation: pop-in 0.6s ease-out forwards; opacity: 0; }
.animate-slide-up { animation: slide-up 0.7s ease-out forwards; opacity: 0; }

/* Card Background Animation */
.card-bg-animated {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.05) 0%, transparent 70%);
  transition: background 0.5s ease-in-out;
  animation: pulse-gradient 5s infinite alternate;
  z-index: 0;
}

/* Gaming Theme Specific Styles */
.gaming-bg {
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
}

.gaming-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(239, 68, 68, 0.05), transparent, rgba(239, 68, 68, 0.05));
  pointer-events: none;
}

.gaming-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

/* Logo Animation */
.logo-animated {
  transition: all 0.5s ease;
}

.logo-animated:hover {
  transform: scale(1.1) rotate(5deg);
}

/* Product Card Styles */
.product-card {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur-xl;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1.5rem;
  transition: all 0.5s ease;
}

.product-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05) translateY(-1rem);
}

/* Testimonial Card Styles */
.testimonial-card {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur-xl;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 1rem;
  transition: all 0.5s ease;
}

.testimonial-card:hover {
  border-color: rgba(239, 68, 68, 0.4);
  transform: scale(1.05) translateY(-0.5rem);
}

/* Geometric Badge */
.geometric-badge {
  clip-path: polygon(10% 0%, 90% 0%, 100% 70%, 85% 100%, 15% 100%, 0% 70%);
  transition: all 0.5s ease;
}

.geometric-badge:hover {
  transform: rotate(0deg) scale(1.1);
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(239, 68, 68, 0.2);
  border-radius: 50%;
  animation: float 3s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gaming-bg::after {
    background-size: 30px 30px;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 68, 68, 0.8);
}

/* Fix for scrolling issues */
html, body {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Ensure carousel doesn't block scrolling */
.animate-scroll-left {
  pointer-events: none;
}

.animate-scroll-left > * {
  pointer-events: auto;
}

/* Custom star animation */
@keyframes star-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.animate-star-pulse {
  animation: star-pulse 2s ease-in-out infinite;
}

/* Ensure stars are visible */
.star-rating svg {
  display: inline-block;
  vertical-align: middle;
}

/* Navbar currency selector: center text and remove hover effect */
.currency-selector .choices__inner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-left: 0 !important;
  padding-right: 22px !important; /* leave room for arrow */
  transition: none !important;
  background: transparent !important; /* kill red hover blocks */
}

.currency-selector .choices__list--single {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  background: transparent !important;
}

.currency-selector .choices__list--single .choices__item {
  margin: 0 auto !important;
  width: 100% !important;
  text-align: center !important;
  background: transparent !important;
}

/* Remove hover visual change on the trigger */
.currency-selector .choices__inner:hover {
  background: inherit !important;
  border-color: inherit !important;
}

/* Keep border stable when open (no accent highlight) */
.currency-selector.lg .choices.is-open .choices__inner,
.currency-selector.xs .choices.is-open .choices__inner {
  border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Show and style the dropdown arrow; keep it centered vertically */
.currency-selector .choices[data-type*="select-one"]::after {
  border-color: rgba(255,255,255,0.75) transparent transparent !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%);
  margin-top: 0 !important;
}

.currency-selector .choices[data-type*="select-one"].is-open::after {
  border-color: transparent transparent rgba(255,255,255,0.75) !important;
}

/* Remove ring/box-shadow accent when open */
.currency-selector .choices.is-open {
  box-shadow: none !important;
}

/* Dropdown and items: remove any red highlight backgrounds */
.currency-selector .choices__list--dropdown,
.currency-selector .choices__list--dropdown .choices__item,
.currency-selector .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(0,0,0,0.9) !important;
  color: #fff !important;
}

/* Bring back a subtle hover/highlight inside the dropdown (no red) */
.currency-selector .choices__list--dropdown .choices__item--selectable:hover,
.currency-selector .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
}

.star-rating .text-yellow-400 {
  color: #fbbf24 !important;
}

.star-rating .text-gray-600 {
  color: #4b5563 !important;
}

/* Gaming Currency Selector - Basic styles moved to style.css */

/* Ensure select dropdown height limits and scrolling */
.currency-selector select {
  max-height: 200px !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

.currency-selector select option {
  max-height: 40px !important;
  overflow: hidden;
}

/* Custom Scrollbar for Currency Dropdown */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgba(239, 68, 68, 0.7) rgba(239, 68, 68, 0.1);
}

.custom-scrollbar::-webkit-scrollbar {
  width: 8px !important;
  display: block !important;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: rgba(239, 68, 68, 0.1) !important;
  border-radius: 4px !important;
  margin: 2px 0 !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.7) !important;
  border-radius: 4px !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: rgba(239, 68, 68, 0.9) !important;
}

/* Force scrollbar to be visible */
.custom-scrollbar::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 8px !important;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  border-radius: 4px !important;
  background-color: rgba(239, 68, 68, 0.7) !important;
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, 0.5) !important;
}