/* Index page - Gift Voucher Selection */

/* Hero Section */
.gift-vouchers-page {
  min-height: 100vh;
  padding: 2rem 0;
  position: relative;
}

/* Vouchers Grid */
.vouchers-grid {
  display: flex;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin: 4rem 0;
  padding: 2rem 0;
}

/* Voucher Card */
.voucher-card {
  position: relative;
  border-radius: var(--radius-large);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 2px solid var(--border-primary);
  aspect-ratio: 1.6;
  box-shadow: var(--shadow-soft);
  animation: slideInUp 0.8s ease-out;
}

.voucher-card:nth-child(2) {
  animation-delay: 0.2s;
}

.voucher-card:nth-child(3) {
  animation-delay: 0.4s;
}

.voucher-card:nth-child(4) {
  animation-delay: 0.6s;
}

/* Hover Effects */
.voucher-card:hover {
  transform: translateY(-20px) scale(1.03);
  box-shadow: var(--shadow-heavy);
  border-color: var(--accent-gold);
}

.voucher-card:hover::before {
  opacity: 1;
}

.voucher-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: var(--transition-smooth);
  z-index: 1;
}

/* Voucher Image */
.voucher-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.voucher-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.voucher-card:hover .voucher-image img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Voucher Overlay */
.voucher-overlay {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(212, 175, 55, 0.95);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow-gold);
  z-index: 3;
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.voucher-card:hover .voucher-overlay {
  transform: scale(1.1);
  background: rgba(244, 228, 188, 0.95);
  color: var(--primary-dark);
}

/* Voucher Selection Animation */
.voucher-card.selecting {
  animation: pulseGold 0.6s ease-in-out;
}

@keyframes pulseGold {
  0% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
}

/* Click Ripple Effect */
.voucher-card::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.4);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 2;
  pointer-events: none;
}

.voucher-card.clicked::after {
  width: 300px;
  height: 300px;
}

/* Voucher Labels */
.voucher-label {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}

/* Page Introduction */
.page-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: var(--bg-glass);
  border-radius: var(--radius-large);
  border: 1px solid var(--border-primary);
  animation: fadeIn 1s ease-out;
}

.page-intro h2 {
  font-size: 2rem;
  color: var(--text-accent);
  margin-bottom: 1rem;
  font-family: "Playfair Display", serif;
}

.page-intro p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Floating Elements */
.floating-element {
  position: absolute;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .vouchers-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
  }

  .voucher-card {
    aspect-ratio: 1.4;
  }

  .voucher-overlay {
    top: 15px;
    right: 15px;
    padding: 10px 20px;
    font-size: 0.8rem;
  }

  .page-intro {
    margin: 0 auto 2rem;
    padding: 1.5rem;
  }

  .page-intro h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .vouchers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .voucher-card {
    aspect-ratio: 1.3;
  }

  .voucher-overlay {
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 0.75rem;
  }
}

/* Loading States */
.voucher-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.voucher-card.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-top-color: var(--accent-gold);
  border-radius: 50%;
  z-index: 4;
  animation: spin 1s linear infinite;
}

/* Success Animation */
@keyframes successPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

.voucher-card.selected {
  animation: successPulse 0.8s ease-out;
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}
