/* ===== GAME CARD COMPONENT ===== */

/* Base Card */
.game-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--trans-normal);
  overflow: hidden;
  cursor: default;
}
.game-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-card);
  pointer-events: none;
}
.game-card:hover {
  border-color: var(--brasil-verde);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(0, 156, 59, 0.1);
}

/* ---- LIVE State ---- */
.game-card.card-live {
  border-color: rgba(255, 23, 68, 0.35);
  background: linear-gradient(145deg, var(--bg-card), rgba(255, 23, 68, 0.04));
}
.game-card.card-live:hover {
  box-shadow: var(--shadow-glow-live);
}
.game-card.card-live .card-accent-bar {
  background: var(--grad-live);
}

/* ---- SCHEDULED State ---- */
.game-card.card-scheduled {
  border-color: rgba(255, 223, 0, 0.15);
}
.game-card.card-scheduled .card-accent-bar {
  background: linear-gradient(90deg, var(--brasil-amarelo), transparent);
}

/* ---- FINISHED State ---- */
.game-card.card-finished {
  opacity: 0.75;
}
.game-card.card-finished .card-accent-bar {
  background: linear-gradient(90deg, var(--text-muted), transparent);
}

/* Accent bar top of card */
.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* ---- Card Header ---- */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
  margin-top: var(--space-1);
}
.card-league {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.league-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brasil-verde);
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--brasil-verde);
}

/* Status Badge */
.card-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.status-live {
  background: var(--status-live-bg);
  color: var(--status-live);
  border: 1px solid rgba(255, 23, 68, 0.3);
  animation: badge-pulse 2s ease-in-out infinite;
}
.status-live .status-icon { animation: spin-slow 3s linear infinite; }
.status-scheduled {
  background: var(--status-sched-bg);
  color: var(--brasil-amarelo);
  border: 1px solid rgba(255, 223, 0, 0.25);
}
.status-finished {
  background: var(--status-fin-bg);
  color: var(--status-finished);
  border: 1px solid rgba(139, 148, 158, 0.2);
}

/* ---- Match Body ---- */
.match-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
  margin: var(--space-4) 0;
}

/* Team Block */
.team-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
}
.team-block.team-away { align-items: center; }

.team-crest {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}
.team-crest img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.team-crest .crest-fallback {
  font-size: 1.5rem;
  line-height: 1;
}
.crest-fallback-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: var(--text-inverse);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
}
.team-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.3;
  max-width: 110px;
  word-break: break-word;
}

/* Center Score / VS Area */
.match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  flex-shrink: 0;
}

.score-display {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.score-digit { min-width: 32px; text-align: center; }
.score-sep {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin-top: -2px;
}

.vs-display {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Match time */
.match-time {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}
.match-time.live-time {
  color: var(--status-live);
  font-weight: 700;
}
.match-time .minute-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--status-live-bg);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 23, 68, 0.2);
}

/* ---- Card Footer ---- */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.card-venue {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  overflow: hidden;
}
.venue-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.card-kickoff {
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ---- Skeleton Loader ---- */
.game-card.skeleton {
  min-height: 200px;
  background: var(--bg-card);
  border-color: var(--border-subtle);
  animation: shimmer 1.5s ease-in-out infinite;
  cursor: default;
}
.game-card.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.04) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer-sweep 1.5s ease-in-out infinite;
}

/* ---- Live Refresh indicator ---- */
.realtime-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-green);
  letter-spacing: 0.5px;
  opacity: 0.8;
}
.realtime-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse-live 1.5s ease-in-out infinite;
}

/* ── NOTÍCIAS (AdSense Boost) ── */
.news-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  transition: all var(--trans-normal);
  border: 1px solid var(--border-subtle);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--brasil-verde);
}

.news-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-secondary);
}

.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb img {
  transform: scale(1.05);
}

.news-content {
  padding: 1.25rem;
}

.news-date {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.skeleton-news {
  height: 320px;
  background: var(--bg-card);
  border-color: var(--border-subtle);
  animation: shimmer 1.5s ease-in-out infinite;
}

.view-all {
  font-size: 0.85rem;
  color: var(--brasil-amarelo);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--brasil-verde);
}

@media (max-width: 768px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

