/* ==========================================================================
   MAIN.CSS - DEDUPLICATED & CONSOLIDATED STYLESHEET
   ========================================================================== */

/* ==========================================================================
   RIVAL LORDS - Design System & Global Styles (Vibrant & Animated)
   Marvel Rivals Services Web Platform
   ========================================================================== */

:root {
  /* Bright Summer Beach & Wave Palette (Directly inspired by Magik Sunset Waves Artwork) */
  --bg-deep: #144e6e;              /* Refreshing Ocean Wave Teal */
  --bg-surface: #1c5f85;           /* Summer Sea Surface */
  --bg-card: #23709b;              /* Beach Wave Glass Card */
  --bg-card-hover: #2b82b3;        /* Luminous Sunlit Wave Hover */
  --bg-glass: rgba(35, 112, 155, 0.88);
  
  /* Bright Sun & Wave Accents */
  --gold-primary: #ffb703;          /* Bright Sun Flare Gold */
  --gold-bright: #ffd166;           /* Sunshine Gold */
  --gold-dark: #f97316;             /* Sunset Amber Flare */
  --gold-glow: rgba(255, 183, 3, 0.45);

  --coral-primary: #f43f5e;         /* Sunset Peach Blossom */
  --coral-bright: #fb7185;          /* Soft Coral Sky Glow */
  --coral-glow: rgba(244, 63, 94, 0.45);

  --cyan-primary: #38bdf8;          /* Azure Ocean Waves */
  --cyan-accent: #00f5d4;           /* Aqua Sea Foam Spray */
  --cyan-glow: rgba(0, 245, 212, 0.45);

  --green-primary: #84cc16;         /* Surfboard Palm Green */
  --green-bright: #a3e635;          /* Bright Palm Lime */

  --purple-primary: #a78bfa;        /* Soft Summer Violet */
  --purple-bright: #c4b5fd;         /* Orchid Bloom */
  --purple-glow: rgba(167, 139, 250, 0.45);

  /* Neutral Text & Borders */
  --text-main: #ffffff;
  --text-secondary: #f1f5f9;
  --text-muted: #e2e8f0;
  --border-subtle: rgba(255, 183, 3, 0.35);
  --border-glow: rgba(0, 245, 212, 0.55);
  --border-gold: rgba(255, 183, 3, 0.6);
  --border-coral: rgba(244, 63, 94, 0.6);
  
  /* Typography */
  --font-heading: 'Rajdhani', 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', sans-serif;
  
  /* Shadows & Effects */
  --shadow-card: 0 12px 30px -10px rgba(0, 0, 0, 0.35);
  --shadow-purple-glow: 0 0 30px rgba(167, 139, 250, 0.45);
  --shadow-gold-glow: 0 0 30px rgba(255, 183, 3, 0.45);
  --shadow-cyan-glow: 0 0 30px rgba(0, 245, 212, 0.45);
  --shadow-coral-glow: 0 0 30px rgba(244, 63, 94, 0.45);
  
  /* Layout Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  font-size: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Firefox Scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gold-primary) var(--bg-deep);
}

/* Global Layout Stability & Zero-Jitter Rules */
*, *::before, *::after {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

img, video {
  content-visibility: auto;
}

.hero-portrait-frame,
.hero-card-img-wrapper,
.card-img-holder {
  aspect-ratio: 1 / 1;
  contain: layout paint;
}

.summary-video-container,
.mvp-video-box,
.video-player-frame {
  aspect-ratio: 16 / 9;
  contain: layout paint;
}

button, input, select, textarea, .hero-card, .days-pill-btn, .role-tab-btn, .platform-btn {
  box-sizing: border-box !important;
  will-change: transform;
}

/* Custom Scrollbar Styles (WebKit) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-primary), var(--cyan-accent), var(--coral-primary));
  border-radius: 5px;
  border: 2px solid var(--bg-deep);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--cyan-primary));
}

::-webkit-scrollbar-corner {
  background: rgba(20, 78, 110, 0.9);
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, #134e6f 0%, #1d6e94 40%, #e07a3f 75%, #c85a24 100%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: visible;
  position: relative;
}

/* Dynamic Ambient Animated Backgrounds (Multi-Color Summer Beach Flares) */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 5%;
  width: 950px;
  height: 950px;
  background: radial-gradient(circle, rgba(255, 183, 3, 0.45) 0%, rgba(244, 63, 94, 0.25) 45%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  animation: orbFloat1 16s ease-in-out infinite alternate;
  filter: blur(60px);
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  right: 5%;
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(0, 245, 212, 0.4) 0%, rgba(56, 189, 248, 0.25) 50%, transparent 70%);
  z-index: -2;
  pointer-events: none;
  animation: orbFloat2 20s ease-in-out infinite alternate;
  filter: blur(65px);
}

/* Keyframe Animations */
@keyframes orbFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, 80px) scale(1.15); }
  100% { transform: translate(80px, -60px) scale(0.95); }
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.85rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

