/* ============================================
   LANDING PAGE STYLES - Mini-Spiele
   Glassmorphism design matching matzka.cloud webapp
   ============================================ */

/* Inter lokal statt von Google (Audit 2026-08-16, DS-01) — siehe css/fonts.css */
@import url('fonts.css');

:root {
  /* Colors matching matzka.cloud Glassmorphism design */
  --color-bg-dark: #050a14;
  --color-bg-card: rgba(255, 255, 255, 0.05);
  --color-accent: #00e1ff;
  --color-accent-hover: #00c8e6;
  --color-accent-glow: rgba(0, 225, 255, 0.3);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(0, 225, 255, 0.5);
  --color-text-primary: #ffffff;
  --color-text-secondary: rgba(255, 255, 255, 0.6);
  --color-text-muted: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing */
  --container-max-width: 1200px;
  --section-padding-v: 4rem;
  --section-padding-h: 1.5rem;
  --card-gap: 1.5rem;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   ANIMATED BACKGROUND
   ============================================ */

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0, 225, 255, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 225, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   CONTAINER
   ============================================ */

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--section-padding-h);
  position: relative;
  z-index: 1;
}

/* ============================================
   TOP NAV — back link to matzka.cloud
   ============================================ */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-padding-h);
  height: 48px;
  background: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.top-nav-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.top-nav-back:hover {
  color: var(--color-accent);
  text-shadow: none;
}

.top-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.01em;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: var(--section-padding-v) var(--section-padding-h);
  text-align: center;
  position: relative;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  filter: drop-shadow(0 0 20px var(--color-accent-glow));
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games-section {
  padding: var(--section-padding-v) var(--section-padding-h);
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
}

/* ============================================
   GAMES GRID & CARDS (Glassmorphism)
   ============================================ */

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--card-gap);
}

.game-card {
  background: var(--color-bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.game-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: 0 0 30px var(--color-accent-glow);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

/* Game Icon */
.game-icon {
  margin-bottom: 1.25rem;
  height: 72px;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 225, 255, 0.1);
  border: 1px solid rgba(0, 225, 255, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  color: var(--color-accent);
}

.game-icon svg {
  width: 36px;
  height: 36px;
}

.game-card:hover .game-icon {
  transform: scale(1.1);
  background: rgba(0, 225, 255, 0.15);
  box-shadow: 0 0 20px var(--color-accent-glow);
}

/* Card Title */
.game-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text-primary);
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.game-card:hover h3 {
  color: var(--color-accent);
}

/* Card Description */
.game-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.6;
}

/* Play Button */
.btn-play {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 225, 255, 0.3);
  cursor: pointer;
}

.btn-play:hover {
  background: rgba(0, 225, 255, 0.1);
  border-color: var(--color-accent);
  box-shadow: 0 0 20px var(--color-accent-glow);
  transform: scale(1.02);
}

.btn-play:active {
  transform: scale(0.98);
}

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

.footer-legal {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.footer-legal span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.footer {
  padding: 2rem var(--section-padding-h);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.footer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.footer a:hover {
  color: var(--color-accent-hover);
  text-shadow: 0 0 10px var(--color-accent-glow);
}

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

/* Tablet (768px+) */
@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero h1 {
    font-size: 4rem;
  }

  .section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
  }

  .game-card {
    padding: 2rem;
  }
}

/* Mobile (< 640px) */
@media (max-width: 640px) {
  .hero {
    padding: 3rem var(--section-padding-h);
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .games-section {
    padding: 2rem var(--section-padding-h);
  }

  .game-card {
    padding: 1.5rem;
  }

  .game-card h3 {
    font-size: 1.1rem;
  }

  .game-description {
    font-size: 0.9rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus,
button:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
