/* Zebra Goleada - Premium Light Theme (Baseado em Mockup) */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-body: #cecece;
  /* Cor de fundo externa da tela (imitando o ambiente do app no print) */
  --bg-app: #f4f5f0;
  /* Fundo branco-creme do celular */
  --card-match: #dbe2c4;
  /* Verde pastel suave do card do jogo */
  --card-stats: #ffffff;
  /* Fundo do accordion de stats */
  --text-main: #1d1e18;
  --text-muted: #8b8e85;
  --text-light: #ffffff;
  --btn-dark: #222222;
  /* Botão ativo do menu */
  --btn-light: #eaeaeb;
  /* Botão inativo */
  --bar-home: #c8b7d6;
  /* Barra roxa clara */
  --bar-away: #c0cba4;
  /* Barra verde clara */
  --accent: #1d1e18;
  --border-soft: rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-body);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1rem;
}

/* Emulando a "tela do celular" para conter a UI elegantemente */
.app-container {
  background: var(--bg-app);
  width: 100%;
  max-width: 440px;
  min-height: 90vh;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 2rem 1.5rem;
  position: relative;
}

/* Header falso para caber no mock */
.header-top {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.back-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
  margin-right: 1rem;
}

.back-btn svg {
  width: 20px;
  height: 20px;
}

.header-title h1 {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.header-title p {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  margin-top: 0.1rem;
}

.acoes-globais {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.acoes-globais .btn {
  background: var(--btn-light);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.acoes-globais .btn:hover {
  opacity: 0.8;
}

.acoes-globais .btn-primary {
  background: var(--btn-dark);
  color: #fff;
}

.acoes-globais .btn-danger {
  background: #f85149;
  color: #fff;
}

/* Lista de Jogos */
.lista-jogos {
  list-style: none;
}

/* O Card do Match (Verde Pastel) */
.jogo-card-premium {
  background: var(--card-match);
  border-radius: 30px;
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
  /* Menor pq as stats descem embaixo */
  cursor: pointer;
  transition: transform 0.2s;
}

.jogo-card-premium:active {
  transform: scale(0.98);
}

.league-header {
  text-align: center;
  margin-bottom: 0.8rem;
}

.league-header span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.match-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.team-logo-wrapper {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo-wrapper img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.time-pill-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.time-pill {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.time-pill--live {
  border-color: rgba(0, 0, 0, 0.12);
}

/* Barra abaixo do minuto: animação de “tempo rolando” (1 minuto até o próximo refresh) */
.time-progress {
  width: 100%;
  max-width: 4rem;
  height: 3px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.time-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent, #22c55e) 0%, rgba(34, 197, 94, 0.6) 100%);
  border-radius: 2px;
  animation: time-roll 60s linear forwards;
}

@keyframes time-roll {
  from { width: 0%; }
  to { width: 100%; }
}

.match-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.team-info.mandante {
  text-align: left;
}

.team-info.visitante {
  text-align: right;
}

.team-name {
  font-weight: 500;
  font-size: 0.95rem;
}

.team-sub {
  font-size: 0.75rem;
  color: rgba(0, 0, 0, 0.5);
  margin-top: 0.2rem;
}

.score-display {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -2px;
  color: var(--text-main);
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.score-display span.divider {
  font-size: 2.5rem;
  transform: translateY(-4px);
  color: rgba(0, 0, 0, 0.5);
}

.odds-row {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.odd-pill {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.odd-pill strong {
  color: var(--text-main);
  margin-left: 0.3rem;
  font-weight: 600;
}

/* Accordion de Estatísticas (O Bottom Card Branco) */
.stats-inline-container {
  background: var(--card-stats);
  border-radius: 30px;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  transform: translateY(-20px);
}

.stats-inline-container.open {
  padding: 1.5rem;
  max-height: 1200px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

/* Abas fictícias de Stats */
.stats-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.stats-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: var(--btn-light);
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: 'Outfit';
  white-space: nowrap;
}

.tab-btn.active {
  background: var(--btn-dark);
  color: var(--text-light);
}

/* Linha de Estatística (Row) */
.stat-row {
  margin-bottom: 1.1rem;
}

.stat-values {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 0.5rem;
}

.stat-num {
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
  text-align: center;
  flex: 1;
}

/* BARRAS DE PROGRESSO DIVIDIDAS */
.stat-bars {
  display: flex;
  gap: 0.4rem;
  height: 6px;
  justify-content: space-between;
}

.bar-wrapper {
  background: var(--btn-light);
  flex: 1;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.bar-wrapper.mandante-wrapper {
  justify-content: flex-end;
  /* Barra cresce da direita pra esquerda no Mandante */
}

.bar-wrapper.visitante-wrapper {
  justify-content: flex-start;
  /* Barra cresce da esquerda pra direita no Visitante */
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
}

.bar-fill.purple {
  background: var(--bar-home);
}

.bar-fill.green {
  background: var(--bar-away);
}

/* Detalhes extras e utilitários */
.analise-pendente {
  text-align: center;
  margin-top: 1rem;
  padding-bottom: 1.5rem;
}

.btn-analisar {
  background: var(--text-main);
  color: var(--text-light);
  text-decoration: none;
  padding: 0.6rem 1.25rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
}

.analise-box {
  background: #fdfdfd;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.analise-box strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.analise-box.bom strong {
  color: #3fb950;
}

.analise-box.ruim strong {
  color: #f85149;
}

.analise-box.neutro strong {
  color: #d29922;
}

/* Para a listagem de jogos agendados / outros */
.section-title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 1.5rem 0 1rem;
}

.msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.msg.sucesso {
  background: rgba(192, 203, 164, 0.4);
  color: #4b5832;
}

.msg.erro {
  background: rgba(248, 81, 73, 0.1);
  color: #f85149;
}