/* DarkWave NFT Trading Cards Carousel - COMPACT LOW-PROFILE */

.trading-carousel-locked {
  background: transparent;
  border: 1px solid rgba(56, 97, 251, 0.3);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.trading-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
}

.trading-carousel-header h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 700;
}

.trading-lock-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #FBBF24;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}

.lock-icon {
  font-size: 12px;
}

.trading-carousel-preview {
  margin-top: 8px;
}

.trading-carousel-preview p {
  color: var(--text-secondary);
  margin: 6px 0;
  font-size: 11px;
}

.trading-cards-grid-preview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 8px 0;
}

.trading-card-preview-item {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 2.5/3.5;
  background: rgba(56, 97, 251, 0.1);
  border: 1px solid rgba(56, 97, 251, 0.2);
}

.trading-card-image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trading-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.trading-card-locked-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  font-size: 24px;
}

.trading-preview-text {
  color: var(--accent-blue);
  font-weight: 600;
  font-size: 11px;
}

/* Active Carousel */

.trading-carousel-container {
  background: transparent;
  border: 1px solid rgba(56, 97, 251, 0.3);
  border-radius: 8px;
  padding: 12px;
}

.trading-carousel-stats {
  display: flex;
  gap: 8px;
}

.stat {
  background: rgba(56, 97, 251, 0.15);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-blue);
}

.trading-carousel-main {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  justify-content: center;
}

.trading-carousel-nav {
  background: rgba(56, 97, 251, 0.2);
  border: 1px solid rgba(56, 97, 251, 0.4);
  color: var(--accent-blue);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.trading-carousel-nav:hover {
  background: rgba(56, 97, 251, 0.4);
  transform: scale(1.08);
}

.trading-card-display {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  max-width: 180px;
}

.trading-card-frame {
  background: var(--refractor-color);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  width: 100%;
  aspect-ratio: 2.5/3.5;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(56, 97, 251, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.trading-card-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.02) 0px,
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 1;
}

.trading-card-hologram {
  position: relative;
  width: 100%;
  height: 60%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 2;
}

.trading-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.trading-card-header {
  text-align: center;
  margin-bottom: 6px;
  z-index: 2;
  padding: 0 4px;
}

.trading-card-header h3 {
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  letter-spacing: 0.5px;
}

.trading-card-age {
  display: block;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.trading-card-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.9);
  overflow-y: auto;
  z-index: 2;
}

.trading-card-detail-section {
  background: rgba(0, 0, 0, 0.15);
  padding: 3px 4px;
  border-radius: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.trading-card-detail-section strong {
  display: block;
  font-size: 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1px;
  letter-spacing: 0.3px;
}

.trading-card-detail-section p {
  margin: 0;
  line-height: 1.2;
}

.trading-card-footer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: auto;
  z-index: 2;
}

.trading-card-serial {
  flex: 1;
  font-size: 6px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.15);
  padding: 2px 3px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1;
}

.trading-card-qr {
  background: rgba(255, 255, 255, 0.93);
  padding: 3px;
  border-radius: 4px;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
}

.trading-qr-code {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trading-qr-code canvas {
  width: 100% !important;
  height: 100% !important;
}

.trading-carousel-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.trading-info-box {
  background: rgba(56, 97, 251, 0.08);
  border: 1px solid rgba(56, 97, 251, 0.2);
  border-radius: 6px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trading-info-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.trading-info-value {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-blue);
}

.trading-carousel-nav-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.trading-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(56, 97, 251, 0.25);
  border: 0.5px solid rgba(56, 97, 251, 0.4);
  cursor: pointer;
  transition: all 0.15s ease;
}

.trading-dot.active {
  background: var(--accent-blue);
  box-shadow: 0 0 6px rgba(56, 97, 251, 0.6);
  transform: scale(1.15);
}

.trading-dot:hover {
  background: rgba(56, 97, 251, 0.4);
}

/* Responsive */

@media (max-width: 768px) {
  .trading-card-frame {
    max-width: 160px;
    padding: 8px;
  }

  .trading-carousel-nav {
    width: 24px;
    height: 24px;
    font-size: 12px;
  }

  .trading-card-display {
    max-width: 160px;
  }
}

@media (max-width: 480px) {
  .trading-carousel-locked {
    padding: 8px;
  }

  .trading-cards-grid-preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .trading-carousel-main {
    gap: 6px;
  }

  .trading-card-display {
    max-width: 140px;
  }

  .trading-card-frame {
    padding: 6px;
  }

  .trading-carousel-nav {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .trading-carousel-info {
    grid-template-columns: 1fr;
  }
}

@keyframes tradingCardFlip {
  0% {
    opacity: 0;
    transform: rotateY(60deg);
  }
  100% {
    opacity: 1;
    transform: rotateY(0deg);
  }
}

.trading-card-frame {
  animation: tradingCardFlip 0.3s ease;
}
