/* Basis-Styles für die Game-Startseite von jim-leuchsenring.de */

:root {
  --bg-body: #050816;
  --bg-card: #0b0f20;
  --bg-card-alt: #111827;
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-strong: #4f46e5;
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.18s ease-out;
  --transition-slow: 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text-main);
  background: radial-gradient(circle at top left, #1f2937 0, #020617 50%, #000 100%);
}

/* Wrapper */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */

.site-header,
.hero,
.games-section,
.about-section,
.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* HEADER */

.site-header {
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(3, 7, 18, 0.85),
    rgba(3, 7, 18, 0.4),
    transparent
  );
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #22d3ee, #4f46e5);
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.8),
    0 10px 20px rgba(15, 23, 42, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-weight: 700;
  font-size: 1rem;
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* NAV */

.main-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  position: relative;
  padding-bottom: 0.15rem;
  transition: color var(--transition-fast);
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #a855f7);
  transition: width var(--transition-fast);
}

.main-nav a:hover {
  color: var(--text-main);
}

.main-nav a:hover::after {
  width: 100%;
}

/* HERO */

.hero {
  padding-top: 2.25rem;
  padding-bottom: 1.5rem;
}

.hero-text {
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  margin: 0 0 0.6rem;
  letter-spacing: 0.02em;
}

.hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* SECTION TITLE */

.section-title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* GAME GRID */

.games-section {
  padding-bottom: 2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Cards */

.game-card {
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top left, #111827, #020617);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transform: translateY(0) scale(1);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-fast),
    background var(--transition-slow);
}

.game-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.75);
  border-color: rgba(129, 140, 248, 0.9);
  background: radial-gradient(circle at top left, #1f2937, #020617);
}

/* Bild */

.game-image-wrapper {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.game-image-wrapper img,
.game-placeholder-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.game-placeholder-image {
  background: repeating-linear-gradient(
      135deg,
      rgba(55, 65, 81, 0.9),
      rgba(31, 41, 55, 0.9) 10px,
      rgba(75, 85, 99, 0.9) 10px,
      rgba(55, 65, 81, 0.9) 20px
    );
  color: rgba(229, 231, 235, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Body */

.game-card-body {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.game-title {
  margin: 0;
  font-size: 1.05rem;
}

.game-description {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Badge */

.game-badge {
  align-self: flex-start;
  margin-top: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(to right, #22d3ee, #6366f1);
  color: #020617;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-badge-disabled {
  background: rgba(31, 41, 55, 0.9);
  color: var(--text-muted);
}

/* ABOUT SECTION */

.about-section {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.about-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* FOOTER */

.site-footer {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 0.75rem 1.5rem 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* RESPONSIVE DESIGN */

@media (max-width: 960px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    padding-inline: 1.25rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .main-nav {
    gap: 1rem;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .games-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
