/* =============================================================
   EVIX Studio — Component primitives
   Mirrors the Tailwind utilities referenced in brand rules.
   ============================================================= */
@import url('./colors_and_type.css');

/* -------- Glass surfaces -------- */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow-2), var(--shadow-inset-hairline);
}
.glass-gold {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-gold);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(14px) saturate(130%);
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  box-shadow: var(--shadow-2), var(--shadow-inset-hairline);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-snug);
  padding: 12px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out),
              background var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out);
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px) scale(0.99); }

/* Primary — orange gradient + shimmer on hover */
.btn-glow {
  color: #fff;
  background: var(--gradient-brand);
  box-shadow: 0 6px 24px -8px rgba(255,106,0,0.6), var(--shadow-inset-hairline);
  position: relative;
  overflow: hidden;
}
.btn-glow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform var(--dur-slow) var(--ease-out);
  pointer-events: none;
}
.btn-glow:hover::after { transform: translateX(120%); }
.btn-glow:hover { box-shadow: 0 10px 34px -8px rgba(255,106,0,0.75), var(--shadow-inset-hairline); }

/* Ghost — bordered, fills to primary on hover */
.btn-ghost {
  color: var(--foreground);
  background: transparent;
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--foreground);
}

/* Secondary — subtle surface */
.btn-secondary {
  color: var(--foreground);
  background: var(--surface);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: #202020;
  border-color: var(--border-strong);
}

/* Sizes */
.btn-sm { padding: 8px 14px; font-size: var(--text-xs); border-radius: var(--radius-md); }
.btn-lg { padding: 14px 24px; font-size: var(--text-base); border-radius: var(--radius-lg); }

/* -------- Badges / status pills -------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tracking-wide);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
}
.badge::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.badge-available { color: var(--status-available); border-color: rgba(52,211,153,0.25); background: rgba(52,211,153,0.08); }
.badge-soon      { color: var(--gold-highlight);   border-color: rgba(255,184,0,0.30); background: rgba(255,184,0,0.08); }
.badge-beta      { color: var(--primary);          border-color: rgba(255,106,0,0.30); background: rgba(255,106,0,0.08); }

/* -------- Inputs -------- */
.input {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--foreground);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  width: 100%;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.input::placeholder { color: var(--text-dim); }
.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,106,0,0.18);
}

/* -------- Cards -------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-inset-hairline);
}
.card-feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.card-feature::before {
  /* hairline top highlight */
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

/* Focus ring (global) */
:where(button, a, input, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: inherit;
}
