/* ═══════════════════════════════════════════════════════════
   Azubigames – Startseite
   (aligned with Quiz, Imposter & Powerpoint-Karaoke)
   ═══════════════════════════════════════════════════════════ */

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --heritage-blue:   #0D21A0;
  --horizon-blue:    #49ABEB;
  --cloud-white:     #FAFAFF;
  --foundation-blue: #011749;
  --united-red:      #F12938;
  --neural-purple:   #7A59E2;
  --circuit-green:   #54C664;
  --fibre-orange:    #FF7900;
  --voltage-yellow:  #F2C00C;
  --grey-one:        #2A2A2B;

  --text-primary:   #FAFAFF;
  --text-secondary: rgba(250, 250, 255, 0.65);
  --text-muted:     rgba(250, 250, 255, 0.42);

  --card-bg:        rgba(3, 10, 40, 0.72);
  --card-border:    rgba(73, 171, 235, 0.20);
  --surface-hover:  rgba(255, 255, 255, 0.07);

  --radius:    16px;
  --radius-sm: 10px;
  --shadow:    0 8px 40px rgba(0, 0, 0, 0.50);
  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.35);
  --blur:      blur(20px);
  --gradient-primary: linear-gradient(135deg, var(--heritage-blue) 0%, var(--horizon-blue) 100%);
}

/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}
a, .game-card { cursor: pointer !important; }

/* ─── Base ───────────────────────────────────────────────── */
html {
  height: 100%;
  background-color: #00091f;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(ellipse 80% 60% at 15%  5%,  rgba(73, 171, 235, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 95%,  rgba(13,  33, 160, 0.50) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 50% 50%,  rgba(13,  33, 160, 0.12) 0%, transparent 80%),
    linear-gradient(160deg, #00091f 0%, #011749 50%, #0a1880 100%);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* ─── Logo Bar ───────────────────────────────────────────── */
.logo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(0, 9, 31, 0.70);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(73, 171, 235, 0.14);
  position: sticky;
  top: 0;
  z-index: 100;
}

.collab-logos { display: flex; align-items: center; gap: 14px; }
.collab-logo-cc { height: 40px; border-radius: 8px; object-fit: contain; display: block; }

/* ─── Main ───────────────────────────────────────────────── */
.main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px 60px;
  min-height: calc(100vh - 65px);
  gap: 0;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  text-align: center;
  margin-bottom: 48px;
}

.hero-badge {
  display: inline-block;
  background: rgba(73, 171, 235, 0.12);
  border: 1px solid rgba(73, 171, 235, 0.30);
  color: var(--horizon-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.8rem, 10vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 14px;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 3vw, 1.2rem);
  color: var(--text-secondary);
  font-weight: 400;
}

/* ─── Games Grid ─────────────────────────────────────────── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 960px;
}

/* ─── Game Card ──────────────────────────────────────────── */
.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(73, 171, 235, 0.10);
  text-decoration: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(73, 171, 235, 0.18);
}

/* Accent top border per game */
.game-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.game-quiz::before    { background: linear-gradient(90deg, var(--heritage-blue), var(--horizon-blue)); }
.game-imposter::before { background: linear-gradient(90deg, var(--united-red), #ff6b7a); }
.game-ppt::before     { background: linear-gradient(90deg, var(--neural-purple), #a87ef5); }

/* Glow effect */
.card-glow {
  position: absolute;
  top: -60px; left: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  opacity: 0;
  filter: blur(50px);
  transition: opacity 0.3s;
  pointer-events: none;
}

.game-quiz    .card-glow { background: var(--horizon-blue); }
.game-imposter .card-glow { background: var(--united-red); }
.game-ppt     .card-glow { background: var(--neural-purple); }

.game-card:hover .card-glow { opacity: 0.18; }

.game-quiz:hover    { border-color: rgba(73, 171, 235, 0.40); }
.game-imposter:hover { border-color: rgba(241, 41, 56, 0.40); }
.game-ppt:hover     { border-color: rgba(122, 89, 226, 0.40); }

/* Icon */
.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  line-height: 1;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

/* Image */
.card-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 8px;
  border-radius: 12px;
}

/* Body */
.card-body { flex: 1; }

.card-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  text-align: left;
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Arrow */
.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.game-card:hover .card-arrow {
  transform: translateX(3px);
}

.game-quiz:hover    .card-arrow { color: var(--horizon-blue); }
.game-imposter:hover .card-arrow { color: #ff6b7a; }
.game-ppt:hover     .card-arrow { color: #a87ef5; }

/* Tag */
.card-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: right;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  margin-top: 56px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(73, 171, 235, 0.25); border-radius: 2px; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .games-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
  .hero { margin-bottom: 36px; }
}

@media (max-width: 480px) {
  .main { padding: 36px 16px 48px; }
  h1 { font-size: 2.4rem; }
  .card-body h2 { font-size: 1.2rem; }
  .card-icon { font-size: 2.4rem; }
  .game-card { padding: 22px 20px 18px; }
}
