/* ════════════════════════════════════════════════════
   ELAAMART — Gaming Animations & Visual FX
   Premium particle system, game-specific art, fx
════════════════════════════════════════════════════ */

/* ── Canvas particle layer ── */
#gamingCanvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* ── Floating game icons (CSS-only fallback) ── */
.game-particle {
  position: fixed;
  font-size: 18px;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  animation: floatParticle var(--dur, 12s) ease-in infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  top: 110%;
}

@keyframes floatParticle {
  0%   { transform: translateY(0) rotate(0deg) scale(0.6); opacity: 0; }
  10%  { opacity: 0.25; }
  90%  { opacity: 0.15; }
  100% { transform: translateY(-115vh) rotate(360deg) scale(1); opacity: 0; }
}

/* ── Neon scan-line effect ── */
.scanline-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(124, 58, 237, 0.015) 2px,
    rgba(124, 58, 237, 0.015) 4px
  );
}

/* ── Diamond rain animation (on Free Fire page) ── */
.diamond-rain-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.diamond-rain-item {
  position: absolute;
  top: -30px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  transform: rotate(45deg);
  opacity: 0;
  animation: diamondFall var(--dur, 3s) ease-in infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.6);
}

.diamond-rain-item::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(255,255,255,0.4);
  transform: rotate(0deg);
}

@keyframes diamondFall {
  0%   { transform: translateY(0) rotate(45deg) scale(0.5); opacity: 0; }
  15%  { opacity: 0.7; }
  85%  { opacity: 0.4; }
  100% { transform: translateY(500px) rotate(225deg) scale(1); opacity: 0; }
}

/* ── UC Coin spin (PUBG) ── */
.uc-coin-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.uc-coin {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd200, #f7971e);
  border: 2px solid rgba(255,255,255,0.3);
  opacity: 0;
  animation: coinFloat var(--dur, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  top: var(--y, 50%);
  box-shadow: 0 0 8px rgba(255, 210, 0, 0.5);
}

.uc-coin::after {
  content: 'UC';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5px;
  font-weight: 900;
  color: rgba(0,0,0,0.6);
}

@keyframes coinFloat {
  0%   { transform: translateY(0) rotateY(0deg); opacity: 0; }
  20%  { opacity: 0.6; }
  80%  { opacity: 0.3; }
  100% { transform: translateY(-200px) rotateY(360deg); opacity: 0; }
}

/* ── Fire particles (Free Fire hero) ── */
.fire-particle-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.fire-ember {
  position: absolute;
  bottom: 0;
  width: var(--size, 4px);
  height: var(--size, 4px);
  background: var(--color, #ff6b35);
  border-radius: 50%;
  opacity: 0;
  animation: emberRise var(--dur, 3s) ease-out infinite;
  animation-delay: var(--delay, 0s);
  left: var(--x, 50%);
  filter: blur(0.5px);
  box-shadow: 0 0 4px var(--color, #ff6b35);
}

@keyframes emberRise {
  0%   { transform: translateY(0) scale(1); opacity: 0.8; }
  70%  { opacity: 0.4; }
  100% { transform: translateY(-280px) translateX(var(--drift, 20px)) scale(0); opacity: 0; }
}

/* ══════════════════════════════════════
   GAME HERO VISUALS
══════════════════════════════════════ */

/* ── Free Fire Hero ── */
.gp-hero.hero-free-fire {
  background: linear-gradient(160deg, #1a0800 0%, #3d1500 30%, #1a0400 60%, #0d0000 100%);
}

.gp-hero.hero-free-fire .gp-hero-game-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 55%;
  height: 100%;
  overflow: hidden;
}

/* Free Fire SVG scene */
.ff-art-scene {
  position: absolute;
  right: -20px;
  top: 0;
  width: 100%;
  height: 100%;
}

/* ── PUBG Hero ── */
.gp-hero.hero-pubg-mobile {
  background: linear-gradient(160deg, #0d0a00 0%, #2a1f00 30%, #1a1400 60%, #050400 100%);
}

/* ── Generic game hero art container ── */
.gp-hero-game-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

.gp-hero-game-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ── Glitch text effect on game heroes ── */
.glitch-text {
  position: relative;
  display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.7;
}

.glitch-text::before {
  color: #ff3cac;
  animation: glitch-1 4s infinite;
  clip-path: polygon(0 20%, 100% 20%, 100% 45%, 0 45%);
}

.glitch-text::after {
  color: #00e5ff;
  animation: glitch-2 4s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 80%, 0 80%);
}

@keyframes glitch-1 {
  0%, 90%, 100% { transform: translateX(0); }
  92% { transform: translateX(-3px); }
  94% { transform: translateX(3px); }
  96% { transform: translateX(-2px); }
  98% { transform: translateX(2px); }
}

@keyframes glitch-2 {
  0%, 88%, 100% { transform: translateX(0); }
  90% { transform: translateX(3px); }
  93% { transform: translateX(-3px); }
  97% { transform: translateX(2px); }
}

/* ══════════════════════════════════════
   DENOMINATION CARD CURRENCY ICONS
══════════════════════════════════════ */

.dc-currency-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 6px currentColor);
}

.dc-currency-icon svg {
  width: 28px;
  height: 28px;
}

/* Diamond icon style */
.icon-diamond {
  color: #00e5ff;
}

/* UC coin style */
.icon-uc {
  color: #ffd200;
}

/* Pass/subscription style */
.icon-pass {
  color: #a78bfa;
}

/* Generic gem */
.icon-gem {
  color: #ec4899;
}

/* ── DC card enhanced ── */
.dc-card {
  transition: transform 0.2s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1)),
              box-shadow 0.2s ease,
              border-color 0.2s ease;
}

