/* CardSwap View - Brutalist Style */

.card-swap-container {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 500px;
  perspective: 900px;
  overflow: visible;
  font-family: 'Google Sans Code', monospace;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.card-swap-card {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 12px;
  border: 4px solid #000;
  background: #fff;
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 10px 10px 0 #000;
  padding: 1.5rem;
  cursor: pointer;
  font-family: 'Google Sans Code', monospace;
  overflow: hidden;
}

.card-swap-card:hover {
  box-shadow: 12px 12px 0 #000;
  transform: translate(-50%, -50%) translateZ(10px);
}

.card-swap-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #000;
  text-transform: uppercase;
  font-family: 'Google Sans Code', monospace;
}

.card-swap-card p {
  font-size: 0.9rem;
  color: #333;
  line-height: 1.5;
  font-family: 'Google Sans Code', monospace;
  margin: 0;
}

.card-swap-card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-swap-card .card-header {
  border-bottom: 3px solid #000;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}

.card-swap-card .card-body {
  flex: 1;
  overflow-y: auto;
}

.card-swap-card .card-footer {
  border-top: 3px solid #000;
  padding-top: 0.75rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  text-transform: uppercase;
}

/* Brutalist grid layout for card swap */
.card-swap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 24px;
}

.card-swap-item {
  position: relative;
  min-height: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .card-swap-container {
    max-width: 100%;
    padding: 20px 10px;
    transform: scale(0.85);
  }
  
  .card-swap-item {
    min-height: 350px;
    padding: 10px;
  }
  
  .card-swap-card {
    padding: 1rem;
  }
  
  .card-swap-card h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .card-swap-container {
    max-width: 100%;
    padding: 10px 5px;
    transform: scale(0.7);
  }
  
  .card-swap-item {
    min-height: 300px;
    padding: 5px;
  }
  
  .card-swap-card {
    padding: 0.75rem;
  }
  
  .card-swap-card h3 {
    font-size: 1rem;
  }
}

/* Dark mode support */
[data-theme="dark"] .card-swap-card {
  background: #1a1a1a;
  border-color: #fff;
  color: #fff;
  box-shadow: 10px 10px 0 #fff;
}

[data-theme="dark"] .card-swap-card:hover {
  box-shadow: 12px 12px 0 #fff;
}

[data-theme="dark"] .card-swap-card h3 {
  color: #fff;
}

[data-theme="dark"] .card-swap-card p {
  color: #ccc;
}

[data-theme="dark"] .card-swap-card .card-header {
  border-bottom-color: #fff;
}

[data-theme="dark"] .card-swap-card .card-footer {
  border-top-color: #fff;
  color: #fff;
}

