/**
 * VISUAL ENHANCEMENTS - BANCANNABIS
 * Mejoras visuales: Fondo uniforme, DEX infografía, hover effects mejorados
 */

/* ========================================
   FONDO GLOBAL FIJO TIPO PARALLAX
   El fondo está en body (ver base.css)
   Overlay para controlar opacity
   ======================================== */

/* Overlay oscuro para controlar visibilidad del fondo */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-primary);
  opacity: 0.82;  /* Inverso de 0.18 para que el fondo se vea al 18% */
  z-index: 0;
  pointer-events: none;
}

/* Hacer todas las secciones transparentes (excepto Hero) */
.section:not(.hero) {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* Hero mantiene su gradient radial */
.hero {
  position: relative;
  z-index: 1;
}

/* Asegurar que el contenido esté por encima */
.section > .container {
  position: relative;
  z-index: 2;
}

/* Header siempre visible sobre todo - z-index definido en sections.css */

/* Footer también visible */
.footer {
  background: transparent;
  position: relative;
  z-index: 1;
}

/* ========================================
   DEX POOL INFOGRAFÍA
   Visualización de pool de liquidez PancakeSwap
   ======================================== */

.dex-pool-visual {
  max-width: 900px;
  margin: var(--space-16) auto;
  padding: var(--space-10);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-default);
  border-radius: var(--radius-xl);
}

.dex-pool-visual__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

/* PancakeSwap Logo */
.pancakeswap-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(255, 114, 13, 0.3));
  transition: transform 0.3s ease;
}

.pancakeswap-logo:hover {
  transform: scale(1.1);
}

.dex-pool-visual__label {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* Container principal del pool */
.dex-pool-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: center;
  margin-bottom: var(--space-8);
}

@media (max-width: 768px) {
  .dex-pool-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* Tokens (BCA y BNB) */
.dex-token {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base) var(--transition-easing);
}

.dex-token:hover {
  transform: scale(1.02);
  border-color: var(--color-border-default);
}

.dex-token--bca {
  border-color: rgba(80, 244, 122, 0.3);
}

.dex-token--bca:hover {
  border-color: rgba(80, 244, 122, 0.6);
  box-shadow: 0 0 20px rgba(80, 244, 122, 0.3);
}

.dex-token--bnb {
  border-color: rgba(255, 114, 13, 0.3);
}

.dex-token--bnb:hover {
  border-color: rgba(255, 114, 13, 0.6);
  box-shadow: 0 0 20px rgba(255, 114, 13, 0.3);
}

.dex-token__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--font-bold);
  font-size: var(--text-lg);
}