.dc-card:hover .dc-currency-icon {
  animation: iconPulse 0.6s ease;
}

@keyframes iconPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25) rotate(-10deg); }
  70%  { transform: scale(0.95) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* ══════════════════════════════════════
   REAL GAME LOGO THUMBNAILS
══════════════════════════════════════ */

.game-card-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 72%;
  max-height: 62%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 1px rgba(255, 255, 255, 0.7));
  transition: transform 0.35s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1));
  z-index: 1;
}

.game-card:hover .game-card-logo {
  transform: scale(1.08) translateY(-2px);
}

/* subtle radial halo so logos pop on any gradient */
.game-card-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.16), transparent 65%);
  pointer-events: none;
}

/* Search dropdown thumbnails */
.search-result-icon {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-result-icon .game-card-logo {
  position: static;
  max-width: 80%;
  max-height: 80%;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

/* Game page hero — real logo */
.gp-hero-real-logo {
  max-height: 84px;
  max-width: 300px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 22px rgba(0,0,0,0.6));
}

/* ══════════════════════════════════════
   GLOBAL GAMING AMBIANCE
══════════════════════════════════════ */

/* Subtle grid pattern behind hero sections */
.gaming-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* Neon glow pulse on active elements */
.neon-pulse {
  animation: neonPulse 2s ease-in-out infinite;
}

@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.2); }
  50%       { box-shadow: 0 0 16px rgba(124,58,237,0.8), 0 0 40px rgba(124,58,237,0.4), 0 0 60px rgba(124,58,237,0.2); }
}

/* XP bar animation for stats */
.xp-bar-wrap {
  position: relative;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}

.xp-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease-expo, cubic-bezier(0.16,1,0.3,1));
  box-shadow: 0 0 8px rgba(124,58,237,0.6);
}

.xp-bar-fill.active {
  transform: scaleX(1);
}

/* ── Level badge ── */
.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.3));
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a78bfa;
  text-transform: uppercase;
}

/* ── Damage number pop (on successful order) ── */
@keyframes damageNum {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  60%  { transform: translateY(-40px) scale(1.2); opacity: 1; }
  100% { transform: translateY(-80px) scale(0.8); opacity: 0; }
}

.damage-num {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.5rem;
  font-weight: 900;
  color: #06d6a0;
  text-shadow: 0 0 12px rgba(6,214,160,0.8);
  animation: damageNum 1.5s ease-out forwards;
}

/* ── Animated background gradient (slow) ── */
.hero-animated-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    #0f0520,
    #1a0a3d,
    #0a1628,
    #140829
  );
  background-size: 400% 400%;
  animation: bgShift 16s ease infinite;
}

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

