@import url('../bloc/detail.css');

#cardDetailPage {
  max-width: 100%;
  overflow-x: clip;
}

#cardDetailPage .product-scroll-row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.card-detail-hero-icon {
  flex-shrink: 0;
}

.card-detail-hero-price__value {
  font-size: 1.5rem;
  font-weight: 800;
  color: #192653;
  line-height: 1.2;
}

.card-detail-panel {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.card-detail-panel__toolbar {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid #f1f3f5;
  background: #fff;
}

.price-change {
  font-size: 1.05em;
  font-weight: 600;
}

.price-up {
  color: #28a745;
}

.price-down {
  color: #dc3545;
}

.chart-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
}

.chart-container canvas {
  width: 100% !important;
  max-width: 800px;
  max-height: 360px;
}

.card-detail-sheet {
  border: none;
  border-radius: 16px;
  overflow: hidden;
}

.card-detail-sheet__media {
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1f5 100%);
  border-right: 1px solid #e9ecef;
}

.card-detail-sheet__media-inner {
  padding: 1.25rem;
  max-width: 360px;
  margin: 0 auto;
}

.card-detail-sheet__content {
  background: #fff;
}

.card-detail-sheet__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 992px) {
  .card-detail-sheet__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card-detail-sheet__stat {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  min-width: 0;
}

.card-detail-sheet__stat-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 0.2rem;
}

.card-detail-sheet__collection {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  background: #fafbfc;
}

.card-detail-sheet__links a {
  color: #192653;
}

.card-detail-sheet__personage {
  background: #fafbfc;
}

.card-detail-sheet__personage-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0.75rem 1rem;
  border-radius: 12px;
  background: #fff;
  padding: 0.25rem;
}

.card-detail-sheet__personage-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.card-tcg-detail.card-detail-sheet:hover {
  transform: none;
}

.card-detail-sheet .card-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(25, 38, 83, 0.14);
}

.card-detail-sheet .card-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.card-detail-sheet .card-image.admin-item-zoom:focus-visible {
  outline: 2px solid var(--bs-primary, #0d6efd);
  outline-offset: 3px;
}

.card-image {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.foil-1 {
  position: absolute;
  inset: -60%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.45) 22%,
    rgba(255, 255, 255, 0.08) 38%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.08) 62%,
    rgba(255, 255, 255, 0.45) 78%,
    rgba(255, 255, 255, 0.05) 100%
  );
  mix-blend-mode: overlay;
  opacity: 0.95;
  transform: rotate(25deg);
  animation: cardDetailFoilSweep 5.5s linear infinite;
}

.foil-2 {
  animation-duration: 9s;
  opacity: 0.6;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0.05)
  );
}

@keyframes cardDetailFoilSweep {
  0% {
    transform: translateX(-60%) rotate(25deg);
  }
  100% {
    transform: translateX(60%) rotate(25deg);
  }
}

.card-tcg-detail:hover .foil-effect {
  opacity: 1;
  animation-duration: 3s;
}

#prevCardBtn .nav-tooltip {
  left: 60px;
}

#nextCardBtn .nav-tooltip {
  right: 60px;
}

@media (max-width: 767.98px) {
  #cardHeaderContent {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .expansion-hero-text {
    width: 100%;
  }

  .card-detail-sheet__media {
    border-right: none;
    border-bottom: 1px solid #e9ecef;
  }
}
