/* ========================================
   EXE Store - Core Styles
   Aggressive Dark Gaming Aesthetic
   ======================================== */

/* === Toast Notifications === */
.toastify {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(187, 55, 55, 0.15);
  max-width: 520px;
  width: fit-content;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
  border: 1px solid rgba(187, 55, 55, 0.4);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  padding: 16px;
}

.toastify.error {
  background: linear-gradient(135deg, rgba(200, 0, 0, 0.2) 0%, rgba(100, 0, 0, 0.3) 100%);
  border: 1px solid rgba(200, 0, 0, 0.5);
}

.toastify::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: black;
  z-index: -1;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 12px;
}

.toastify .toast-close {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
}

.toastify .toast-close:hover {
  color: #bb3737;
}

/* === Checkout Form === */
.cc__checkout___form_field:not(.not-required) label::after {
  content: '*';
  color: #bb3737;
  margin-left: 4px;
  font-weight: bold;
}

/* === Post Shadow === */
.post-shadow {
  background: linear-gradient(0deg, #1f1f1f 20%, transparent 100%);
}

/* === Custom Scrollbar === */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #bb3737;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d44444;
}

/* === Global Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 5px rgba(187, 55, 55, 0.2), 0 0 20px rgba(187, 55, 55, 0.1);
  }
  50% {
    box-shadow: 0 0 10px rgba(187, 55, 55, 0.4), 0 0 40px rgba(187, 55, 55, 0.2);
  }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes borderGlow {
  0%, 100% {
    border-color: rgba(187, 55, 55, 0.3);
  }
  50% {
    border-color: rgba(187, 55, 55, 0.6);
  }
}

@keyframes progressStripes {
  0% { background-position: 40px 0; }
  100% { background-position: 0 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === Red Glow Text Effect === */
.text-glow {
  text-shadow: 0 0 10px rgba(187, 55, 55, 0.5), 0 0 40px rgba(187, 55, 55, 0.2);
}

/* === Card Hover Effects === */
.card-hover {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(187, 55, 55, 0), rgba(187, 55, 55, 0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: all 0.4s ease;
  pointer-events: none;
}

.card-hover:hover::before {
  background: linear-gradient(135deg, rgba(187, 55, 55, 0.5), rgba(212, 68, 68, 0.2));
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(187, 55, 55, 0.15);
}

/* === Glass Effect === */
.glass {
  background: rgba(31, 31, 31, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Gradient Border === */
.gradient-border {
  position: relative;
}

.gradient-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #bb3737, transparent);
}

/* === Red Accent Line === */
.accent-line {
  position: relative;
}

.accent-line::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, #bb3737, #d44444);
  border-radius: 0 4px 4px 0;
}

/* === Shine Overlay for buttons === */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.btn-shine:hover::after {
  opacity: 1;
  animation: shimmer 1.5s ease infinite;
}

/* === CentralCart Content Styling === */
.centralcart-content {
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.925rem;
  letter-spacing: 0.01em;
}

.centralcart-content h1,
.centralcart-content h2 {
  color: #ffffff;
  font-weight: 800;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.centralcart-content h1:first-child,
.centralcart-content h2:first-child {
  margin-top: 0;
}

.centralcart-content h3 {
  color: #f0f0f0;
  font-weight: 700;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
}

.centralcart-content p {
  margin-bottom: 1em;
  color: rgba(255, 255, 255, 0.55);
}

.centralcart-content strong {
  color: var(--exe-red-light);
  font-weight: 700;
}

/* FAQ-style arrows */
.centralcart-content br + ➥,
.centralcart-content p > br {
  display: block;
}

.centralcart-content a {
  color: #d44444;
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 68, 68, 0.25);
  transition: all 0.25s ease;
  padding-bottom: 1px;
}

.centralcart-content a:hover {
  color: #ff6666;
  border-bottom-color: #ff6666;
  text-shadow: 0 0 12px rgba(212, 68, 68, 0.3);
}

.centralcart-content img {
  border-radius: 12px;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.centralcart-content blockquote {
  border-left: 3px solid #bb3737;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  background: rgba(187, 55, 55, 0.04);
  border-radius: 0 12px 12px 0;
}

.centralcart-content ul,
.centralcart-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.centralcart-content li {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.55);
}

.centralcart-content code {
  background: rgba(187, 55, 55, 0.1);
  color: #d44444;
  padding: 0.2em 0.5em;
  border-radius: 6px;
  font-size: 0.88em;
  border: 1px solid rgba(187, 55, 55, 0.12);
}

.centralcart-content pre {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem;
  overflow-x: auto;
}

.centralcart-content pre code {
  background: transparent;
  color: #f0f0f0;
  padding: 0;
  border: none;
}

/* Colored spans from CMS keep their color but gain better weight & styling */
.centralcart-content span[style*="color: #e67e23"] {
  font-weight: 700 !important;
  text-shadow: 0 0 18px rgba(230, 126, 35, 0.2);
}

.centralcart-content span[style*="color: #af3333"] {
  font-weight: 700 !important;
  text-shadow: 0 0 18px rgba(175, 51, 51, 0.25);
}

/* === Animated Background Pattern === */
.bg-pattern {
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(187, 55, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(187, 55, 55, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(187, 55, 55, 0.02) 0%, transparent 50%);
}

/* === Section Divider === */
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(187, 55, 55, 0.5), transparent);
}

/* === Staggered Animation Helper === */
.animate-in {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }
.animate-in:nth-child(5) { animation-delay: 0.25s; }
.animate-in:nth-child(6) { animation-delay: 0.3s; }
.animate-in:nth-child(7) { animation-delay: 0.35s; }
.animate-in:nth-child(8) { animation-delay: 0.4s; }
.animate-in:nth-child(9) { animation-delay: 0.45s; }

/* === Noise texture overlay === */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* === Ember/Particle Float === */
.ember-float {
  animation: float 3s ease-in-out infinite;
}

.ember-float:nth-child(2) { animation-delay: 0.5s; }
.ember-float:nth-child(3) { animation-delay: 1s; }