/* gaming.css — /projects page styles. Cards, game jam. */

.gaming-page {
  padding: calc(var(--header-h) + 48px) 24px 80px;
  max-width: 1060px; margin: 0 auto;
}

/* ── hero ── */
.gp-hero {
  margin-bottom: 56px;
}
.gp-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--text); margin-bottom: 10px;
}
.gp-hero p {
  color: var(--muted); font-size: 1.1rem;
  line-height: 1.55;
}

/* ── sections ── */
.gp-section {
  margin-bottom: 72px;
}
.gp-section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.6rem; margin-bottom: 8px;
  color: var(--text);
  padding-left: 14px; border-left: 3px solid var(--warm);
}
.gp-section-desc {
  color: var(--muted); font-size: 1rem; 
  margin-bottom: 28px; line-height: 1.6;
}

/* ── card grid ── */
.gp-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

/* ── project card ── */
.gp-card {
  display: block; text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
  transition: border-color 200ms, box-shadow 200ms, transform 200ms;
}
.gp-card:hover {
  border-color: var(--indigo);
  box-shadow: 0 6px 24px rgba(42,58,146,0.10);
  transform: translateY(-2px);
}

/* card art */
.gp-card-art {
  position: relative; height: 180px; overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--warm) 12%, var(--surface)), color-mix(in srgb, var(--warm) 6%, var(--surface)));
  display: flex; align-items: center; justify-content: center;
}
.gp-card-art img {
  width: 100%; height: 100%; object-fit: cover;
}
.gp-card-art-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 700;
  color: var(--muted); opacity: 0.3;
}
.gp-card-art-placeholder.ghost {
  border: 2px dashed var(--border); background: transparent;
  font-size: 2.5rem; opacity: 0.25;
}
.gp-card-art-placeholder.rec {
  background: linear-gradient(135deg, color-mix(in srgb, var(--warm) 10%, var(--surface)), color-mix(in srgb, var(--warm) 4%, var(--surface)));
}

/* status badge */
.gp-card-status {
  position: absolute; top: 12px; right: 12px;
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.gp-card-status.in-development { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.gp-card-status.released { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }

/* card body */
.gp-card-body { padding: 18px 22px 22px; }
.gp-card-body h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--text); margin-bottom: 8px;
}
.gp-card-tagline { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* sponsors */
.gp-card-sponsors {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px;
}
.gp-sponsor {
  font-family: var(--font-display); font-size: 0.7rem; font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 3px 10px;
}

/* ghost card */
.gp-card.ghost {
  pointer-events: none; opacity: 0.55;
  border-style: dashed;
}
.gp-card.ghost h3 { color: var(--muted); }

/* ── game jam ── */
.gp-jam-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 28px;
  display: grid;
  grid-template-columns: 1fr 220px; gap: 32px;
}
.gp-jam-info h3 {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  margin-bottom: 8px; color: var(--text);
}
.gp-jam-meta {
  display: flex; gap: 16px; margin-bottom: 14px;
  font-size: 0.9rem; color: var(--muted);
}
.gp-jam-info p { color: var(--text); margin-bottom: 10px; line-height: 1.65; }
.gp-jam-partners h4 {
  font-family: var(--font-display); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 10px;
}
.gp-jam-partner-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.gp-partner-badge {
  display: inline-block;
  font-size: 0.82rem; font-weight: 600;
  padding: 6px 14px;
  background: color-mix(in srgb, var(--muted) 6%, var(--surface));
  color: var(--text);
  border: 1px solid var(--border); border-radius: 8px;
}

.gp-jam-video {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
}
.gp-jam-video iframe {
  width: 100%; height: 100%;
  border: 0; display: block;
}

/* ── responsive ── */
@media (max-width: 768px) {
  .gaming-page { padding: calc(var(--header-h) + 28px) 16px 60px; max-width: 100%; overflow-x: hidden; }
  .gp-card-grid { grid-template-columns: 1fr; }
  .gp-jam-card { grid-template-columns: 1fr; }
  .gp-hero h1 { font-size: 1.6rem; }
}

/* ── dark mode: card shadows become glows ── */
:root[data-theme="dark"] .gp-card:hover {
  box-shadow: 0 6px 24px rgba(100, 130, 220, 0.15);
}

