/* Git Board — Surface Styles */

.gb-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

/* ── Header ──────────────────────────────── */

.gb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.gb-header__left,
.gb-header__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gb-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.gb-repo-picker {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 5px 8px;
  max-width: 260px;
}

/* ── Token Setup ─────────────────────────── */

.gb-setup {
  max-width: 480px;
  margin: 60px auto;
  text-align: center;
  padding: 0 16px;
}

.gb-setup h2 {
  color: var(--text);
  font-size: 20px;
  margin: 0 0 8px;
}

.gb-setup p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 20px;
}

.gb-setup__form {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.gb-setup__input {
  flex: 1;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  padding: 8px 10px;
  outline: none;
}

.gb-setup__input:focus {
  border-color: var(--accent);
}

.gb-setup__hint {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Kanban Board ────────────────────────── */

.gb-board {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

.gb-column {
  min-width: 260px;
  max-width: 320px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gb-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.gb-column__title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.gb-column__count {
  background: var(--bg-raised);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
}

.gb-column__cards {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Cards ───────────────────────────────── */

.gb-card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.gb-card:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
}

.gb-card--pr {
  border-left: 3px solid var(--accent);
}

.gb-card__header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.gb-card__number {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-3);
}

.gb-card__assignee {
  font-size: 11px;
  color: var(--accent);
  margin-left: auto;
}

.gb-card__branch {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-3);
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.gb-card__title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

.gb-card__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.gb-card__labels .badge {
  font-size: 10px;
  padding: 1px 6px;
}

.gb-card__meta {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
}

/* ── Empty state ─────────────────────────── */

.gb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  color: var(--text-3);
  font-size: 14px;
}
