/* ========================================
   FASTAP - Component Library
   Buttons, Cards, Forms, Badges, etc.
   ======================================== */

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.875rem 2rem;
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  font-family: var(--font-primary);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Button Sizes */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1.125rem 2.5rem;
  font-size: var(--text-lg);
}

/* Primary Button - Gradient */
.btn-primary {
  background: var(--gradient-purple);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: transparent;
  color: var(--purple-500);
  border-color: var(--purple-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Secondary Button */
.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-color);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--card-hover-bg);
  border-color: var(--border-medium);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--btn-outline-color);
  border: 2px solid var(--btn-outline-border);
}

.btn-outline:hover {
  background: var(--gradient-purple);
  color: var(--text-white);
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* Gradient Buttons - Other Colors */
.btn-blue {
  background: var(--gradient-blue);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  border: 2px solid transparent;
}

.btn-blue:hover {
  background: transparent;
  color: var(--blue-500);
  border-color: var(--blue-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.btn-pink {
  background: var(--gradient-pink);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
  border: 2px solid transparent;
}

.btn-pink:hover {
  background: transparent;
  color: var(--pink-500);
  border-color: var(--pink-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.3);
}

.btn-orange {
  background: var(--gradient-orange);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
  border: 2px solid transparent;
}

.btn-orange:hover {
  background: transparent;
  color: var(--orange-500);
  border-color: var(--orange-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

/* Button with Icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
}

.btn-icon i,
.btn-icon svg {
  font-size: 1.25em;
}

/* ============= CARDS ============= */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-400);
}

.card-gradient {
  position: relative;
  background: var(--card-bg);
  border: 2px solid transparent;
  background-clip: padding-box;
}

.card-gradient::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-multi);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card-gradient:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  font-size: var(--text-2xl);
}

.card-icon-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  color: var(--purple-500);
}

.card-icon-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
  color: var(--blue-500);
}

.card-icon-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(244, 114, 182, 0.1) 100%);
  color: var(--pink-500);
}

.card-icon-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
  color: var(--orange-500);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.card-text {
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-base);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.product-card-image {
  width: 100%;
  height: 280px;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-card-content {
  padding: var(--space-lg);
}

.product-card-title {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.product-card-price {
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--purple-500);
  margin-bottom: var(--space-md);
}

/* ============= BADGES ============= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
  color: var(--purple-500);
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.badge-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(96, 165, 250, 0.15) 100%);
  color: var(--blue-500);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-pink {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(244, 114, 182, 0.15) 100%);
  color: var(--pink-500);
  border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-orange {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.15) 0%, rgba(251, 146, 60, 0.15) 100%);
  color: var(--orange-500);
  border: 1px solid rgba(249, 115, 22, 0.2);
}

.badge-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
  color: var(--green-500);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ============= FORMS ============= */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.form-control {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: var(--text-base);
  font-family: var(--font-primary);
  color: var(--text-primary);
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  outline: none;
}

.form-control:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
  color: var(--text-muted);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ============= ALERTS ============= */
.alert {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  margin-bottom: var(--space-md);
}

.alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--green-600);
}

.alert-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(96, 165, 250, 0.1) 100%);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--blue-600);
}

.alert-warning {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--orange-600);
}

/* ============= ICON BOX ============= */
.icon-box {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

/* ============= STATS ============= */
.stat-card {
  text-align: center;
  padding: var(--space-lg);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: var(--font-extrabold);
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--text-base);
  color: var(--text-secondary);
  font-weight: var(--font-medium);
}

/* ============= TESTIMONIAL CARD ============= */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: var(--space-md);
  color: var(--orange-500);
}

.testimonial-text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 2px solid var(--border-light);
}

.testimonial-name {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.testimonial-role {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============= PROGRESS BAR ============= */
.progress {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.progress-bar {
  height: 100%;
  background: var(--gradient-purple);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

/* ============= STEP INDICATOR ============= */
.step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.step-number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-purple);
  color: var(--text-white);
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.step-content h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.step-content p {
  color: var(--text-secondary);
}
