/* components.css */

/* Buttons */
.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary), #FFB75E);
  color: var(--color-white);
  padding: 16px 32px;
  border-radius: 50px;
  border: none;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(242, 140, 56, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(242, 140, 56, 0.5);
  background: linear-gradient(135deg, #FFB75E, var(--color-primary));
}

.btn-primary:active {
  transform: scale(0.95);
  box-shadow: 0 2px 10px rgba(242, 140, 56, 0.3);
}

@keyframes selectPop {
  0% { transform: scale(0.95); box-shadow: 0 0 0 rgba(46, 204, 113, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(46, 204, 113, 0.5); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3); }
}

.btn-selected {
  background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3) !important;
  animation: selectPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
}

.btn-selected::before {
  content: '✓ ';
  font-weight: 900;
  margin-right: 4px;
  animation: scaleIn 0.3s ease forwards;
}

.btn-secondary {
  width: 100%;
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
}

.btn-secondary:active {
  transform: scale(0.95);
}

.btn-full {
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
  transform: translateY(0);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card-selected {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-2px);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-price {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.badge-discount {
  background-color: var(--color-discount);
  color: var(--color-white);
}

.badge-exclusive {
  background: linear-gradient(135deg, #FFD700, #FDB931);
  color: var(--color-white);
}

/* Counter Touch */
.counter-touch {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

.counter-touch button {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
}

.counter-touch button:hover {
  background-color: var(--color-primary-light);
}

.counter-touch button:active {
  transform: scale(0.95);
}

.counter-touch .counter-display {
  width: 48px;
  text-align: center;
  font-weight: 700;
  font-size: 1.25rem;
}

/* Banners */
.banner-warning {
  background-color: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-weight: 600;
}

/* Service Card (per group-flow e addon) */
.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 140, 56, 0.1);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(242, 140, 56, 0.15);
  border-color: rgba(242, 140, 56, 0.3);
}

.service-card.selected {
  border: 2px solid #2ecc71;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(46, 204, 113, 0.15));
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.25);
  transform: translateY(-5px) scale(1.02);
  animation: selectPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.service-card.selected::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at center, rgba(46,204,113,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.service-card .checkmark {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  background: #2ecc71;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0) rotate(-45deg);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(46,204,113,0.4);
}

.service-card.selected .checkmark {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Toast */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: var(--color-text);
  color: var(--color-white);
  padding: 12px var(--space-lg);
  border-radius: var(--radius-full);
  z-index: var(--z-toast);
  opacity: 0;
  transition: all var(--transition-normal);
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-medium);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Progress Bar */
.progress-bar-container {
  position: sticky;
  top: 0;
  background-color: var(--color-white);
  padding: 8px var(--space-md);
  z-index: var(--z-progress);
  box-shadow: var(--shadow-subtle);
}

.progress-bar-track {
  height: 4px;
  background-color: var(--color-primary-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--color-primary);
  width: 0%;
  transition: width var(--transition-slow);
}

.progress-steps {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.progress-steps .active {
  color: var(--color-primary);
  font-weight: 700;
}

/* Price */
.price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.price-old {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes scaleIn {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes waveAnimation {
  0% { transform: translateX(0) translateZ(0) scaleY(1); }
  50% { transform: translateX(-25%) translateZ(0) scaleY(0.55); }
  100% { transform: translateX(-50%) translateZ(0) scaleY(1); }
}

.anim-fade-up { animation: fadeInUp var(--transition-slow) forwards; }
.anim-fade-down { animation: fadeInDown var(--transition-slow) forwards; }
.anim-pulse { animation: pulse 2s infinite; }
.anim-slide-in-right { animation: slideInRight var(--transition-slow) forwards; }
.anim-scale-in { animation: scaleIn var(--transition-normal) forwards; }
/* Shimmer Button Effect */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-20deg);
  animation: shimmerAnim 4s infinite;
}

@keyframes shimmerAnim {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Card Entrance Bounce */
@keyframes bounceInUp {
  0% { opacity: 0; transform: translateY(40px) scale(0.9); }
  70% { transform: translateY(-10px) scale(1.02); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.flow-section.visible, .journey__step.visible {
  animation: bounceInUp 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Heartbeat Cart */
@keyframes heartbeatCart {
  0%, 100% { transform: scale(1); }
  5% { transform: scale(1.05); }
  10% { transform: scale(1); }
  15% { transform: scale(1.05); }
  20% { transform: scale(1); }
}

.cart-fab {
  animation: heartbeatCart 5s infinite;
}

/* === INCREDIBLE UPGRADE: PREMIUM INTERACTIVE CLASSES === */

.option-card {
  background: linear-gradient(145deg, #ffffff, #fafafa);
  border: 1px solid rgba(242, 140, 56, 0.1);
  border-radius: 20px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.3s ease;
  overflow: hidden;
  position: relative;
}

.option-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(242, 140, 56, 0.15);
  border-color: rgba(242, 140, 56, 0.5);
}

.option-card.selected {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(46, 204, 113, 0.25);
  border: 2px solid #2ecc71;
  background: linear-gradient(to bottom right, rgba(46, 204, 113, 0.02), rgba(46, 204, 113, 0.08));
  animation: selectPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Premium Checkmark for option-card */
.option-card.selected::after {
  content: '✓';
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: #2ecc71;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 900;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  z-index: 10;
}

.premium-text-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.premium-text-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
  transition: transform 0.3s ease;
}

.option-card:hover .premium-text-list li {
  transform: translateX(4px);
}

.premium-text-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 900;
  font-size: 1.1rem;
  background: var(--color-primary-light);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(242, 140, 56, 0.3);
}

.btn-gallery-glow {
  background: linear-gradient(135deg, var(--color-primary-light), #fff);
  color: var(--color-primary);
  border: 1px solid rgba(242, 140, 56, 0.3);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(242, 140, 56, 0.15);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  margin-top: 12px;
}

.btn-gallery-glow:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(242, 140, 56, 0.3);
  background: var(--color-primary);
  color: white;
}

.emotional-desc {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.6;
  margin-top: 8px;
  font-style: italic;
  border-left: 3px solid var(--color-primary);
  padding-left: 12px;
  background: linear-gradient(to right, rgba(242, 140, 56, 0.05), transparent);
}

/* === INCREDIBLE MOBILE UPGRADE === */
@media (max-width: 768px) {
  .flow-section {
    padding: 16px 8px;
  }
  
  .option-card {
    padding: 16px;
  }
  
  .option-card:active {
    transform: scale(0.97) !important;
    box-shadow: 0 5px 15px rgba(242, 140, 56, 0.1) !important;
  }

  .btn-gallery-glow:active, .btn-primary:active {
    transform: scale(0.95) !important;
    box-shadow: 0 5px 15px rgba(242, 140, 56, 0.3) !important;
  }

  h2.flow-section__title {
    font-size: 1.5rem !important;
  }
  
  .cart-fab {
    top: auto !important;
    bottom: 24px !important;
    right: 16px !important;
    z-index: 9999;
  }

  .btn-primary.btn-full {
    position: sticky;
    bottom: 16px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(242, 140, 56, 0.4);
    margin-bottom: 24px;
  }
}
