/* css/billboards.css - Enhanced Cyberpunk Billboard Styles */

/* Billboard Base */
.cyberpunk-billboard {
  position: absolute;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 50;
}

.cyberpunk-billboard:hover {
  transform: scale(1.02);
}

/* Size Classes */
.billboard-large {
  width: 180px;
  height: 120px;
}

.billboard-medium {
  width: 140px;
  height: 90px;
}

.billboard-small {
  width: 110px;
  height: 70px;
}

/* Billboard Types */

/* Holographic Billboard */
.billboard-holographic {
  background: linear-gradient(45deg,
      rgba(0, 255, 255, 0.15) 0%,
      rgba(255, 0, 255, 0.15) 25%,
      rgba(0, 255, 255, 0.15) 50%,
      rgba(255, 0, 255, 0.15) 75%,
      rgba(0, 255, 255, 0.15) 100%);
  background-size: 400% 400%;
  animation: holographic-shift 4s ease-in-out infinite;
  border: 2px solid rgba(0, 255, 255, 0.7);
  backdrop-filter: blur(1px);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

@keyframes holographic-shift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

/* Neon Billboard */
.billboard-neon {
  background: rgba(0, 0, 0, 0.8);
  border: 3px solid;
  animation: neon-pulse 2s ease-in-out infinite alternate;
}

@keyframes neon-pulse {
  from {
    box-shadow:
      0 0 10px currentColor,
      0 0 20px currentColor,
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }

  to {
    box-shadow:
      0 0 20px currentColor,
      0 0 35px currentColor,
      0 0 50px currentColor,
      inset 0 0 20px rgba(255, 255, 255, 0.2);
  }
}

/* Video Billboard */
.billboard-video {
  background: rgba(17, 17, 17, 0.9);
  border: 2px solid #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

/* Text Billboard */
.billboard-text {
  background: linear-gradient(135deg,
      rgba(26, 26, 46, 0.8),
      rgba(22, 33, 62, 0.8));
  border: 2px solid #ffaa00;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.4);
}

/* Billboard Content */
.billboard-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8px;
  color: #fff;
}

.billboard-emoji {
  font-size: 1.5em;
  margin-bottom: 4px;
  filter: drop-shadow(0 0 8px currentColor);
}

.billboard-title {
  font-size: 0.9em;
  font-weight: bold;
  margin-bottom: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px currentColor;
}

.billboard-subtitle {
  font-size: 0.6em;
  opacity: 0.8;
  margin-bottom: 4px;
  text-shadow: 0 0 5px currentColor;
}

.billboard-cta {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.5em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.billboard-cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

/* Special Effects */

/* Glitch Text Effect */
.glitch-text {
  animation: glitch 2s infinite;
}

@keyframes glitch {

  0%,
  100% {
    text-shadow:
      1px 0 #ff0000,
      -1px 0 #00ffff;
  }

  25% {
    text-shadow:
      -1px 0 #ff0000,
      1px 0 #00ffff;
  }

  50% {
    text-shadow:
      1px 0 #00ffff,
      -1px 0 #ff0000;
  }

  75% {
    text-shadow:
      -1px 0 #00ffff,
      1px 0 #ff0000;
  }
}

/* Scrolling Text */
.scrolling-text {
  width: 90%;
  white-space: nowrap;
  overflow: hidden;
  background: #000;
  color: #00ff00;
  padding: 2px 4px;
  font-family: 'Courier New', monospace;
  border-radius: 2px;
  margin: 2px 0;
  font-size: 0.6em;
}

.scrolling-text span {
  display: inline-block;
  animation: scroll-text 8s linear infinite;
}

@keyframes scroll-text {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Scan Line Effect */
.billboard-scan-line {
  position: absolute;
  top: 0;
  width: 3px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  animation: scan-line 3s infinite;
  pointer-events: none;
}

@keyframes scan-line {
  0% {
    left: -3px;
  }

  100% {
    left: 100%;
  }
}

/* Floating Particles */
.billboard-particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: rgba(0, 255, 255, 0.8);
  border-radius: 50%;
  animation: float-particle 4s infinite ease-in-out;
  pointer-events: none;
}

@keyframes float-particle {

  0%,
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  50% {
    transform: translateY(-10px) translateX(5px);
    opacity: 1;
  }
}

/* Hit State */
.cyberpunk-billboard.hit {
  animation: billboard-destroy 0.6s ease-out forwards;
}

@keyframes billboard-destroy {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) rotate(10deg);
  }

  100% {
    transform: scale(0) rotate(180deg);
    opacity: 0;
  }
}

/* Click Effect */
.billboard-click-effect {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border: 3px solid #ffff00;
  border-radius: inherit;
  pointer-events: none;
  animation: click-ripple 0.5s ease-out forwards;
}

@keyframes click-ripple {
  from {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  to {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

/* Revenue Display */
.billboard-revenue {
  position: absolute;
  top: -30px;
  right: 10px;
  padding: 5px 10px;
  background: #ffff00;
  color: #000000;
  font-weight: bold;
  border-radius: 15px;
  font-size: 14px;
  box-shadow: 0 0 10px #ffff00;
  transform: scale(0);
  animation: revenue-pop 1s ease-out forwards;
}

@keyframes revenue-pop {
  0% {
    transform: scale(0) translateY(0);
    opacity: 1;
  }

  50% {
    transform: scale(1.2) translateY(-10px);
  }

  100% {
    transform: scale(1) translateY(-30px);
    opacity: 0;
  }
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .billboard-large {
    width: 160px;
    height: 100px;
  }

  .billboard-medium {
    width: 120px;
    height: 80px;
  }

  .billboard-small {
    width: 90px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .billboard-large {
    width: 140px;
    height: 90px;
  }

  .billboard-medium {
    width: 110px;
    height: 70px;
  }

  .billboard-small {
    width: 80px;
    height: 50px;
  }
}

/* Performance Mode */
.low-performance .cyberpunk-billboard {
  animation: none !important;
}

.low-performance .billboard-particle,
.low-performance .billboard-scan-line {
  display: none !important;
}