/* ── Hexagon grid (gaming aesthetic) ── */
.hex-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}

/* ── Cursor crosshair (optional on game pages) ── */
body.game-page-body {
  cursor: default;
}

/* ── Premium scroll indicator ── */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ══════════════════════════════════════
   SOCIAL MEDIA ICONS
══════════════════════════════════════ */

.social-links-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.social-icon-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: inherit;
}

.social-icon-btn:hover {
  transform: translateY(-3px);
  color: white;
}

.social-icon-btn.fb::before   { background: #1877f2; }
.social-icon-btn.ig::before   { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon-btn.tw::before   { background: #000000; }
.social-icon-btn.yt::before   { background: #ff0000; }

.social-icon-btn:hover::before { opacity: 1; }
.social-icon-btn i { position: relative; z-index: 1; }

/* ── Twitter / X icon ── */
.x-icon {
  font-weight: 900;
  font-size: 0.85rem;
  font-family: 'Arial Black', sans-serif;
}

/* ══════════════════════════════════════
   LEGAL / INFO PAGES
══════════════════════════════════════ */

.legal-page {
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a78bfa;
  margin-bottom: 20px;
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.legal-hero p {
  color: rgba(255,255,255,0.5);
  font-size: 0.95rem;
}

.legal-last-updated {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 14px;
  background: rgba(255,255,255,0.04);
  border-radius: 20px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Legal content card */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

.legal-section {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 20px;
  transition: border-color 0.2s ease;
}

.legal-section:hover {
  border-color: rgba(124,58,237,0.25);
}

.legal-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.legal-section-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(124,58,237,0.2);
  border: 1px solid rgba(124,58,237,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #a78bfa;
  flex-shrink: 0;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.legal-section p,
.legal-section li {
  color: rgba(255,255,255,0.62);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-section ul, .legal-section ol {
  padding-left: 20px;
}

.legal-section li {
  margin-bottom: 6px;
}

.legal-section a {
  color: #a78bfa;
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-highlight-box {
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem !important;
}

.legal-highlight-box strong {
  color: #a78bfa;
}

/* ── FAQ Accordion ── */
.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.open {
  border-color: rgba(124,58,237,0.3);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
  gap: 16px;
}

.faq-question:hover { color: #fff; }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #a78bfa;
  font-size: 0.8rem;
  transition: transform 0.3s var(--ease-spring, cubic-bezier(0.34,1.56,0.64,1));
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: rgba(124,58,237,0.3);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: rgba(255,255,255,0.58);
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
}

.faq-answer a {
  color: #a78bfa;
}

/* ── FAQ categories ── */
.faq-cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.faq-cat-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.faq-cat-btn.active,
.faq-cat-btn:hover {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  color: #a78bfa;
}

/* ══════════════════════════════════════
   FREE FIRE PAGE ART
══════════════════════════════════════ */

.ff-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

/* Free Fire flame silhouette */
.ff-flame-main {
  position: absolute;
  bottom: 0;
  right: 10%;
  width: 180px;
  height: 320px;
  filter: drop-shadow(0 0 40px rgba(255, 100, 0, 0.6));
  animation: flamePulse 3s ease-in-out infinite;
}

@keyframes flamePulse {
  0%, 100% { transform: scaleX(1) scaleY(1); filter: drop-shadow(0 0 40px rgba(255,100,0,0.6)); }
  50%       { transform: scaleX(1.03) scaleY(1.02); filter: drop-shadow(0 0 60px rgba(255,140,0,0.8)); }
}

/* ── PUBG page art ── */
.pubg-hero-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.pubg-helmet-art {
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 0 40px rgba(255, 210, 0, 0.5));
  animation: helmetBob 4s ease-in-out infinite;
}

@keyframes helmetBob {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 12px)); }
}

/* PUBG tactical lines */
.pubg-tac-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(255,210,0,0.15), transparent);
  height: 1px;
  width: 100%;
  animation: tacScan 6s ease-in-out infinite;
}

@keyframes tacScan {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 0.5; }
  100% { top: 100%; opacity: 0; }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 768px) {
  .ff-hero-art,
  .pubg-hero-art,
  .gp-hero-game-art {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.3;
  }

  .legal-section {
    padding: 24px 20px;
  }
}
