/**
 * Loyalty Program Bolt - Frontend Styles
 */

/* Points Display Badge */
.loyalty-points-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

.loyalty-points-badge .points-icon {
  font-size: 1rem;
}

.loyalty-points-badge .points-value {
  font-weight: 700;
}

/* Account Summary Card */
.loyalty-summary {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}

.loyalty-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e5e5;
}

.loyalty-summary-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.loyalty-summary-header .tier-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.loyalty-balance {
  text-align: center;
  margin-bottom: 20px;
}

.loyalty-balance .balance-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 4px;
}

.loyalty-balance .balance-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: #f59e0b;
  line-height: 1.2;
}

.loyalty-balance .balance-worth {
  font-size: 0.9rem;
  color: #6b7280;
}

.loyalty-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.loyalty-stat {
  background: #f9fafb;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.loyalty-stat .stat-label {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.loyalty-stat .stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.loyalty-progress {
  margin-top: 16px;
}

.loyalty-progress .progress-label {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.loyalty-progress .progress-bar {
  height: 8px;
  background: #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.loyalty-progress .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  border-radius: 4px;
  transition: width 0.3s;
}

/* Checkout Redemption Widget */
.loyalty-checkout-redeem {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.loyalty-checkout-redeem h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loyalty-checkout-redeem .available-points {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.loyalty-checkout-redeem .available-points strong {
  color: #f59e0b;
  font-size: 1.1rem;
}

.loyalty-redeem-form {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.loyalty-redeem-form .form-group {
  flex: 1;
}

.loyalty-redeem-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}

.loyalty-redeem-form input {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

.loyalty-redeem-form input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}

.loyalty-redeem-form button {
  padding: 12px 20px;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.loyalty-redeem-form button:hover {
  background: #d97706;
}

.loyalty-redeem-form button:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.loyalty-redeem-info {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 12px;
}

.loyalty-applied {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #d1fae5;
  border-radius: 6px;
  margin-top: 12px;
}

.loyalty-applied .applied-text {
  color: #065f46;
  font-weight: 500;
}

.loyalty-applied .remove-btn {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  font-size: 0.85rem;
}

/* Earn Message */
.loyalty-earn-message {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #fffbeb;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #92400e;
}

.loyalty-earn-message .earn-icon {
  font-size: 1.25rem;
}

.loyalty-earn-message strong {
  color: #f59e0b;
}

/* Guest Signup Prompt */
.loyalty-signup-prompt {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin: 16px 0;
}

.loyalty-signup-prompt h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.loyalty-signup-prompt p {
  color: #6b7280;
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.loyalty-signup-prompt .signup-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #f59e0b;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
}

.loyalty-signup-prompt .signup-btn:hover {
  background: #d97706;
}

/* Mini Points Display (header) */
.loyalty-mini {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #f59e0b;
}

.loyalty-mini .mini-icon {
  font-size: 1rem;
}

.loyalty-mini .mini-value {
  font-weight: 700;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .loyalty-summary {
    padding: 16px;
  }
  
  .loyalty-balance .balance-value {
    font-size: 2rem;
  }
  
  .loyalty-stats {
    grid-template-columns: 1fr;
  }
  
  .loyalty-redeem-form {
    flex-direction: column;
  }
  
  .loyalty-redeem-form button {
    width: 100%;
  }
}
