/* Spiele-Hub & Detailseiten */
.ng-page.ng-hub,
.ng-hub {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.ng-hub-hero {
  margin-bottom: 36px;
  padding: 36px 32px;
  border-radius: calc(var(--ng-radius) + 6px);
  background:
    radial-gradient(circle at 85% 20%, rgba(184, 212, 240, 0.1), transparent 45%),
    linear-gradient(135deg, rgba(107, 77, 138, 0.28), rgba(74, 138, 154, 0.14));
  box-shadow: var(--ng-shadow);
  border: 1px solid var(--ng-border);
}

.ng-hub-hero h1 {
  font-family: var(--ng-font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0 0 14px;
  color: var(--ng-sky-bright);
  letter-spacing: 0.01em;
}

.ng-hub-hero p {
  margin: 0;
  color: var(--ng-text-muted);
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.ng-hub-section-title h2 {
  margin: 0 0 18px;
  font-family: var(--ng-font-display);
  font-size: 1.35rem;
  color: var(--ng-sky-bright);
  letter-spacing: 0.02em;
}

.ng-apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.ng-app-card {
  display: flex;
  flex-direction: column;
  background: var(--ng-surface-elevated);
  border-radius: var(--ng-radius);
  overflow: hidden;
  box-shadow: var(--ng-shadow);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--ng-border);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ng-app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.38);
  border-color: rgba(184, 212, 240, 0.28);
}

.ng-app-cover {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  position: relative;
}

.ng-app-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.4));
}

.ng-app-icon {
  position: absolute;
  left: 16px;
  bottom: -24px;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 3px solid var(--ng-surface);
  background: var(--ng-surface);
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.ng-app-body {
  padding: 34px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ng-app-body h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--ng-text);
  font-weight: 700;
}

.ng-app-tagline {
  margin: 0;
  color: var(--ng-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.ng-app-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ng-game-detail {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.ng-game-detail--solo {
  grid-template-columns: 1fr;
}

.ng-game-servers h2 {
  margin: 0 0 14px;
  font-family: var(--ng-font-display);
  font-size: 1.35rem;
}

.ng-game-hero {
  border-radius: var(--ng-radius);
  overflow: hidden;
  background: var(--ng-surface-elevated);
  box-shadow: var(--ng-shadow);
  border: 1px solid var(--ng-border);
}

.ng-game-hero-media {
  position: relative;
  line-height: 0;
}

.ng-game-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

.ng-game-hero-cover {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: top center;
  background: var(--ng-surface-2);
}

.ng-game-hero-icon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 3px solid var(--ng-surface-elevated);
  background: var(--ng-surface-elevated);
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.ng-game-hero-body { padding: 20px; }

.ng-game-hero-body h1 {
  margin: 0 0 8px;
  font-family: var(--ng-font-display);
  color: var(--ng-sky-bright);
}

.ng-game-info { color: var(--ng-text-muted); line-height: 1.6; }

.ng-server-list { display: grid; gap: 10px; }

.ng-server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--ng-radius-sm);
  background: var(--ng-surface-2);
  border: 1px solid var(--ng-border);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
}

a.ng-server-card:hover {
  background: var(--ng-surface-elevated);
  border-color: rgba(184, 212, 240, 0.22);
}

.ng-server-card.is-selected {
  border-color: var(--ng-sky);
  background: rgba(107, 77, 138, 0.18);
  box-shadow: 0 0 0 2px rgba(184, 212, 240, 0.2);
}

.ng-server-card.is-readonly {
  cursor: default;
}

.ng-server-card.is-readonly:hover {
  background: var(--ng-surface-2);
  border-color: var(--ng-border);
}

.ng-server-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ng-server-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.ng-server-status.is-online {
  color: #6ecf8a;
  background: rgba(110, 207, 138, 0.12);
}

.ng-server-status.is-offline {
  color: #ff8a94;
  background: rgba(255, 138, 148, 0.12);
}

.ng-server-status.is-unknown {
  color: var(--ng-text-muted);
  background: rgba(184, 212, 240, 0.08);
}

.ng-code-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--ng-radius-sm);
  background: var(--ng-surface-2);
  border: 1px solid var(--ng-border);
}

.ng-code-box form { display: flex; gap: 8px; flex-wrap: wrap; }

.ng-code-box input {
  flex: 1;
  min-width: 180px;
  padding: 10px 12px;
  border-radius: var(--ng-radius-sm);
  border: 1px solid var(--ng-border);
  background: var(--ng-surface-elevated);
  color: var(--ng-text);
  font-family: inherit;
}

.ng-lock-note {
  padding: 16px;
  border-radius: var(--ng-radius-sm);
  background: rgba(220, 80, 90, 0.14);
  color: #ff8a94;
  border: 1px solid rgba(220, 80, 90, 0.25);
}

.ng-empty {
  padding: 32px;
  text-align: center;
  color: var(--ng-text-muted);
  border-radius: var(--ng-radius);
  background: var(--ng-surface-elevated);
  border: 1px solid var(--ng-border);
}

@media (max-width: 900px) {
  .ng-hub-hero,
  .ng-game-detail { grid-template-columns: 1fr; }
}

/* Legacy CMS-Seiten (News, Impressum, …) */
.ng-page .card {
  background: var(--ng-surface-elevated);
  border: 1px solid var(--ng-border);
  border-radius: var(--ng-radius);
  box-shadow: var(--ng-shadow);
}

.ng-page .list-group-item {
  background: transparent;
  border-color: var(--ng-border);
  color: var(--ng-text);
}

.ng-page .container,
.ng-page .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.text-nash-4 { color: var(--ng-purple-light) !important; }
.text-success { color: #6ecf8a !important; }
.text-danger { color: #ff8a94 !important; }

.ng-page .bg-special {
  background: linear-gradient(135deg, var(--ng-sky-dim), var(--ng-surface-2));
}

.ng-page .form-signin { width: 100%; max-width: 100%; }