p {
  color: var(--text-secondary);
  font-size: 1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Text Gradient Utilities (Animated) */
.text-gradient-purple {
  background: linear-gradient(135deg, #ffffff 20%, var(--purple-bright) 70%, var(--cyan-accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGradient 6s ease infinite;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-bright) 50%, var(--gold-primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmerGradient 6s ease infinite;
}

/* Buttons with Ripple & Dynamic Lighting */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  z-index: 1;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.6s ease;
  z-index: 2;
}

.btn:hover::after {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  color: #ffffff;
  box-shadow: 0 4px 20px var(--purple-glow);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.55);
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-primary));
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #05030a;
  font-weight: 700;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-gold:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.55);
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-primary));
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-subtle);
  color: var(--text-main);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(168, 85, 247, 0.12);
  border-color: var(--purple-primary);
  color: var(--purple-bright);
  transform: translateY(-3px);
  box-shadow: 0 5px 20px var(--purple-glow);
}

.btn-discord {
  background: linear-gradient(135deg, #5865F2, #4752C4);
  color: #ffffff;
  font-weight: 600;
  border-radius: var(--radius-md);
  padding: 0.7rem 1.4rem;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.35);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6775f4, #5865F2);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* Badge & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-fast);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid var(--border-glow);
  color: var(--purple-bright);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
}

/* Glass Card Component */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-purple-glow);
  transform: translateY(-5px);
}

/* Main Layout Wrapper */
main {
  flex: 1;
  padding-top: 0;
}

/* Section Wrapper */
.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
  position: relative;
}

.section-title-wrapper {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.75rem auto;
}

.section-title-wrapper p {
  margin-top: 0.85rem;
  font-size: 1.1rem;
}

/* Scroll Reveal & Smooth Fluid Motion System */
.reveal-on-scroll {
  opacity: 0;
  transform: translate3d(0, 35px, 0) scale(0.97);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease, border-color 0.4s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Staggered Cascade Delays */
.stagger-1 {
  transition-delay: 0.08s; animation-delay: 0.08s;
}

.stagger-2 {
  transition-delay: 0.16s; animation-delay: 0.16s;
}

.stagger-3 {
  transition-delay: 0.24s; animation-delay: 0.24s;
}

.stagger-4 {
  transition-delay: 0.32s; animation-delay: 0.32s;
}

.stagger-5 {
  transition-delay: 0.40s; animation-delay: 0.40s;
}

.stagger-6 {
  transition-delay: 0.48s; animation-delay: 0.48s;
}

.stagger-7 {
  transition-delay: 0.56s; animation-delay: 0.56s;
}

.stagger-8 {
  transition-delay: 0.64s; animation-delay: 0.64s;
}

/* Global Page Load Animation */
.page-fade-enter {
  opacity: 0;
  transform: translateY(15px);
}

.page-loaded {
  animation: pageFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* =========================================
   MOBILE & TABLET RESPONSIVENESS
========================================= */

@media (max-width: 992px) {
  html {
    font-size: 15px; /* Slightly reduce base font size */
  }
  
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
  
  .section-padding {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

/* Dynamic Grid / Category Switching Animation */
.grid-pop-in {
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  animation: popIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@keyframes orbFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(120px, -90px) scale(1.2); }
  100% { transform: translate(-70px, 50px) scale(0.9); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 15px var(--purple-glow); }
  50% { box-shadow: 0 0 35px rgba(168, 85, 247, 0.6); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmerGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pageFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
  }

  .text-gradient-gold, .text-gradient-purple {
    background-size: 150%; /* better gradient readability on mobile */
  }

  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
    width: 100%;
    justify-content: center;
  }

  .btn-outline, .btn-gold, .btn-primary {
    display: flex;
    text-align: center;
    margin-bottom: 0.5rem;
  }

  .section-padding {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-title-wrapper {
    margin-bottom: 2.5rem;
  }
  
  /* Make the global toast responsive */
  #global-toast {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-size: 0.85rem;
    padding: 0.8rem 1rem;
    text-align: center;
  }
}

@keyframes orderCheckPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.5), inset 0 0 10px rgba(0, 245, 212, 0.2);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 45px rgba(0, 245, 212, 0.9), inset 0 0 20px rgba(0, 245, 212, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 25px rgba(0, 245, 212, 0.5), inset 0 0 10px rgba(0, 245, 212, 0.2);
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.94) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   PROTECCIÓN ANTI-COPIA & ANTI-DESCARGA (PC, MÓVIL Y TABLET)
   ========================================================================== */
*, *::before, *::after {
  -webkit-touch-callout: none !important; /* Bloquea menú al mantener pulsado en iPhone/iPad/Android */
  -webkit-user-select: none !important;   /* Chrome / Safari móvil y escritorio */
  -khtml-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important; /* Deshabilita recuadro táctil */
}

input, textarea, select, [contenteditable="true"] {
  -webkit-touch-callout: default !important;
  -webkit-user-select: text !important;
  -khtml-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

img, picture, svg, canvas {
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
  pointer-events: none;
}

a img, button img, .interactive-img {
  pointer-events: auto !important;
}


