/* ===============================
   VARIABILI LOCALI
================================ */
:root {
  --credits-accent: var(--secondary-color);
  --credits-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===============================
   RESET BASE SOLO CREDITS
================================ */
html,
body.page-credits {
  height: 100%;
  margin: 0;
}

body.page-credits {
  background: none !important;
}

/* ===============================
   STRUTTURA PAGINA
================================ */
body.page-credits .page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.page-credits main {
  background: transparent;
}

/* ===============================
   SFONDO ANIMATO SOLO NEL MAIN
================================ */
body.page-credits .credits-main {
  flex: 1;
  padding: 4rem 1.5rem 4rem;
  background: linear-gradient(
    -45deg,
    #ffffff,
    var(--secondary-color),
    var(--accent-color),
    #f5f5f5,
    #e9f0f9,
    #d6e4f0
  );
  background-size: 600% 600%;
  animation: gradientBG 10s ease infinite;
}

@keyframes gradientBG {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 50% 50%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===============================
   CARD PRINCIPALE
================================ */
.credits-container {
  max-width: 1200px;
  margin: 0 auto;
}

.credits-card {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--credits-shadow);
  padding: 3rem;
}

/* ===============================
   PROFILO
================================ */
.credits-left {
  flex: 1 1 300px;
  min-width: 280px;
  text-align: center;
}

.credits-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin: 0 auto 1.5rem;
  display: block;
}

.credits-left h1 {
  font-size: 2rem;
  color: var(--credits-accent);
  margin-bottom: 0.5rem;
}

.credits-left h2 {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.credits-left p {
  font-size: 1rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

/* ===============================
   SOCIAL
================================ */
.credits-right {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.credits-social {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-left: 6px solid var(--credits-accent);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  box-shadow: var(--credits-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.credits-social:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* feedback touch mobile */
@media (hover: none) {
  .credits-social:active {
    transform: scale(0.97);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  }
}

.social-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

/* ===============================
   OVERRIDE PLAYER GLOBALE
   SOLO PAGINA CREDITS
================================ */


/* ===============================
   FOOTER
================================ */
body.page-credits .footer {
  position: static;
  margin: 0;
}

/* ===============================
   RESPONSIVE MOBILE
================================ */
@media (max-width: 768px) {

  body.page-credits .credits-main {
    padding: 3rem 1rem 3rem;
  }

  .credits-card {
    flex-direction: column;
    padding: 2rem;
  }

  .credits-photo {
    width: 120px;
    height: 120px;
  }

  .credits-left h1 {
    font-size: 1.6rem;
  }

  .credits-left h2 {
    font-size: 1rem;
  }

  .credits-left p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .credits-social {
    flex-direction: column;
    text-align: center;
  }
}