/* ==========================================================================
   GOLIVO — COMPONENTS
   Buttons, tags, cards, tables, form fields.
   Requires golivo-tokens.css loaded first.
   ========================================================================== */

/* ---- Buttons — base reset ---- */
.golivo-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--golivo-font-body);
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: var(--golivo-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.golivo-btn:focus-visible{
  outline: 2px solid var(--golivo-terracotta);
  outline-offset: 2px;
}

/* Primary — max ONE per screen */
.golivo-btn--primary{
  background: var(--golivo-terracotta-deep);
  color: #FFF7EE;
  box-shadow: var(--golivo-shadow-cta);
}
.golivo-btn--primary:hover{ background: var(--golivo-terracotta-deep-hover); }

/* Outline-Accent — important but not the single CTA of the screen */
.golivo-btn--outline-accent{
  background: var(--golivo-card);
  color: var(--golivo-terracotta-deep);
  border-color: var(--golivo-terracotta-deep);
}
.golivo-btn--outline-accent:hover{ background: #F5E4D6; }

/* Secondary — neutral actions */
.golivo-btn--secondary{
  background: var(--golivo-card);
  color: var(--golivo-text-primary);
  border-color: var(--golivo-border-strong);
  font-weight: 500;
}
.golivo-btn--secondary:hover{ background: var(--golivo-linen); }

/* Destructive outline — disconnect-type actions */
.golivo-btn--destructive-outline{
  background: var(--golivo-card);
  color: var(--golivo-destructive);
  border-color: var(--golivo-destructive);
}
.golivo-btn--destructive-outline:hover{ background: var(--golivo-destructive-bg); }

/* Destructive filled — irreversible + confirmed only */
.golivo-btn--destructive{
  background: var(--golivo-destructive);
  color: var(--golivo-text-on-brand);
}
.golivo-btn--destructive:hover{ background: var(--golivo-destructive-hover); }

/* Disabled */
.golivo-btn:disabled,
.golivo-btn[aria-disabled="true"]{
  background: var(--golivo-border);
  color: var(--golivo-text-muted);
  border-color: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

/* Ghost / text button */
.golivo-btn--ghost{
  background: transparent;
  color: var(--golivo-text-secondary);
  border-color: transparent;
  padding: 10px 14px;
}
.golivo-btn--ghost:hover{ background: var(--golivo-linen); }

/* Sync icon variant — icon only takes the accent color, never the button fill */
.golivo-btn__icon--sync{ color: var(--golivo-olive-deep); }


/* ---- Status tags ---- */
.golivo-tag{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--golivo-font-body);
  font-weight: 500;
  font-size: 11px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 20px;
}
.golivo-tag--success{ background: var(--golivo-success-bg); color: var(--golivo-success-text); }
.golivo-tag--pending{ background: var(--golivo-pending-bg); color: var(--golivo-pending-text); }
.golivo-tag--warning{ background: var(--golivo-warning-bg); color: var(--golivo-warning-text); }
.golivo-tag--error{   background: var(--golivo-error-bg);   color: var(--golivo-error-text); }


/* ---- Cards ---- */
.golivo-card{
  background: var(--golivo-card);
  border: 0.5px solid var(--golivo-border);
  border-radius: var(--golivo-radius-lg);
  padding: 20px 22px;
}
.golivo-card:hover{ border-color: var(--golivo-border-strong); }

.golivo-card--feature{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.golivo-card--feature .golivo-card__icon{
  width: 40px;
  height: 40px;
  border-radius: var(--golivo-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--golivo-linen);
  color: var(--golivo-olive-deep);
}
.golivo-card--feature .golivo-card__icon svg{ width: 20px; height: 20px; }


/* ---- Tables (used for /help, spec-style content — not app UI) ---- */
.golivo-table{ width: 100%; border-collapse: collapse; }
.golivo-table th{
  font-family: var(--golivo-font-body);
  font-weight: 500;
  font-size: 12px;
  color: var(--golivo-text-secondary);
  background: var(--golivo-linen);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--golivo-border-strong);
}
.golivo-table td{
  font-family: var(--golivo-font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--golivo-text-primary);
  padding: 12px 14px;
  border-bottom: 0.5px solid var(--golivo-border);
}
.golivo-table tr:hover td{ background: #F9F5EC; }


/* ---- Form fields ---- */
.golivo-field{
  width: 100%;
  height: 40px;
  padding: 0 14px;
  background: var(--golivo-card);
  border: 1px solid var(--golivo-border-strong);
  border-radius: var(--golivo-radius-md);
  font-family: var(--golivo-font-body);
  font-size: 14px;
  color: var(--golivo-text-primary);
  transition: border-color .15s ease;
}
.golivo-field::placeholder{ color: var(--golivo-text-muted); }
.golivo-field:focus{
  outline: none;
  border-color: var(--golivo-terracotta);
  box-shadow: none;
}
.golivo-field--error{ border-color: var(--golivo-destructive); }
.golivo-field-error-text{
  font-family: var(--golivo-font-body);
  font-size: 12px;
  color: var(--golivo-destructive);
  margin-top: 6px;
}

/* ---- Ledger-line decorative motif (Hero / Trust Strip background texture) ---- */
.golivo-ledger-lines{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    var(--golivo-border) 0px,
    var(--golivo-border) 1px,
    transparent 1px,
    transparent 64px
  );
  opacity: 0.5;
  mask-image: linear-gradient(to right, transparent, black 30%, black 70%, transparent);
}

/* ---- SKU-style micro tag (recurring graphic motif tying site to the app) ---- */
.golivo-sku-tag{
  font-family: var(--golivo-font-mono);
  font-size: 11px;
  color: var(--golivo-text-muted);
  letter-spacing: 0.02em;
}
.golivo-sku-tag::before{ content: '['; }
.golivo-sku-tag::after{ content: ']'; }
