/**
 * branding.css — Styles for the waiting-phase trust & partner branding panel.
 * Paired with branding.js and the #waitingUi markup in index.html.
 */

.waiting-ui {
  padding: 16px 12px;
}

.brand-panel {
  width: min(100%, 340px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  animation: brand-enter 0.45s ease-out both;
}

@keyframes brand-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.official-partners {
  text-align: center;
}

.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.ufc-logo {
  font-size: clamp(1.85rem, 7.5vw, 2.5rem);
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.03em;
  color: #e50539;
  line-height: 1;
  text-shadow: 0 2px 12px rgba(229, 5, 57, 0.35);
}

.partner-divider {
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  flex-shrink: 0;
}

.aviator-partner-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.partner-plane {
  display: block;
  width: 40px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(229, 5, 57, 0.3));
}

.aviator-script {
  font-family: 'Kaushan Script', cursive;
  font-size: clamp(1.15rem, 4.8vw, 1.45rem);
  color: #e50539;
  line-height: 1;
  letter-spacing: 0.02em;
}

.official-partners-label {
  margin: 12px 0 0;
  font-size: clamp(0.64rem, 2.6vw, 0.74rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #fff;
  text-transform: uppercase;
}

.brand-progress {
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.brand-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #c90432, #e50539);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(229, 5, 57, 0.55);
}

.branding-disabled {
  display: none !important;
}

.spribe-badge {
  margin: 0 auto;
  width: min(100%, 210px);
  padding: 16px 18px 14px;
  border-radius: 16px;
  background: linear-gradient(165deg, #12301f 0%, #0a1a12 55%, #081410 100%);
  border: 1px solid rgba(88, 190, 102, 0.42);
  text-align: center;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.spribe-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.spribe-dots {
  display: grid;
  grid-template-columns: repeat(4, 5px);
  grid-template-rows: repeat(3, 5px);
  gap: 3px;
  flex-shrink: 0;
}

.spribe-dots span {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5cdb6a;
  box-shadow: 0 0 4px rgba(92, 219, 106, 0.45);
}

.spribe-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.spribe-name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
}

.official-game-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(72, 168, 88, 0.25);
  font-size: 0.7rem;
  font-weight: 600;
  color: #72d67f;
}

.verified-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #28a909;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(40, 169, 9, 0.45);
}

.verified-icon svg {
  width: 12px;
  height: 12px;
}

.since-text {
  margin: 10px 0 0;
  font-size: 0.64rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 900px) {
  .waiting-ui {
    padding: 8px 6px;
  }

  .brand-panel {
    width: min(100%, 280px);
    gap: 10px;
  }

  .partner-logos {
    gap: 12px;
  }

  .partner-divider {
    height: 32px;
  }

  .partner-plane {
    width: 32px;
  }

  .official-partners-label {
    margin-top: 8px;
    letter-spacing: 0.14em;
  }

  .spribe-badge {
    width: min(100%, 180px);
    padding: 10px 12px 8px;
    border-radius: 12px;
  }

  .spribe-header {
    margin-bottom: 8px;
    gap: 8px;
  }

  .spribe-name {
    font-size: 0.92rem;
  }

  .official-game-pill {
    font-size: 0.62rem;
    padding: 4px 8px 4px 10px;
  }

  .verified-icon {
    width: 17px;
    height: 17px;
  }

  .since-text {
    margin-top: 6px;
    font-size: 0.58rem;
  }
}

@media (max-width: 480px) {
  .brand-panel {
    width: min(100%, 240px);
    gap: 8px;
  }

  .ufc-logo {
    font-size: clamp(1.4rem, 6vw, 1.75rem);
  }

  .aviator-script {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
  }

  .spribe-badge {
    width: min(100%, 160px);
    padding: 8px 10px 7px;
  }
}

.no-animations .brand-panel {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .brand-panel {
    animation: none !important;
  }
}
