/* Loyalty Page Styles */

.loyalty-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  color: var(--text-primary);
}

.loyalty-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-back {
  position: absolute;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.header-back:hover {
  color: var(--accent-primary);
  transform: translateX(-4px);
}

.header-back svg {
  width: 20px;
  height: 20px;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loyalty-main {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Hero Section */
.loyalty-hero {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

.hero-icon {
  margin-bottom: 1.5rem;
  animation: float 3s ease-in-out infinite;
}

.star-icon-large {
  width: 80px;
  height: 80px;
  color: var(--accent-secondary);
  filter: drop-shadow(0 0 20px rgba(251, 191, 36, 0.5));
}

.hero-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #fff, var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Progress Card */
.progress-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.progress-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.stamps-counter {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-secondary);
}

.counter-separator {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.stamps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stamp-slot {
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stamp-slot.filled {
  border: 2px solid var(--accent-secondary);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  animation: stampPop 0.5s ease;
}

.stamp-slot.filled::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}

.stamp-icon {
  width: 60%;
  height: 60%;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.stamp-slot.filled .stamp-icon {
  color: var(--accent-secondary);
  filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.progress-bar-container {
  margin-top: 2rem;
}

.progress-bar {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 10px;
  transition: width 0.5s ease;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

.progress-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Rewards Section */
.rewards-section {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.how-it-works {
  display: grid;
  gap: 1rem;
}

.step-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.step-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.step-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Reward Card */
.reward-card {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  transition: all 0.3s ease;
}

.reward-card.unlocked {
  border-color: var(--accent-secondary);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(251, 191, 36, 0.05));
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.reward-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reward-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-secondary);
}

.reward-content {
  flex: 1;
}

.reward-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.reward-description {
  margin: 0 0 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.reward-requirement {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.reward-status {
  display: flex;
  align-items: center;
}

.status-badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-badge.locked {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
}

.status-badge.unlocked {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #000;
  animation: glow 2s ease-in-out infinite;
}

/* Terms Section */
.terms-section {
  margin-bottom: 2rem;
}

.terms-content {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
}

.terms-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.terms-list li {
  margin-bottom: 0.75rem;
}

/* CTA Section */
.cta-section {
  margin-bottom: 2rem;
}

.cta-card {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(251, 191, 36, 0.2));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
}

.cta-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.cta-card p {
  color: var(--text-muted);
  margin: 0 0 2rem 0;
  font-size: 1.05rem;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #000;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(251, 191, 36, 0.5);
}

.btn-cta svg {
  width: 20px;
  height: 20px;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes stampPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
  }
  50% {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.8);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .stamps-grid {
    gap: 0.75rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .progress-card {
    padding: 1.5rem;
  }

  .step-card {
    padding: 1rem;
    gap: 1rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .reward-card {
    flex-direction: column;
    text-align: center;
  }

  .reward-status {
    justify-content: center;
  }

  .cta-card {
    padding: 2rem 1.5rem;
  }

  .cta-card h3 {
    font-size: 1.5rem;
  }
}
