/* Reusable UI Components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.5rem;
  min-height: 48px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  text-align: center;
  user-select: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: var(--text-white);
  box-shadow: var(--shadow-purple);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -4px rgba(109, 40, 217, 0.35);
  color: var(--text-white);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--purple-primary);
  border: 1.5px solid rgba(109, 40, 217, 0.3);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--purple-light);
  border-color: var(--purple-primary);
  transform: translateY(-2px);
}

.btn-dark {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.btn-dark:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--grad-success);
  color: var(--text-white);
  box-shadow: 0 10px 20px -3px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 25px -4px rgba(22, 163, 74, 0.35);
}

.btn-sm {
  min-height: 38px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card-dark {
  background: var(--bg-dark-card);
  border-color: var(--border-dark);
  color: var(--text-white);
}

/* Badges & Tags */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-demo {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
}

.badge-success {
  background: var(--status-success-light);
  color: var(--status-success);
}

.badge-purple {
  background: var(--purple-light);
  color: var(--purple-primary);
}

.badge-blue {
  background: var(--blue-light);
  color: var(--blue-tech);
}

/* Tabs Navigation */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  background: var(--bg-surface);
  padding: 0.375rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  margin-bottom: 2rem;
}

.tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: center;
}

.tab-btn.active {
  background: var(--bg-card);
  color: var(--purple-primary);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Header & Progress */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(248, 250, 252, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  z-index: 1000;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-link img {
  height: 38px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.header-nav a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav a:hover, .header-nav a.active {
  color: var(--purple-primary);
}

.progress-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(226, 232, 240, 0.6);
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad-primary);
  transition: width 0.1s linear;
}

/* Floating Presentation Controls */
.floating-controls {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-xl);
  z-index: 990;
  color: var(--text-white);
}

.floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.floating-btn:hover {
  background: var(--purple-primary);
  transform: scale(1.08);
}

.floating-step-badge {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0 0.5rem;
  letter-spacing: 0.05em;
  color: var(--blue-sky);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
  position: relative;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: var(--purple-light);
  color: var(--purple-primary);
}
