/* ============================================================
   Playground Spiele Djungel — Hub CSS
   Theme: Rot & Gold
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --gold: #FFD700;
  --gold-light: #FFE44D;
  --gold-dark: #B8960F;
  --red: #D42426;
  --red-dark: #8B0000;
  --red-light: #E8484A;
  --bg: #0d0505;
  --bg-card: #1f0a0a;
  --bg-card-hover: #2e0f0f;
  --text: #f0e6d0;
  --text-muted: #a09080;
  --border: rgba(212, 36, 38, 0.2);
  --border-gold: rgba(255, 215, 0, 0.3);
  --shadow: 0 8px 32px rgba(0,0,0,0.6);
  --glow-red: 0 0 40px rgba(212, 36, 38, 0.3);
  --glow-gold: 0 0 40px rgba(255, 215, 0, 0.25);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(139, 0, 0, 0.15), transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(255, 215, 0, 0.06), transparent 40%),
    radial-gradient(ellipse at 50% 100%, rgba(212, 36, 38, 0.08), transparent 50%);
  background-attachment: fixed;
}

/* ============================================================
   HEADER
   ============================================================ */

.header {
  text-align: center;
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  border-radius: 2px;
}

.header-icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.header-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.header-title .playground {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 20px rgba(255, 215, 0, 0.3));
}

.header-title .djungel {
  color: var(--red-light);
  -webkit-text-fill-color: var(--red-light);
  filter: drop-shadow(0 2px 20px rgba(212, 36, 38, 0.3));
}

.header-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  font-weight: 400;
}

/* Gold divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
  max-width: 300px;
  margin: 0 auto;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
}

.divider-icon {
  font-size: 1.4rem;
  opacity: 0.7;
}

/* ============================================================
   GAME GRID
   ============================================================ */

.section-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  text-align: center;
  color: var(--gold);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 1rem;
}

.game-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}

.game-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--red));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.game-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow-gold);
}

.game-card:hover::before {
  opacity: 1;
}

.game-card-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  display: block;
}

.game-card-title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.game-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.game-card-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #1a0505;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.game-card:hover .game-card-cta {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* Coming soon cards */
.game-card.coming-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

.game-card.coming-soon .game-card-cta {
  background: var(--text-muted);
  color: var(--bg);
}

/* ============================================================
   IMPRESSUM
   ============================================================ */

.impressum-section {
  max-width: 600px;
  margin: 3rem auto 0;
  padding: 0 1.5rem;
}

.impressum-toggle {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.impressum-toggle:hover {
  border-color: var(--border-gold);
  color: var(--gold);
}

.impressum-content {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.impressum-content.open {
  display: block;
}

.impressum-content strong {
  color: var(--text);
}

.impressum-content a {
  color: var(--gold);
  text-decoration: none;
}

.impressum-content a:hover {
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--gold);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 600px) {
  .header {
    padding: 2.5rem 1rem 1.5rem;
  }

  .games-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }

  .game-card {
    padding: 1.5rem 1rem;
  }

  .impressum-section {
    padding: 0 1rem;
  }
}