/* ==========================================
   CARDS: Game, Comic, Art Masonry, Team
   ========================================== */

/* Game Card */
.game-card {
  background-color: var(--bg-dark-secondary);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  border-color: var(--color-teal);
}

.game-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.game-info {
  padding: 1.5rem;
}

/* Game type labels on project cards */
.game-type-labels {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.game-type-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  background: rgba(255,255,255,0.08);
  color: var(--color-teal);
  border: 1px solid rgba(255,255,255,0.1);
}

.game-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.game-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ==========================================
   MASONRY GRID (Art / DevForum)
   ========================================== */

.masonry-grid {
  column-count: 3;
  column-gap: 1.5rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.masonry-item:hover img {
  transform: scale(1.05);
}

.masonry-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s;
}

.masonry-item:hover::after {
  opacity: 1;
}

/* Masonry overlay on hover */
.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  padding: 20px 12px 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-overlay span {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 600;
}

/* DevForum Styles */
.devforum-video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(231, 76, 60, 0.9);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

.devforum-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.devforum-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================
   COMICS (legacy card style)
   ========================================== */

.portrait-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.comic-card {
  text-align: center;
}

.comic-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s;
  cursor: pointer;
}

.comic-card:hover img {
  transform: scale(1.05);
}

.comic-card h3 {
  margin-top: 1rem;
  font-size: 1.1rem;
}

/* ==========================================
   TEAM CARDS
   ========================================== */

.team-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.team-card {
  background-color: var(--bg-dark-secondary);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.team-card:hover {
  transform: translateY(-10px);
  background-color: var(--bg-dark-tertiary);
  border-color: var(--color-mustard);
}

.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-teal);
}

.team-card h3 {
  font-size: 1.3rem;
  color: var(--color-cream);
}

.team-card p {
  color: var(--color-rust);
  font-size: 0.9rem;
  font-weight: 600;
}
