/* ==========================================================================
   Pyrelex - MINIMALIST COMPONENT SYSTEM
   Strict 8px grid, refined micro-interactions, zero AI clichés
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 180ms cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  user-select: none;
  white-space: nowrap;
}

/* Primary Solid Cyan Button */
.btn-primary, .btn-cyan {
  background: var(--accent);
  color: #08090c;
  font-weight: 600;
  border-color: var(--accent);
}

.btn-primary:hover, .btn-cyan:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 16px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-primary:active, .btn-cyan:active {
  transform: translateY(0);
}

/* Hero Large Button */
.btn-lg {
  height: 48px;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 0.9375rem;
}

/* Secondary / Ghost Button */
.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

/* Compatibility Buttons for Internal Forms */
.btn-pink, .btn-danger {
  background: var(--danger);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--danger);
}
.btn-pink:hover, .btn-danger:hover {
  background: #ff4d7a;
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Clean Cards */
.card-clean, .glass-card, .card-glass {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 24px;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.card-clean:hover, .glass-card:hover, .card-glass:hover {
  border-color: var(--border-strong);
  background: var(--bg-hover);
  transform: translateY(-2px);
}

/* Clean Live Badge */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: livePulse 2s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Input Fields */
.form-input, .input-clean {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.form-input:focus, .input-clean:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 106, 26, 0.12);
}

.form-input::placeholder, .input-clean::placeholder {
  color: var(--text-tertiary);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 9, 12, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99990;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active,
.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: color 150ms ease;
}

.modal-close-icon:hover {
  color: var(--text-primary);
}

/* Minimal Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: 8px;
  background: #11141c;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  animation: toastFade 200ms ease-out;
}

.toast.success {
  border-color: rgba(16, 185, 129, 0.35);
}

.toast.error {
  border-color: rgba(255, 51, 102, 0.35);
}

@keyframes toastFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
