/* Space Exchange Visualization CSS */
.space-exchange-container {
  position: relative;
  width: 100%;
  height: 400px;
  background-color: #070B1A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* Stars background */
.stars-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1;
}

/* Spaceships */
.spaceship {
  position: absolute;
  width: 60px;
  height: 40px;
  z-index: 3;
  transition: transform 0.3s ease-out, filter 0.3s ease-in-out;
  cursor: pointer;
}

.spaceship-left {
  top: 50%;
  left: 15%;
  transform: translateY(-50%) rotate(10deg);
  animation: floatLeft 8s infinite ease-in-out;
}

.spaceship-right {
  top: 50%;
  right: 15%;
  transform: translateY(-50%) rotate(-10deg);
  animation: floatRight 8s infinite ease-in-out;
}

.spaceship:hover {
  transform: translateY(-50%) scale(1.1);
  filter: brightness(1.3);
  animation-play-state: paused;
}

.spaceship-left:hover {
  transform: translateY(-50%) scale(1.1) rotate(5deg);
}

.spaceship-right:hover {
  transform: translateY(-50%) scale(1.1) rotate(-5deg);
}

.spaceship img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(0, 200, 255, 0.7));
  transition: filter 0.3s ease;
}

.spaceship:hover img {
  filter: drop-shadow(0 0 12px rgba(0, 200, 255, 1));
}

/* Currency symbols */
.currency {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 2;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.crypto {
  background: linear-gradient(135deg, #ff9d00, #ff5c00);
  box-shadow: 0 0 20px rgba(255, 156, 0, 0.6);
  font-size: 16px;
}

.fiat {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  box-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
  font-size: 18px;
}

/* Exchange animation */
.exchange-path {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 156, 0, 0.5), rgba(76, 175, 80, 0.5));
  z-index: 1;
  border-radius: 4px;
  overflow: visible;
}

.exchange-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: white;
  z-index: 4;
  top: 50%;
  transform: translateY(-50%);
  filter: blur(1px);
}

.particle-left-to-right {
  animation: moveLeftToRight 2s infinite linear;
}

.particle-right-to-left {
  animation: moveRightToLeft 2s infinite linear;
}

.platform {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(193, 255, 51, 0.2), rgba(193, 255, 51, 0.05));
  box-shadow: 0 0 30px rgba(193, 255, 51, 0.3);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 4s infinite ease-in-out;
}

.platform-logo {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 0 10px rgba(193, 255, 51, 0.5));
}

.currency-badge {
  position: absolute;
  display: flex;
  gap: 8px;
  background-color: rgba(30, 30, 30, 0.7);
  border-radius: 20px;
  padding: 8px 15px;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.crypto-badge {
  bottom: 15px;
  left: 15px;
  border-left: 3px solid #ff9d00;
}

.fiat-badge {
  bottom: 15px;
  right: 15px;
  border-left: 3px solid #4CAF50;
}

.currency-badge i {
  color: #C1FF33;
  margin-right: 5px;
}

/* Animations */
@keyframes floatLeft {
  0%, 100% { transform: translateY(-50%) rotate(10deg); }
  50% { transform: translateY(-60%) rotate(5deg); }
}

@keyframes floatRight {
  0%, 100% { transform: translateY(-50%) rotate(-10deg); }
  50% { transform: translateY(-40%) rotate(-5deg); }
}

@keyframes moveLeftToRight {
  0% { left: 0; opacity: 0.5; }
  50% { opacity: 1; }
  100% { left: 100%; opacity: 0.5; }
}

@keyframes moveRightToLeft {
  0% { right: 0; opacity: 0.5; }
  50% { opacity: 1; }
  100% { right: 100%; opacity: 0.5; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(193, 255, 51, 0.3); }
  50% { box-shadow: 0 0 50px rgba(193, 255, 51, 0.5); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .space-exchange-container {
    height: 350px;
  }
  
  .spaceship {
    width: 50px;
    height: 30px;
  }
  
  .spaceship-left {
    left: 10%;
  }
  
  .spaceship-right {
    right: 10%;
  }
  
  .exchange-path {
    width: 150px;
  }
  
  .platform {
    width: 80px;
    height: 60px;
  }
  
  .platform-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .space-exchange-container {
    height: 300px;
  }
  
  .spaceship {
    width: 40px;
    height: 25px;
  }
  
  .currency {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .exchange-path {
    width: 120px;
  }
  
  .platform {
    width: 60px;
    height: 50px;
  }
  
  .platform-logo {
    width: 50px;
    height: 50px;
  }
  
  .currency-badge {
    font-size: 12px;
    padding: 6px 10px;
  }
}