/* ============================================
   05 – COMPONENTS (Redesign "Midnight Pitch")
   ============================================ */

/* ============================================
   CARD – Glassy mit Tiefe
   ============================================ */

.card {
  position: relative;
  background: var(--surface-gradient);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition:
    border-color var(--t-base),
    box-shadow var(--t-base),
    transform var(--t-base);
  isolation: isolate;
}

/* Feine Top-Highlight-Linie */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.08),
    transparent
  );
  pointer-events: none;
}

[data-theme="light"] .card::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

/* Card mit Akzent-Border */
.card--accent {
  border-color: var(--border-accent);
  box-shadow:
    var(--shadow-md),
    0 0 0 1px rgba(0, 230, 118, 0.1),
    0 0 40px rgba(0, 230, 118, 0.08);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition:
    background var(--t-fast),
    border-color var(--t-fast),
    transform var(--t-fast),
    box-shadow var(--t-fast),
    color var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  overflow: hidden;
  isolation: isolate;
}

/* -------- Primary (Akzent) -------- */
.btn--primary {
  background: var(--accent-primary);
  color: #051A0E;
  font-weight: 800;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(0, 230, 118, 0.3),
    0 4px 14px rgba(0, 230, 118, 0.25);
}

.btn--primary:hover {
  background: var(--accent-primary-soft);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(0, 230, 118, 0.5),
    0 8px 24px rgba(0, 230, 118, 0.35);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

/* -------- Ghost -------- */
.btn--ghost {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--bg-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* -------- Subtle -------- */
.btn--subtle {
  background: transparent;
  color: var(--text-secondary);
}

.btn--subtle:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

/* -------- Danger -------- */
.btn--danger {
  background: var(--danger);
  color: #fff;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 0 0 1px rgba(239, 68, 68, 0.3),
    0 4px 14px rgba(239, 68, 68, 0.25);
}

.btn--danger:hover {
  background: #DC2626;
  transform: translateY(-1px);
}

/* -------- Sizes -------- */
.btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: 12px;
  border-radius: 10px;
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 14px;
  border-radius: 14px;
}

.btn--icon {
  width: 42px;
  padding: 0;
}

/* ============================================
   ICON BUTTON
   ============================================ */

.iconbtn {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition:
    background var(--t-fast),
    color var(--t-fast),
    transform var(--t-fast),
    border-color var(--t-fast);
  flex-shrink: 0;
  border: 1px solid transparent;
}

.iconbtn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--t-fast);
}

.iconbtn:active {
  transform: scale(0.94);
}

.iconbtn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border);
}

.iconbtn:hover svg {
  transform: scale(1.05);
}

/* Iconbtn mit Akzent */
.iconbtn--accent {
  color: var(--accent-primary);
}

.iconbtn--accent:hover {
  background: rgba(0, 230, 118, 0.1);
  border-color: var(--border-accent);
}

/* Badge am Icon */
.iconbtn__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--danger);
  border: 2px solid var(--bg-surface);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.7);
}

/* ============================================
   PILLS / BADGES
   ============================================ */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1.6;
}

.pill--primary {
  background: rgba(0, 230, 118, 0.12);
  border-color: rgba(0, 230, 118, 0.28);
  color: var(--accent-primary);
}

.pill--info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.28);
  color: var(--accent-secondary);
}

.pill--violet {
  background: rgba(167, 139, 250, 0.12);
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--accent-violet);
}

.pill--warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
  color: var(--warning);
}

.pill--danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.28);
  color: var(--danger);
}

.pill--neutral {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-secondary);
}

/* ============================================
   INPUTS
   ============================================ */

.input,
.select {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--bg-base);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  width: 100%;
  transition:
    border-color var(--t-fast),
    box-shadow var(--t-fast),
    background var(--t-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15) inset;
}

.input:hover,
.select:hover {
  border-color: var(--border-strong);
}

.input:focus,
.select:focus {
  border-color: var(--accent-primary);
  background: var(--bg-surface);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.15) inset,
    0 0 0 3px rgba(0, 230, 118, 0.12);
  outline: none;
}

.input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   AVATAR
   ============================================ */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-hover));
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 14px;
}

.avatar--accent {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-primary-strong));
  color: #051A0E;
  border-color: rgba(0, 230, 118, 0.4);
  box-shadow: var(--accent-glow);
}

/* ============================================
   DIVIDER
   ============================================ */

.divider {
  width: 100%;
  height: 1px;
  background: var(--border-soft);
}

.divider--v {
  width: 1px;
  height: 20px;
  background: var(--border-soft);
}

/* ============================================
   STAT BLOCK
   ============================================ */

.stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.stat-block__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-block__value {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1;
  font-family: var(--font-mono);
}

.stat-block__hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
  text-align: center;
}

.empty-state__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-hover));
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--text-muted);
}

.empty-state__icon svg {
  width: 24px;
  height: 24px;
}

.empty-state__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.empty-state__text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.55;
}