/* CAP CUP GLOBAL BRANDING V1 */

:root {
  --capcup-team-logo-size: 44px;
}

/* =========================================================
   TEAM LOGOS
   ========================================================= */

.capcup-team-with-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.capcup-team-logo {
  width: var(--capcup-team-logo-size);
  height: var(--capcup-team-logo-size);
  flex: 0 0 var(--capcup-team-logo-size);
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  padding: 4px;
  box-sizing: border-box;
  box-shadow:
    0 2px 8px rgba(0,0,0,.18),
    inset 0 0 0 1px rgba(0,0,0,.06);
}

.capcup-team-logo--small {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  border-radius: 8px;
  padding: 3px;
}

.capcup-team-logo--large {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  border-radius: 14px;
  padding: 5px;
}

.capcup-team-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -.4px;
  color: #151515;
  background:
    linear-gradient(145deg, rgba(255,255,255,.98), rgba(225,225,225,.94));
}

/* =========================================================
   HALL OF FAME
   ========================================================= */

.capcup-hof-trophy {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.28));
}

.capcup-hof-trophy svg {
  display: block;
  width: 100%;
  height: 100%;
}

.capcup-hof-winner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.capcup-hof-winner-main {
  min-width: 0;
}

.capcup-hof-winner-name {
  font-weight: 900;
}

/* =========================================================
   FOOTER
   ========================================================= */

.capcup-global-footer {
  position: relative;
  z-index: 5;
  width: 100%;
  box-sizing: border-box;
  margin-top: 34px;
  padding: 18px 18px 20px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  background: rgba(8,12,10,.58);
  border-top: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.capcup-global-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px 16px;
  flex-wrap: wrap;
}

.capcup-global-footer__copyright {
  white-space: nowrap;
}

.capcup-global-footer__divider {
  opacity: .42;
}

.capcup-global-footer__pelia {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 24px;
}

.capcup-global-footer__pelia-label {
  opacity: .68;
}

.capcup-global-footer__pelia-logo {
  display: block;
  max-width: 110px;
  max-height: 27px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/*
 * Se il logo Pelia non è ancora installato, mostriamo solo il nome.
 */
.capcup-global-footer__pelia-text {
  font-weight: 800;
  letter-spacing: .25px;
  color: #fff;
}

/* Monitor: footer più discreto */
body.capcup-monitor-page .capcup-global-footer,
.monitor-page .capcup-global-footer {
  margin-top: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(5,8,6,.42);
}

@media (max-width: 700px) {
  :root {
    --capcup-team-logo-size: 38px;
  }

  .capcup-global-footer {
    margin-top: 24px;
    padding: 15px 12px 18px;
    font-size: 11px;
  }

  .capcup-global-footer__inner {
    gap: 6px 10px;
  }

  .capcup-global-footer__divider {
    display: none;
  }

  .capcup-global-footer__copyright,
  .capcup-global-footer__pelia {
    width: 100%;
  }

  .capcup-hof-trophy {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }
}
