/* Credits Gallery Styles */
.credits-gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.credits-gallery-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.credits-gallery-container {
  width: 90vw;
  height: 90vh;
  max-width: 1200px;
  max-height: 800px;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  border-radius: 16px;
  border: 2px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: scale(1);
  transition: all 0.3s ease;
}

.credits-gallery-header {
  padding: 20px 30px;
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credits-company {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 80%;
}

.credits-text-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credits-gallery-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  color: white;
}

.credits-game-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.credits-company-name {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.credits-logo {
  max-height: 100px;
  max-width: 100px;
  height: auto;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.credits-gallery-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.2s ease;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.credits-gallery-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

.credits-gallery-content {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  background: linear-gradient(135deg, #34495e, #2c3e50);
}

.credits-gallery-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.credits-filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.credits-filter-btn:hover,
.credits-filter-btn.active {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border-color: #f39c12;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
  color: white;
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  padding-top: 10px;
}

.credits-card {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.credits-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 215, 0, 0.1),
    transparent
  );
  transition: all 0.6s ease;
}

.credits-card:hover::before {
  left: 100%;
}

.credits-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: #f39c12;
  background: linear-gradient(
    135deg,
    rgba(243, 156, 18, 0.25),
    rgba(243, 156, 18, 0.1)
  );
}

.credits-card-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 8px;
  margin: 0 auto 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px;
}

.credits-card:hover .credits-card-image {
  transform: scale(1.05);
}

.credits-card-name {
  font-size: 18px;
  font-weight: bold;
  color: #ecf0f1;
  margin: 0 0 8px 0;
}

.credits-card-title {
  font-size: 14px;
  color: #f39c12;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.credits-card-department {
  font-size: 12px;
  color: #bdc3c7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
  font-weight: 500;
}

.credits-detail-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2c3e50, #34495e);
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.credits-detail-view.active {
  opacity: 1;
  visibility: visible;
}

.credits-detail-left {
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  position: relative;
}

.credits-detail-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 215, 0, 0.3);
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
}

.credits-detail-right {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
  background: rgba(0, 0, 0, 0.1);
}

.credits-detail-name {
  font-size: 32px;
  font-weight: bold;
  margin: 0 0 12px 0;
  color: #f39c12;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.credits-detail-title {
  font-size: 20px;
  color: #ecf0f1;
  margin: 0 0 12px 0;
  font-weight: 600;
}

.credits-detail-department {
  font-size: 16px;
  color: #f39c12;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 24px 0;
  font-weight: 500;
}

.credits-detail-description {
  font-size: 16px;
  line-height: 1.6;
  color: #bdc3c7;
  margin: 0;
  font-weight: 400;
}

.credits-detail-back {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
  z-index: 100;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 215, 0, 0.3);
  font-weight: bold;
}

.credits-detail-back:hover {
  background: rgba(243, 156, 18, 0.8);
  transform: scale(1.1);
  border-color: #f39c12;
}

/* Golden theme enhancements */
.credits-gallery-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    ellipse at top,
    rgba(255, 215, 0, 0.1) 0%,
    transparent 50%
  );
  pointer-events: none;
  z-index: 1;
}

.credits-gallery-content {
  position: relative;
  z-index: 2;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .credits-gallery-container {
    width: 95vw;
    height: 95vh;
  }

  .credits-gallery-header {
    padding: 16px 20px;
  }

  .credits-gallery-title {
    font-size: 24px;
  }

  .credits-game-title {
    font-size: 16px;
  }

  .credits-company-name {
    font-size: 12px;
  }

  .credits-logo {
    max-width: 60px;
    max-height: 50px;
  }

  .credits-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
  }

  .credits-card {
    padding: 12px;
  }

  .credits-card-image {
    width: 70px;
    height: 70px;
  }

  .credits-detail-view {
    flex-direction: column;
  }

  .credits-detail-left,
  .credits-detail-right {
    width: 100%;
    padding: 20px;
  }

  .credits-detail-left {
    height: 40%;
  }

  .credits-detail-right {
    height: 60%;
  }

  .credits-detail-name {
    font-size: 24px;
  }

  .credits-detail-title {
    font-size: 16px;
  }

  .credits-detail-description {
    font-size: 14px;
  }
}
