/* ============ Username Checker Styles ============ */

/* Checker section — full width above tools grid */
.checker-section {
  padding: 20px 20px 0;
}

.checker-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.checker-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

/* ============ Compact Inline Result ============ */
.checker-result-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  flex-wrap: wrap;
}

.checker-result-inline .checker-result-username {
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.checker-result-meta-inline {
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.6;
}

.checker-result-actions-inline {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.checker-price-inline {
  font-size: 13px;
  font-weight: 700;
  color: var(--yellow);
}

/* Legacy card (loading/error/limit states) */
.checker-result-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}

/* Status Badges (shared: result + history) */
.check-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.check-status-available {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.check-status-taken {
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
}

.check-status-purchasable {
  background: rgba(52, 152, 219, 0.15);
  color: #3498db;
}

.check-status-error {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

/* Type badge (user/channel/group/collectible) */
.checker-type-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  flex-shrink: 0;
}

/* Credits badge */
.checker-credits-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(52, 152, 219, 0.12);
  color: var(--accent);
  font-weight: 600;
}

/* Loading state */
.checker-loading {
  padding: 32px 20px;
  text-align: center;
}

/* ============ Check History ============ */
.history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.1s;
  min-width: 0;
}
.history-row:last-child { border-bottom: none; }
.history-row:hover { background: var(--bg-hover); }

.history-username {
  font-family: monospace;
  font-size: 13px;
  font-weight: 500;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.check-status-mini {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.history-estimate {
  font-size: 11px;
  color: var(--yellow);
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.history-time {
  font-size: 10px;
  color: var(--text-dim);
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0.6;
}
