/*
 * BidCrew Widgets — Front-end styles
 * Version: 1.0.0
 *
 * These styles are deliberately minimal. They work on any background
 * colour and inherit the page font automatically.
 * Use the 'class' attribute on each shortcode to override anything.
 */

/* ── Base ─────────────────────────────────────────────────────── */

.bcw-greeting,
.bcw-name,
.bcw-stat,
.bcw-badge,
.bcw-auth-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  line-height: 1;
  white-space: nowrap;
}

/* ── Greeting ────────────────────────────────────────────────── */

.bcw-greeting {
  font-weight: 600;
  font-size: inherit;
}

.bcw-greeting .bcw-icon {
  font-style: normal;
}

.bcw-greeting .bcw-sep {
  opacity: 0.55;
}

/* ── Role badge ──────────────────────────────────────────────── */

.bcw-badge {
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.bcw-badge--captain {
  background: rgba(251, 156, 4, 0.15);
  color: #fb9c04;
  border: 1px solid rgba(251, 156, 4, 0.3);
}

.bcw-badge--crew {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

/* ── Stat widgets (credits / bids / jobs / rating) ───────────── */

.bcw-stat {
  gap: 5px;
  font-size: inherit;
}

.bcw-stat .bcw-value {
  font-weight: 700;
  color: #fb9c04;
}

.bcw-stat .bcw-label {
  font-weight: 400;
  opacity: 0.7;
  font-size: 0.88em;
}

.bcw-stat .bcw-icon {
  font-size: 1em;
}

/* Credit balance — slight pill treatment so it pops in a header */
.bcw-credits {
  background: rgba(251, 156, 4, 0.08);
  border: 1px solid rgba(251, 156, 4, 0.2);
  border-radius: 100px;
  padding: 4px 12px;
}

.bcw-credits .bcw-value {
  color: #fb9c04;
}

/* ── Login / logout link ─────────────────────────────────────── */

.bcw-auth-link {
  font-weight: 600;
  color: #fb9c04;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.bcw-auth-link:hover {
  opacity: 0.75;
}

/* ── Avatar ──────────────────────────────────────────────────── */

.bcw-avatar {
  display: inline-block;
  border-radius: 50%;
  overflow: hidden;
  vertical-align: middle;
  flex-shrink: 0;
}

.bcw-avatar--initials {
  background: #fb9c04;
  color: #0a1628;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Star ratings (re-uses bc-stars from Core if available) ─── */

.bcw-rating .bc-stars {
  font-size: 0.85em;
  vertical-align: middle;
}
