/* Statroom Component Styles */

/* Buttons */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2rem;
  padding: 0 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  background: transparent;
  color: var(--muted-foreground);
  border: none;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--secondary); color: var(--foreground); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--foreground);
  color: var(--background);
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
  text-decoration: none;
}
.btn-primary:hover { opacity: 0.9; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--card);
  color: var(--foreground);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--secondary); }

.btn-sm {
  height: 2rem;
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  border-radius: 9999px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.375rem;
  color: var(--muted-foreground);
  background: transparent;
  border: none;
  cursor: pointer;
}
.btn-icon:hover { background: var(--secondary); color: var(--foreground); }

/* Cards */
.card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-image: var(--gradient-card);
  padding: 1.25rem;
}

.card-hover:hover {
  border-color: var(--border-strong);
}

.metric-card {
  border-radius: 1rem;
  border: 1px solid var(--border);
  background-image: var(--gradient-card);
  padding: 1.25rem;
}
.metric-card .label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.metric-card .value {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.875rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.metric-card .delta {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: var(--accent);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
}
.badge-accent { background: oklch(0.72 0.18 145 / 0.15); color: var(--accent); }
.badge-warning { background: oklch(0.78 0.16 75 / 0.15); color: var(--warning); }
.badge-default { background: var(--secondary); color: var(--foreground); }

/* Inputs */
.input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s;
}
.input:focus { border-color: var(--accent); }
.input::placeholder { color: var(--muted-foreground); }

.textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 0.75rem;
  font-size: 0.875rem;
  color: var(--foreground);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.textarea:focus { border-color: var(--accent); }
.textarea::placeholder { color: var(--muted-foreground); }

/* Field label */
.field-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

/* Eyebrow */
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
}

/* Links */
.link-muted {
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.link-muted:hover { color: var(--foreground); }

/* Selection highlight */
::selection { background-color: oklch(0.72 0.18 145 / 0.3); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }
