/* Custom styles for TCG Cardmarket Collector */

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #020617;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Card card hover and foil effect */
.tcg-card {
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tcg-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: 0 10px 25px -5px rgba(245, 158, 11, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

/* Foil shine animation effect */
.foil-badge {
  position: relative;
  overflow: hidden;
}

.foil-badge::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: rotate(35deg);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(35deg); }
  20% { transform: translateX(100%) rotate(35deg); }
  100% { transform: translateX(100%) rotate(35deg); }
}

/* Card image container aspect ratio */
.card-img-container {
  aspect-ratio: 2.5 / 3.5;
  background: #090d16;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tcg-card:hover .card-img-container img {
  transform: scale(1.04);
}

/* Active tab style */
.tab-btn.active {
  background-color: #f59e0b !important;
  color: #020617 !important;
}

/* Toast animation */
.toast-enter {
  animation: slideIn 0.25s ease forwards;
}

@keyframes slideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 📷 Mobile Camera Scanner & Reticle */
.scanner-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scanner-reticle-box {
  position: relative;
  width: 82%;
  max-width: 340px;
  aspect-ratio: 2.5 / 3.5;
  border-radius: 1.25rem;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.75);
  border: 2px solid rgba(245, 158, 11, 0.6);
  pointer-events: none;
  overflow: hidden;
}

.scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #f59e0b 20%, #ef4444 50%, #f59e0b 80%, transparent 100%);
  box-shadow: 0 0 15px 3px rgba(245, 158, 11, 0.8), 0 0 30px 6px rgba(239, 68, 68, 0.6);
  animation: scannerLaser 2.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scannerLaser {
  0% {
    top: 5%;
    opacity: 0.6;
  }
  50% {
    top: 95%;
    opacity: 1;
  }
  100% {
    top: 5%;
    opacity: 0.6;
  }
}

.reticle-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #f59e0b;
  pointer-events: none;
}

.reticle-corner-tl {
  top: -2px;
  left: -2px;
  border-top-width: 4px;
  border-left-width: 4px;
  border-top-left-radius: 1.25rem;
}

.reticle-corner-tr {
  top: -2px;
  right: -2px;
  border-top-width: 4px;
  border-right-width: 4px;
  border-top-right-radius: 1.25rem;
}

.reticle-corner-bl {
  bottom: -2px;
  left: -2px;
  border-bottom-width: 4px;
  border-left-width: 4px;
  border-bottom-left-radius: 1.25rem;
}

.reticle-corner-br {
  bottom: -2px;
  right: -2px;
  border-bottom-width: 4px;
  border-right-width: 4px;
  border-bottom-right-radius: 1.25rem;
}

