/* Shop page-specific styles */
@import '../base.css';

/* YouTube Icon Enhancement */
.card-image {
  position: relative;
}

/* --- LABEL TEMPLATES (disabled) --- */
/*
.card[data-video] .card-image::before {
  content: "VIDEO";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #4b5563, #6b7280);
  color: white;
  padding: 4px 12px 6px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: shimmer 3s infinite;
}

.card[data-tags*="Card"] .card-image::before {
  content: "CARD";
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(45deg, #4b5563, #6b7280);
  color: white;
  padding: 4px 12px 6px 8px;
  font-size: 0.7rem;
  font-weight: bold;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: shimmer 3s infinite;
}
*/



.youtube-link {
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

/* Remove bounce animation for prints */
.card[data-tags*="Print"] .youtube-link {
  animation: none !important;
}

.youtube-link:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(107, 114, 128, 0.6));
  background: rgba(255, 255, 255, 1);
}

.youtube-link .icon {
  color: #6b7280 !important;
  font-size: 1.4rem !important;
}

.youtube-slide-label {
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(20px);
  opacity: 0;
  background: #fff;
  color: #48494e;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 2px 10px;
  margin-right: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  white-space: nowrap;
  transition: transform 0.7s cubic-bezier(.4,0,.2,1), opacity 0.7s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
  z-index: 3;
}

/* Show label on hover/focus or mobile tap */
.youtube-link.active .youtube-slide-label,
.youtube-link:hover .youtube-slide-label,
.youtube-link:focus .youtube-slide-label {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* Subtle pulsing animation */
@keyframes pulse-glow {
  0% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(107, 114, 128, 0.4);
  }
  70% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 6px rgba(107, 114, 128, 0);
  }
  100% {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 0 rgba(107, 114, 128, 0);
  }
}

/* Card layout improvements for variable content heights */
.card {
  display: flex;
  flex-direction: column;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0px 0 1px rgba(10, 10, 10, 0.02);
}

.card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 0.75rem;
}

.card-content .title.is-6 {
  margin-bottom: 0.75rem;
  flex-shrink: 0;
  line-height: 1.3;
  min-height: 2.6rem; /* Ensure consistent spacing for 1-2 lines */
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-content .quantity-control {
  margin: 0.5rem 0;
  align-self: center;
}

.card-content .help {
  margin-top: auto;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Ensure consistent card image aspect ratio */
.card-image figure.image {
  padding-top: 100%; /* 1:1 aspect ratio */
  position: relative;
}

.card-image figure.image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
