/*
============================================================
Club OS Studio
Datei: components.css
Zweck: Wiederverwendbare UI-Komponenten
Phase: 13.3 - Studio Shell
============================================================
*/

.studio-card {
  border: 1px solid var(--studio-border);
  border-radius: var(--studio-radius-md);

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.035),
      rgba(255, 255, 255, 0.01)
    ),
    var(--studio-surface);

  box-shadow: var(--studio-shadow);
}

.studio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 44px;

  padding: 10px 18px;

  border: 1px solid transparent;
  border-radius: var(--studio-radius-sm);

  color: white;
  background: var(--studio-primary);

  font-weight: 750;

  transition:
    transform var(--studio-transition),
    background var(--studio-transition),
    border-color var(--studio-transition);
}

.studio-button:hover {
  transform: translateY(-1px);
  background: var(--studio-primary-light);
}

.studio-button--secondary {
  border-color: var(--studio-border-strong);
  background: var(--studio-surface-soft);
}

.studio-button--secondary:hover {
  background: var(--studio-surface-hover);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;

  padding: 6px 10px;

  border-radius: 999px;

  font-size: 0.78rem;
  font-weight: 750;
}

.status-badge::before {
  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: currentColor;

  content: "";
}

.status-badge--success {
  color: var(--studio-success);
  background: rgba(54, 211, 153, 0.12);
}

.status-badge--warning {
  color: var(--studio-warning);
  background: rgba(248, 197, 85, 0.12);
}

.status-badge--danger {
  color: var(--studio-danger);
  background: rgba(251, 113, 133, 0.12);
}

.empty-view {
  padding: 70px 30px;

  text-align: center;
}

.empty-view__icon {
  margin-bottom: 14px;

  font-size: 3rem;
}

.empty-view h2 {
  margin-bottom: 8px;
}

.empty-view p {
  max-width: 560px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;

  color: var(--studio-text-muted);
}

.loader-wrapper {
  display: grid;
  min-height: 300px;
  place-items: center;
}

.loader {
  width: 42px;
  height: 42px;

  border: 4px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--studio-primary-light);
  border-radius: 50%;

  animation: studio-spin 800ms linear infinite;
}

.toast-container {
  position: fixed;
  z-index: 9999;
  right: 22px;
  bottom: 22px;

  display: grid;
  gap: 12px;

  width: min(380px, calc(100vw - 32px));
}

.toast {
  padding: 15px 17px;

  border: 1px solid var(--studio-border-strong);
  border-radius: var(--studio-radius-sm);

  color: var(--studio-text);
  background: var(--studio-surface-soft);

  box-shadow: var(--studio-shadow);

  animation: toast-enter 180ms ease;
}

.toast--success {
  border-color: rgba(54, 211, 153, 0.4);
}

.toast--error {
  border-color: rgba(251, 113, 133, 0.45);
}

@keyframes studio-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
