/**
 * SHOP PANEL VITRINA STYLES — GelatoMaps 5.5
 * "La Vitrina" — Shop Detail Panel Visual Enhancements
 */

/* Hero Photo Enhancement */
.vitrina-hero-photo {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #f0f9ff 100%);
  animation: fadeIn 0.3s ease;
}

.vitrina-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Bolas Display Enhancement */
.vitrina-bolas-display {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  margin: 12px 0;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.vitrina-bolas-display::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.vitrina-bolas-display div:first-child {
  position: relative;
  z-index: 1;
  animation: bolasPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bolasPulse {
  from {
    transform: scale(0.9);
    opacity: 0.7;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Sabores Carousel */
.sabores-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0;
  scrollbar-width: none;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.sabores-scroll::-webkit-scrollbar {
  display: none;
}

.sabor-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: default;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sabor-chip:active,
.sabor-chip:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.3);
  outline-offset: 2px;
}

@media (hover: hover) {
  .sabor-chip:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  }
}

/* Vote CTA Button Pulse */
.vitrina-vote-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal), #14B8A6);
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
  transition: all 0.2s ease;
}

.vitrina-vote-cta:active {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.2);
}

@media (hover: hover) {
  .vitrina-vote-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 148, 136, 0.3);
  }
}

.vote-cta-pulse {
  animation: ctaPulse 2.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25), 0 0 0 0 rgba(13, 148, 136, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25), 0 0 0 10px rgba(13, 148, 136, 0);
  }
}

/* Stamp Card */
.vitrina-stamp-card {
  padding: 14px;
  background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
  border: 1px solid #FDE68A;
  border-radius: 12px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.1);
  animation: stampSlideIn 0.4s ease;
}

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

.vitrina-stamp-card .stamp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

/* Bolas Prominence Styling */
/* 3-Bola styling */
.vitrina-bolas-display[data-bolas="3"] {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.1));
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 24px rgba(245, 158, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 2-Bola styling */
.vitrina-bolas-display[data-bolas="2"] {
  background: linear-gradient(135deg, rgba(192, 192, 192, 0.1), rgba(211, 211, 211, 0.08));
  border: 1px solid rgba(192, 192, 192, 0.3);
  box-shadow: 0 0 16px rgba(192, 192, 192, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 1-Bola styling */
.vitrina-bolas-display[data-bolas="1"] {
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.1), rgba(20, 184, 166, 0.08));
  border: 1px solid rgba(13, 148, 136, 0.3);
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 640px) {
  .sabores-scroll {
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .sabor-chip {
    padding: 6px 12px;
    font-size: 12px;
  }

  .vitrina-vote-cta {
    padding: 12px 14px;
    font-size: 13px;
  }

  .vitrina-stamp-card {
    padding: 12px;
  }

  .vitrina-stamp-card .stamp-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .sabor-chip,
  .vitrina-vote-cta,
  .vitrina-stamp-card {
    animation: none !important;
    transition: none !important;
  }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
  .vitrina-hero-photo {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
  }
}
