/* ============================================================
   STYLE.CSS — Placar dos Times
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Rajdhani:wght@400;600;700&family=Oswald:wght@400;600;700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:      #F5C518;
  --gold2:     #FFE066;
  --blue-deep: #0a1628;
  --blue-mid:  #0d2b6b;
  --blue-bright:#1a4fc4;
  --white:     #ffffff;
  --white-80:  rgba(255,255,255,0.85);
  --white-20:  rgba(255,255,255,0.12);
  --shadow:    0 4px 24px rgba(0,0,0,0.55);
  --radius-pill: 50px;
  --radius-card: 16px;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  color: var(--white);
  background: #050d1a;
}

/* ── Background image ─────────────────────────────────────── */
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('img/PLANO\ DE\ FUNDO.png') center/cover no-repeat;
  filter: brightness(0.85);
}

/* dark overlay for readability */
.bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(5,13,26,0.55) 0%,
    rgba(10,22,40,0.30) 50%,
    rgba(5,13,26,0.55) 100%);
}

/* ── Video Overlay ────────────────────────────────────────── */
.video-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}

.video-overlay.hidden { display: none; }

#goal-video {
  width: 100%; height: 100%;
  object-fit: cover;
}

#video-label {
  position: absolute; bottom: 40px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.2rem;
  color: var(--gold);
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
  letter-spacing: 3px;
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 30px 0;
  gap: 10px;
}

.team-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

#brand-left  { align-items: flex-start; }
#brand-right { align-items: flex-end; }

.team-brand img.team-photo {
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.7));
  animation: floatIn 0.8s ease both;
}

.team-brand img.team-logo {
  height: 370px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}

.title-block {
  text-align: center;
}

.main-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: 6px;
  line-height: 1;
  color: var(--white);
  text-shadow:
    0 0 30px rgba(30,100,255,0.6),
    0 4px 20px rgba(0,0,0,0.8);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from { text-shadow: 0 0 20px rgba(30,100,255,0.4), 0 4px 20px rgba(0,0,0,0.8); }
  to   { text-shadow: 0 0 50px rgba(30,160,255,0.9), 0 4px 20px rgba(0,0,0,0.8); }
}

.last-update {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-80);
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ── Scoreboard layout ────────────────────────────────────── */
.scoreboard {
  position: relative; z-index: 10;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  gap: 0 20px;
  padding: 10px 30px 16px;
  height: calc(100vh - 250px);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  display: flex; align-items: stretch; justify-content: center;
}

.divider-line {
  width: 2px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(255,255,255,0.6) 20%,
    rgba(255,255,255,0.9) 50%,
    rgba(255,255,255,0.6) 80%,
    transparent 100%);
  box-shadow: 0 0 10px rgba(100,180,255,0.5);
}

/* ── Team Section ─────────────────────────────────────────── */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Total Box ────────────────────────────────────────────── */
.team-total-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-pill);
  padding: 10px 28px;
  box-shadow: var(--shadow), 0 0 20px rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(6px);
  align-self: center;
  min-width: 260px;
  max-width: 360px;
  width: 70%;
  transition: transform 0.3s ease;
}

.team-total-box:hover { transform: scale(1.02); }

.team-rank-badge {
  font-family: 'Oswald', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--blue-mid);
  text-transform: uppercase;
}

.team-total {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--blue-deep);
  letter-spacing: 1px;
}

/* First place highlight */
.team-section.first-place .team-total-box {
  background: linear-gradient(135deg, #fffbe6 0%, #fff3a0 50%, #ffe566 100%);
  border-color: var(--gold);
  box-shadow: var(--shadow), 0 0 30px rgba(245,197,24,0.5);
}

.team-section.first-place .team-total {
  color: #7a5100;
}

.team-section.first-place .team-rank-badge {
  color: #8a5e00;
}

/* ── Sellers Grid ─────────────────────────────────────────── */
.sellers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 colunas iguais — mude para ex: 1fr para 1 coluna */
  gap: 50px 10px;
  overflow-y: auto;
  padding-right: 4px;
  flex: 1;
}

/* scrollbar */
.sellers-grid::-webkit-scrollbar { width: px; }
.sellers-grid::-webkit-scrollbar-track { background: transparent; }
.sellers-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 4px; }

/* ── Seller Card ──────────────────────────────────────────── */
.seller-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white-20);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  /* Reduza o terceiro número (espaço de baixo) de 10px para 4px */
  padding: 1px 14px 4px 6px; 
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
  animation: slideIn 0.5s ease both;
}

.seller-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* Gold glow if goal reached */
.seller-card.goal-reached {
  border-color: var(--gold);
  box-shadow: 0 0 18px rgba(245,197,24,0.6), 0 2px 12px rgba(0,0,0,0.3);
  background: rgba(245,197,24,0.15);
  animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 12px rgba(245,197,24,0.5), 0 2px 12px rgba(0,0,0,0.3); }
  50%       { box-shadow: 0 0 28px rgba(245,197,24,0.9), 0 2px 12px rgba(0,0,0,0.3); }
}

.seller-photo {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.seller-card.goal-reached .seller-photo {
  border-color: var(--gold);
  box-shadow: 0 0 10px rgba(245,197,24,0.7);
}

.seller-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  
}

.seller-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white-80);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seller-value {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.seller-card.goal-reached .seller-value {
  color: var(--gold2);
}

/* rank indicator */
.seller-rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* value change flash */
.value-flash {
  animation: flashGreen 0.8s ease;
}

@keyframes flashGreen {
  0%   { color: #4eff91; transform: scale(1.15); }
  100% { color: inherit; transform: scale(1); }
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 1100px) {
  .scoreboard { padding: 8px 16px 12px; }
  .header { padding: 8px 16px 0; }
  .seller-photo { width: 44px; height: 44px; }
}

@media (max-width: 800px) {
  .scoreboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto 2px auto;
    height: auto;
    overflow-y: auto;
  }
  .divider { height: 2px; }
  .divider-line { width: 100%; height: 2px; }
  .header { grid-template-columns: 1fr; text-align: center; }
  .team-brand { display: none; }
  .sellers-grid { grid-template-columns: 1fr; }
}
 