/* ============================================================
   COMPONENTS.CSS — Reusable UI Components
   ============================================================ */


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.625rem var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  user-select: none;
}

.btn-lg {
  padding: 0.875rem var(--space-8);
  font-size: var(--font-size-base);
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 0.4rem var(--space-4);
  font-size: var(--font-size-xs);
  border-radius: var(--radius-md);
}

.btn-full {
  width: 100%;
}

.btn-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

/* Primary */
.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
  color: #fff;
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

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

/* Secondary */
.btn-secondary {
  background: var(--color-card);
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
}

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

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
  border-color: var(--color-border-light);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
  transform: translateY(-1px);
}


/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.badge-primary {
  background: rgba(59, 130, 246, 0.12);
  color: var(--color-primary-light);
  border-color: rgba(59, 130, 246, 0.25);
}

.badge-secondary {
  background: rgba(34, 211, 238, 0.08);
  color: var(--color-secondary);
  border-color: rgba(34, 211, 238, 0.2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  animation: badge-pulse 2.5s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1;   transform: scale(1);   }
  50%       { opacity: 0.4; transform: scale(0.75); }
}


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.65s var(--ease-out),
    transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for sibling reveals */
.reveal:nth-child(1) { transition-delay:  0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }
.reveal:nth-child(7) { transition-delay: 480ms; }
.reveal:nth-child(8) { transition-delay: 560ms; }
.reveal:nth-child(9) { transition-delay: 640ms; }


/* ============================================================
   TAG CHIP
   ============================================================ */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  font-size: var(--font-size-xs);
  font-weight: 500;
  color: var(--color-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
}
