/* ------------------------------------------------------------
   COMPONENTS.CSS — UI Components for xxi.careers
   Clean rebuild 2025-12-11
------------------------------------------------------------- */

/* ------------------------------------------------------------
   1. CARDS
------------------------------------------------------------- */

.xxi-card {
  background: var(--xxi-bg-surface);
  border-radius: var(--xxi-radius-lg);
  box-shadow: var(--xxi-shadow-soft);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xxi-card--compact {
  padding: 1rem;
}

.xxi-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xxi-card__label {
  font-size: 0.875rem;
  color: var(--xxi-text-soft);
}

/* ------------------------------------------------------------
   2. BUTTONS
------------------------------------------------------------- */

.xxi-btn {
  font-family: inherit;
  border: none;
  border-radius: var(--xxi-radius-pill);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.xxi-btn--primary {
  background: var(--xxi-copper);
  color: var(--xxi-bg-base);
}

.xxi-btn--primary:hover {
  background: var(--xxi-copper-dark);
}

.xxi-btn--secondary {
  background: transparent;
  border: 1px solid var(--xxi-copper);
  color: var(--xxi-copper);
}

.xxi-btn--secondary:hover {
  background: var(--xxi-copper);
  color: var(--xxi-bg-base);
}

.xxi-btn--ghost {
  background: transparent;
  color: var(--xxi-text-default);
}

.xxi-btn--ghost:hover {
  background: var(--xxi-bg-hover);
}

/* Text link-style button */
.xxi-link-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--xxi-copper);
  font-size: 0.875rem;
}

.xxi-link-button:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------
   3. LISTS
------------------------------------------------------------- */

.xxi-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xxi-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--xxi-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.xxi-list-item:last-child {
  border-bottom: none;
}

.xxi-list-item.is-empty {
  padding: 1rem 0;
  color: var(--xxi-text-soft);
}

/* ------------------------------------------------------------
   4. STATUS PILLS
------------------------------------------------------------- */

.xxi-pill {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--xxi-radius-pill);
  font-size: 0.75rem;
  background: var(--xxi-bg-soft);
  color: var(--xxi-text-soft);
}

.xxi-pill--soft {
  background: var(--xxi-bg-subtle);
  color: var(--xxi-text-default);
}

.status-pill--uploaded {
  background-color: #e0f7e9;
  color: #007e33;
}

.status-pill--error {
  background-color: #fdecea;
  color: #b00020;
}

/* ------------------------------------------------------------
   5. FORMS & FIELDS
------------------------------------------------------------- */

.xxi-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.xxi-field-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--xxi-text-default);
}

.xxi-field-input {
  padding: 0.55rem;
  border: 1px solid var(--xxi-border-subtle);
  border-radius: var(--xxi-radius-sm);
  font-size: 1rem;
  background: var(--xxi-bg-input);
  color: var(--xxi-text-default);
}

.xxi-field-input:focus {
  outline: 2px solid var(--xxi-copper);
  border-color: var(--xxi-copper);
}

/* ------------------------------------------------------------
   6. SUMMARY BLOCKS
------------------------------------------------------------- */

.xxi-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.xxi-summary-card-label {
  font-size: 0.875rem;
  color: var(--xxi-text-soft);
}

.xxi-summary-card-value {
  font-size: 1.125rem;
  font-weight: 600;
}

.xxi-summary-card-note {
  font-size: 0.75rem;
  color: var(--xxi-text-soft);
}

/* ------------------------------------------------------------
   7. USER / ENV LABELS
------------------------------------------------------------- */

.env-label,
.user-label {
  font-size: 0.75rem;
  background: var(--xxi-bg-subtle);
  padding: 0.25rem 0.5rem;
  border-radius: var(--xxi-radius-sm);
}

/* ------------------------------------------------------------
   8. DASHBOARD-SPECIFIC BLOCKS
------------------------------------------------------------- */

.xxi-dashboard-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.xxi-dashboard-block--compact {
  gap: 0.75rem;
}

/* Loop metrics */
.xxi-loop-status__value {
  font-size: 1.5rem;
  font-weight: 600;
}

.xxi-loop-status__meter {
  width: 100%;
  height: 6px;
  background: var(--xxi-bg-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.xxi-loop-status__meter-fill {
  height: 100%;
  background: var(--xxi-copper);
  transition: width 0.3s ease;
}

/* ------------------------------------------------------------
   9. MISC UTILITY COMPONENTS
------------------------------------------------------------- */

.xxi-helper-text {
  font-size: 0.875rem;
  color: var(--xxi-text-soft);
}

.xxi-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--xxi-text-soft);
}

.xxi-section__header {
  margin-bottom: 1rem;
}

.xxi-heading-1,
.xxi-heading-2,
.xxi-heading-3,
.xxi-heading-4 {
  margin: 0;
}

/* ------------------------------------------------------------
   10. HEADER ICONS — LOOP + ACCOUNT + LOGIN
------------------------------------------------------------- */

.xxi-header-icon {
  width: 28px;
  height: 28px;
  background-color: var(--xxi-bg-base); /* off-white */
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  cursor: pointer;
  transition: opacity 0.15s ease-in-out;
}

.xxi-header-icon:hover {
  opacity: 0.75;
}

/* Make it easy for JS to toggle visibility */
.xxi-auth-only {
  display: none;
}

.xxi-guest-only {
  display: none;
}


/* ------------------------------------------------------------
   END OF FILE — CLEAN, VALID, NO STRAY BRACES
------------------------------------------------------------- */