.dex-token--bca .dex-token__icon {
  background: linear-gradient(135deg, #50F47A, #3AB85A);
  color: var(--color-bg-primary);
}

.dex-token--bnb .dex-token__icon {
  background: linear-gradient(135deg, #FF720D, #D85F00);
  color: white;
}

/* BCA Token Logo Styles */
.dex-token__icon--with-logo {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.dex-token__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  filter: drop-shadow(0 2px 8px rgba(80, 244, 122, 0.4));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dex-token--bca:hover .dex-token__logo {
  transform: scale(1.15) rotate(8deg);
}

.dex-token__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.dex-token__name {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.dex-token__amount {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

/* Pool Central */
.dex-pool-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dex-pool-center__circle {
  position: relative;
  width: 80px;
  height: 80px;
}

.dex-pool-center__label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dex-pool-center__title {
  font-size: var(--text-xs);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

.dex-pool-center__ratio {
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  color: var(--color-text-primary);
}

/* Flechas de flujo */
.dex-arrow {
  position: absolute;
  animation: arrowPulse 2s ease-in-out infinite;
}

.dex-arrow--left {
  left: -50px;
}

.dex-arrow--right {
  right: -50px;
}

@keyframes arrowPulse {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .dex-arrow {
    display: none;
  }
}

/* Footer con stats */
.dex-pool-visual__footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 640px) {
  .dex-pool-visual__footer {
    grid-template-columns: 1fr;
  }
}

.dex-stat {
  text-align: center;
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
}

.dex-stat__value {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-green-400);
  margin-bottom: var(--space-1);
}

.dex-stat__label {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ========================================
   HOVER EFFECTS MEJORADOS
   Team, Companies, CTA sections
   ======================================== */

/* Cofounder Cards - Glow effect */
.cofounder-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-green-400);
  box-shadow:
    0 0 30px rgba(80, 244, 122, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.4);
}

/* Company Cards - Glow effect */
.company-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--color-green-400);
  box-shadow:
    0 0 30px rgba(80, 244, 122, 0.4),
    0 12px 24px rgba(0, 0, 0, 0.4);
}

/* CTA Final Button - Enhanced glow */
.cta-final__button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 40px rgba(80, 244, 122, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Team Details (collapsible) - Glow on hover */
.team-details:hover {
  border-color: var(--color-green-400);
  box-shadow: 0 0 20px rgba(80, 244, 122, 0.2);
}

/* Team Summary - Mejorar hover */
.team-summary:hover {
  color: var(--color-green-400);
  text-shadow: 0 0 10px rgba(80, 244, 122, 0.5);
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  .dex-pool-visual {
    padding: var(--space-6);
  }

  .dex-pool-visual__header svg {
    width: 24px;
    height: 24px;
  }

  .dex-pool-visual__label {
    font-size: var(--text-base);
  }

  .dex-token {
    flex-direction: column;
    text-align: center;
  }

  .dex-token__icon {
    width: 48px;
    height: 48px;
  }

  .dex-token__logo {
    padding: 8px;
  }

  .dex-token__amount {
    font-size: var(--text-lg);
  }

  .dex-stat__value {
    font-size: var(--text-xl);
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  .dex-arrow {
    animation: none;
  }

  .cofounder-card:hover,
  .company-card:hover,
  .cta-final__button:hover {
    transform: none;
  }
}

/* ========================================
   OCULTAR FONDOS INDIVIDUALES DE SECCIONES
   Ya no son necesarios porque el body tiene fondo fijo global
   ======================================== */

.discover__bg-wrapper,
.crowdgrowing__bg-image,
.services__bg-wrapper,
.token-bca__bg-wrapper,
.egrower-master__bg-image,
.faq__bg-image,
.footer__bg-pattern {
  display: none !important;
}

/* ========================================
   REAL POOL EXAMPLE SECTION
   ======================================== */

.real-pool-example {
  margin-top: 6rem;
  margin-bottom: 4rem;
  text-align: center;
}

.real-pool-example h3 {
  font-size: 2.5rem;
  font-weight: var(--font-black);
  margin-bottom: 1.5rem;
  color: var(--color-green-400);
  text-shadow: 0 0 30px rgba(80, 244, 122, 0.3);
  letter-spacing: -0.02em;
}

.real-pool-example__intro {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 3rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.real-pool-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2.5rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  border: 1px solid var(--color-border-default);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.real-pool-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(80, 244, 122, 0.15);
  border-color: var(--color-green-400);
}

.real-pool-card__image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(80, 244, 122, 0.1);
  transition: transform 0.3s ease;
}

.real-pool-card:hover .real-pool-card__image {
  transform: scale(1.02);
}

.real-pool-card__caption {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-text-tertiary);
  margin-bottom: 1.5rem;
}

.real-pool-card__caption strong {
  color: var(--color-green-400);
  font-weight: var(--font-semibold);
}

/* Responsive adjustments for real pool example */
@media (max-width: 768px) {
  .real-pool-example {
    margin-top: 4rem;
  }

  .real-pool-example h3 {
    font-size: 2rem;
  }

  .real-pool-example__intro {
    font-size: 1.125rem;
    padding: 0 1rem;
  }

  .real-pool-card {
    max-width: 100%;
    padding: 2rem 1.5rem;
  }

  .pancakeswap-logo {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .real-pool-example h3 {
    font-size: 1.75rem;
  }

  .real-pool-example__intro {
    font-size: 1rem;
  }

  .real-pool-card {
    padding: 1.5rem;
  }
}
