/* ==========================================================================
   ESPORTE 7 - PORTAL DESPORTIVO PREMIUM (CSS CORE)
   ========================================================================== */

/* 1. VARIÁVEIS GLOBAIS E SISTEMA DE DESIGN
   -------------------------------------------------------------------------- */
:root {
  /* Paleta Principal */
  --e7-red: #E60000;
  --e7-red-dark: #B30000;
  --e7-red-light: #FF3333;
  --e7-navy: #0A0F1D;
  --e7-dark-card: #141B2D;
  --e7-gold: #FFC700;
  
  /* Neutros e Superfícies */
  --e7-bg: #F4F6F9;
  --e7-surface: #FFFFFF;
  --e7-border: #E2E8F0;
  --e7-text: #1E293B;
  --e7-text-muted: #64748B;
  --e7-text-light: #94A3B8;

  /* Tipografia */
  --e7-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --e7-font-heading: 'Roboto Condensed', 'Oswald', sans-serif;

  /* Elevação e Transições */
  --e7-shadow-sm: 0 2px 4px rgba(10, 15, 29, 0.04);
  --e7-shadow-md: 0 6px 16px rgba(10, 15, 29, 0.08);
  --e7-shadow-lg: 0 12px 28px rgba(10, 15, 29, 0.14);
  --e7-radius: 8px;
  --e7-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. RESET E ESTILOS BASE
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  background-color: var(--e7-bg);
  color: var(--e7-text);
  font-family: var(--e7-font-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--e7-font-heading);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px 0;
  color: var(--e7-navy);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--e7-transition);
}

a:hover {
  color: var(--e7-red);
}

/* 3. BARRA DE BLOCO DE JOGOS / PLACAR (SCOREBOARD TICKER)
   -------------------------------------------------------------------------- */
.e7-scoreboard-bar {
  background-color: var(--e7-navy);
  padding: 10px 0;
  border-bottom: 2px solid var(--e7-red);
  overflow-x: auto;
  white-space: nowrap;
}

.e7-scoreboard-container {
  display: flex;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.e7-match-card {
  background: var(--e7-dark-card);
  color: #FFF;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

.e7-match-card .team {
  font-weight: 600;
}

.e7-match-card .score {
  background: var(--e7-red);
  color: #FFF;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 800;
}

/* 4. BREAKING NEWS TICKER
   -------------------------------------------------------------------------- */
.e7-ticker-wrapper {
  display: flex;
  align-items: center;
  background: var(--e7-surface);
  border: 1px solid var(--e7-border);
  border-radius: var(--e7-radius);
  margin: 20px auto;
  max-width: 1200px;
  overflow: hidden;
  box-shadow: var(--e7-shadow-sm);
}

.e7-ticker-badge {
  background: var(--e7-red);
  color: #FFFFFF;
  font-family: var(--e7-font-heading);
  font-weight: 800;
  text-transform: uppercase;
  padding: 10px 16px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.e7-ticker-content {
  padding: 0 16px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--e7-navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 5. BADGES E TAGS DE CATEGORIA
   -------------------------------------------------------------------------- */
.e7-badge {
  display: inline-block;
  background-color: var(--e7-red);
  color: #FFFFFF;
  font-family: var(--e7-font-heading);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.e7-badge.futebol { background-color: #00875A; }
.e7-badge.f1 { background-color: #E10600; }
.e7-badge.basquete { background-color: #FF5500; }
.e7-badge.mma { background-color: #111111; }

/* 6. HERO GRID - MOSAICO DA PÁGINA INICIAL
   -------------------------------------------------------------------------- */
.e7-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 30px auto;
}

.e7-hero-item {
  position: relative;
  border-radius: var(--e7-radius);
  overflow: hidden;
  box-shadow: var(--e7-shadow-md);
  display: flex;
  align-items: flex-end;
}

.e7-hero-item.main {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.e7-hero-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.e7-hero-item:hover img {
  transform: scale(1.05);
}

.e7-hero-overlay {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent 0%, rgba(10, 15, 29, 0.95) 85%);
  padding: 24px;
  width: 100%;
  color: #FFFFFF;
}

.e7-hero-item.main .e7-hero-overlay h2 {
  font-size: 2.1rem;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.e7-hero-overlay h3 {
  font-size: 1.25rem;
  color: #FFFFFF;
}

/* 7. CARDS DE NOTÍCIAS PADRÃO (GRID DE CONTEÚDO)
   -------------------------------------------------------------------------- */
.e7-posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.e7-card {
  background: var(--e7-surface);
  border-radius: var(--e7-radius);
  border: 1px solid var(--e7-border);
  box-shadow: var(--e7-shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--e7-transition);
}

.e7-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--e7-shadow-md);
  border-color: rgba(230, 0, 0, 0.3);
}

.e7-card-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background-color: var(--e7-border);
}

.e7-card-thumb img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.e7-card:hover .e7-card-thumb img {
  transform: scale(1.06);
}

.e7-card-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.e7-card-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.e7-card-excerpt {
  font-size: 0.9rem;
  color: var(--e7-text-muted);
  margin-bottom: 14px;
}

.e7-card-meta {
  margin-top: auto;
  font-size: 0.78rem;
  color: var(--e7-text-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--e7-border);
  padding-top: 10px;
}

/* 8. WIDGET "MAIS LIDAS" DA SIDEBAR
   -------------------------------------------------------------------------- */
.e7-widget-popular {
  background: var(--e7-surface);
  border-radius: var(--e7-radius);
  padding: 20px;
  border: 1px solid var(--e7-border);
  box-shadow: var(--e7-shadow-sm);
}

.e7-widget-title {
  font-size: 1.2rem;
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--e7-border);
}

.e7-widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 50px; height: 2px;
  background: var(--e7-red);
}

.e7-popular-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.e7-popular-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--e7-border);
}

.e7-popular-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.e7-popular-number {
  font-family: var(--e7-font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--e7-red);
  line-height: 1;
  min-width: 30px;
}

.e7-popular-text {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

/* 9. PÁGINA DO ARTIGO (SINGLE POST)
   -------------------------------------------------------------------------- */
.e7-article-container {
  background: var(--e7-surface);
  border-radius: var(--e7-radius);
  padding: 36px;
  border: 1px solid var(--e7-border);
  box-shadow: var(--e7-shadow-sm);
  max-width: 840px;
  margin: 0 auto;
}

.e7-article-header {
  margin-bottom: 24px;
}

.e7-article-title {
  font-size: 2.6rem;
  margin-top: 10px;
  color: var(--e7-navy);
}

.e7-article-lead {
  font-size: 1.25rem;
  color: var(--e7-text-muted);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 20px;
}

.e7-article-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 22px;
  color: #2D3748;
}

.e7-article-content blockquote {
  border-left: 4px solid var(--e7-red);
  background: #FFF5F5;
  padding: 16px 20px;
  margin: 24px 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--e7-navy);
}

/* 10. RESPONSIVIDADE (MOBILE-FIRST BREAKPOINTS)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .e7-hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  
  .e7-hero-item.main {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .e7-hero-item {
    min-height: 200px;
  }
}

@media (max-width: 600px) {
  .e7-article-container {
    padding: 20px;
  }
  
  .e7-article-title {
    font-size: 1.8rem;
  }

  .e7-ticker-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}