/*--------------------------------------------------------------
# Site styles shared by the homepage and project detail pages
--------------------------------------------------------------*/

/* Sidebar — photo and name on top, nav links centered vertically */
#header {
  display: grid;
  grid-template-rows: 1fr auto 1fr;
}

#header .header-top {
  padding-top: 40px;
}

#header .navmenu ul {
  padding: 0;
}

#header .navmenu a,
#header .navmenu a:focus {
  justify-content: center;
}

/* Project cards */
.games .games-content img {
  object-fit: cover;
}

.games .project-placeholder {
  height: 235px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(135deg, #071628 0%, #0a2942 100%);
  transition: 0.3s;
}

.games .games-content:hover .project-placeholder {
  transform: scale(1.1);
}

/* Project detail pages */
.project-detail .back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  margin-bottom: 24px;
}

.project-detail .project-meta {
  font-size: 18px;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin-bottom: 24px;
}

.project-detail .project-media {
  margin-bottom: 28px;
}

.project-detail .project-media img {
  width: 100%;
  border-radius: 8px;
}

.project-detail .project-video {
  position: relative;
  aspect-ratio: 16 / 9;
}

.project-detail .project-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
}

.project-detail .project-body p {
  font-size: 17px;
  line-height: 1.7;
}

.project-detail .project-gallery {
  margin-top: 8px;
  margin-bottom: 28px;
}

.project-detail .project-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}

.project-detail .project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.project-detail .project-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  color: #fff;
  background: var(--accent-color);
  transition: background 0.2s ease;
}

.project-detail .project-links a:hover {
  background: #1babf0;
}
