/* ============================================================
   ATI Retail · Brand Components
   ============================================================
   Componente UI pre-stilizate cu identitatea brandului.
   FOLOSEȘTE clasele de mai jos în loc să restilizezi de la zero.

   Importă ÎNAINTEA stilurilor specifice modulului:
       <link rel="stylesheet" href="/assets/brand/brand-tokens.css">
       <link rel="stylesheet" href="/assets/brand/brand-components.css">
       <link rel="stylesheet" href="/assets/app.css?v=...">
   ============================================================ */

/* === BRAND MARK (gradient cu „ATI" centrat) === */
.b-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-gradient);
  color: #fff;
  font-family: var(--brand-font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  border-radius: var(--brand-radius-mark);
}
.b-mark-32 { width: 32px; height: 32px; font-size: 13px; border-radius: 7px; }
.b-mark-44 { width: 44px; height: 44px; font-size: 18px; border-radius: 10px; }
.b-mark-56 { width: 56px; height: 56px; font-size: 22px; border-radius: 12px; }
.b-mark-80 { width: 80px; height: 80px; font-size: 32px; border-radius: 18px; }

/* === BUTONS === */
.b-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--brand-radius-md);
  border: none;
  font-family: var(--brand-font-body);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 120ms ease;
  white-space: nowrap;
}
.b-btn:hover { transform: translateY(-1px); }
.b-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.b-btn-primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: var(--brand-shadow-glow);
}
.b-btn-primary:hover { background: var(--brand-gradient-hover); box-shadow: var(--brand-shadow-glow-strong); }

.b-btn-secondary {
  background: var(--brand-paper);
  color: var(--brand-ink);
  border: 1px solid var(--brand-line-strong);
}
.b-btn-secondary:hover { background: var(--brand-cream); }

.b-btn-ghost {
  background: transparent;
  color: var(--brand-violet-text);
}
.b-btn-ghost:hover { background: var(--brand-violet-tint); }

.b-btn-danger {
  background: var(--brand-error);
  color: #fff;
}
.b-btn-danger:hover { background: #b91c1c; }

.b-btn-block { width: 100%; }
.b-btn-sm { padding: 8px 14px; font-size: 12.5px; }
.b-btn-lg { padding: 14px 24px; font-size: 16px; }

/* === FORM INPUTS === */
.b-input,
.b-textarea,
.b-select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--brand-line-strong);
  border-radius: var(--brand-radius-md);
  background: var(--brand-paper);
  font-family: var(--brand-font-body);
  font-size: 14px;
  color: var(--brand-ink);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.b-input:focus,
.b-textarea:focus,
.b-select:focus {
  outline: none;
  border-color: var(--brand-violet);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}
.b-textarea { resize: vertical; min-height: 80px; }
.b-label {
  display: block;
  font-family: var(--brand-font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-muted-deep);
  margin-bottom: 5px;
}

/* === CARDS === */
.b-card {
  background: var(--brand-paper);
  border: 1px solid var(--brand-line);
  border-radius: var(--brand-radius-lg);
  padding: var(--brand-space-6);
}
.b-card-dark {
  background: var(--brand-ink);
  color: #fff;
  border: 1px solid var(--brand-ink-2);
}
.b-card-elevated { box-shadow: var(--brand-shadow-md); border: none; }

/* === MODAL DIALOG === */
.b-modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(9, 9, 11, 0.6);
  backdrop-filter: blur(4px);
  z-index: var(--brand-z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.b-modal {
  background: var(--brand-paper);
  border-radius: var(--brand-radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--brand-shadow-lg);
}
.b-modal-icon {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.b-modal-icon-success { background: var(--brand-success-bg); color: var(--brand-success); }
.b-modal-icon-warn    { background: var(--brand-warning-bg); color: var(--brand-warning); }
.b-modal-icon-error   { background: var(--brand-error-bg); color: var(--brand-error); }
.b-modal-icon-info    { background: var(--brand-info-bg); color: var(--brand-info); }
.b-modal-icon-brand   { background: var(--brand-gradient); color: #fff; }
.b-modal h3 {
  font-family: var(--brand-font-display);
  font-weight: 700; font-size: 18px;
  margin: 0 0 8px;
  text-align: center;
}
.b-modal p {
  font-size: 14px; line-height: 1.55;
  color: var(--brand-muted-deep);
  margin: 0 0 18px;
  text-align: center;
}
.b-modal-actions {
  display: flex; gap: 10px;
}
.b-modal-actions .b-btn { flex: 1; }

/* === TOAST / NOTIFICATION === */
.b-toast {
  background: var(--brand-ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--brand-radius-md);
  display: flex; align-items: center; gap: 12px;
  border-left: 3px solid var(--brand-violet);
  box-shadow: var(--brand-shadow-md);
}
.b-toast-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--brand-gradient);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #fff;
}
.b-toast-text { flex: 1; font-size: 13px; line-height: 1.4; }
.b-toast-text strong { display: block; font-weight: 700; }
.b-toast-text span { color: var(--brand-muted-soft); font-size: 12px; }
.b-toast-success { border-left-color: var(--brand-success); }
.b-toast-warn    { border-left-color: var(--brand-warning); }
.b-toast-error   { border-left-color: var(--brand-error); }

/* === BADGES / CHIPS === */
.b-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: var(--brand-radius-pill);
  font-family: var(--brand-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.b-badge-brand   { background: var(--brand-violet-tint); color: var(--brand-violet-text); }
.b-badge-success { background: var(--brand-success-bg); color: var(--brand-success); }
.b-badge-warn    { background: var(--brand-warning-bg); color: var(--brand-warning); }
.b-badge-error   { background: var(--brand-error-bg); color: var(--brand-error); }
.b-badge-gradient {
  background: var(--brand-gradient);
  color: #fff;
}

/* === RIBBON === */
.b-ribbon {
  display: inline-block;
  background: var(--brand-gradient);
  color: #fff;
  padding: 5px 14px;
  font-family: var(--brand-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: var(--brand-radius-pill);
}

/* === LINKS === */
.b-link {
  color: var(--brand-violet-text);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}
.b-link:hover { color: var(--brand-violet-deep); }

/* === DIVIDER === */
.b-divider {
  height: 1px;
  background: var(--brand-line);
  border: none;
  margin: var(--brand-space-4) 0;
}
.b-divider-brand {
  height: 2px;
  background: var(--brand-gradient);
  border: none;
}

/* === TAGLINE PILL (folosit pentru orice eyebrow / accent) === */
.b-tagline {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.06);
  border-radius: var(--brand-radius-pill);
  font-family: var(--brand-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-violet-text);
  font-weight: 700;
}
.b-tagline-light {
  border-color: rgba(167, 139, 250, 0.5);
  background: rgba(167, 139, 250, 0.08);
  color: var(--brand-violet-soft);
}

/* === ANIMATIONS === */
@keyframes b-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes b-spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.b-spinner {
  width: 24px; height: 24px;
  border: 2px solid var(--brand-line);
  border-top-color: var(--brand-violet);
  border-radius: 50%;
  animation: b-spin 0.8s linear infinite;
}
