/* ==========================================================
   BLOG DO FLAMENGO - ESTILOS VISUAIS
   Cores Oficiais e Atmosfera Rubro-Negra
   ========================================================== */

:root {
  --primary-red: #C8102E;
  --primary-red-hover: #E51A33;
  --primary-red-dark: #99001A;
  --primary-gold: #F5A623;
  --bg-dark: #0D0F12;
  --bg-card: #161A22;
  --bg-card-hover: #1E232E;
  --bg-border: #2A303C;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --white: #FFFFFF;
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 30px rgba(200, 16, 46, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
}

body {
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Badges & Tags */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.badge-live {
  background-color: var(--primary-red);
  color: var(--white);
  animation: pulseRed 2s infinite;
}

.badge-accent {
  background: linear-gradient(135deg, var(--primary-red), #E51A33);
  color: var(--white);
  margin-bottom: 12px;
}

.category-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background-color: rgba(200, 16, 46, 0.2);
  color: #FF5A70;
  border: 1px solid rgba(200, 16, 46, 0.4);
}

@keyframes pulseRed {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* Top Bar */
.top-bar {
  background-color: #050608;
  border-bottom: 1px solid var(--bg-border);
  font-size: 0.85rem;
  padding: 8px 0;
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-content p {
  color: var(--text-muted);
}

.top-bar-link {
  color: var(--primary-red-hover);
  text-decoration: none;
  font-weight: 600;
}

.top-bar-link:hover {
  text-decoration: underline;
}

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(13, 15, 18, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bg-border);
  padding: 14px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-shield {
  background: linear-gradient(135deg, var(--primary-red), #99001A);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 2px solid #FFFFFF22;
  box-shadow: 0 0 15px rgba(200, 16, 46, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--white);
  line-height: 1.1;
}

.brand-title span {
  color: var(--primary-red);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-red);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 50px 0 40px;
  background: radial-gradient(circle at top right, rgba(200, 16, 46, 0.15), transparent 60%);
  border-bottom: 1px solid var(--bg-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 12px;
  color: var(--white);
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
  max-width: 540px;
}

/* Match Highlight Box */
.match-highlight-box {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.match-highlight-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-red), #F5A623);
}

.match-championship {
  text-align: center;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary-gold);
  margin-bottom: 18px;
}

.match-duel {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-bottom: 20px;
}

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

.team-badge {
  font-size: 2.5rem;
  line-height: 1;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
}

.duel-vs {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--primary-red);
  font-weight: 700;
}

.match-meta-info {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Countdown */
.countdown-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.countdown-unit {
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
  min-width: 65px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.countdown-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.countdown-separator {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-red);
}

/* Featured Article Side Card */
.hero-featured-news {
  height: 100%;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.featured-card:hover {
  border-color: rgba(200, 16, 46, 0.5);
  transform: translateY(-4px);
}

.featured-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: #222;
}

.featured-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.featured-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.featured-card-excerpt {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  flex-grow: 1;
}

.read-btn {
  background-color: transparent;
  color: var(--primary-red-hover);
  border: 1px solid var(--primary-red);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  align-self: flex-start;
  transition: var(--transition);
}

.read-btn:hover {
  background-color: var(--primary-red);
  color: var(--white);
}

/* Sections Common */
.section-spacing {
  padding: 60px 0;
}

.section-header {
  margin-bottom: 35px;
}

.sub-header-tag {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--white);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 0.95rem;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 20px;
}

.match-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.match-card:hover {
  border-color: rgba(200, 16, 46, 0.4);
  background-color: var(--bg-card-hover);
}

.match-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 0.75rem;
  font-weight: 700;
}

.competition-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--primary-gold);
}

.round-info {
  color: var(--text-dim);
}

.teams-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.team-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 40%;
  text-align: center;
}

.team-box .team-flag {
  font-size: 2rem;
}

.team-box .name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}

.versus-badge {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dim);
}

.match-footer-info {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.match-footer-info .broadcast {
  color: var(--primary-gold);
  font-weight: 600;
}

/* News Section */
.news-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--primary-red);
}

.filter-btn.active {
  background-color: var(--primary-red);
  color: var(--white);
  border-color: var(--primary-red);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 16, 46, 0.4);
}

.news-card-img-wrap {
  position: relative;
  height: 180px;
  background-color: #20242c;
  overflow: hidden;
}

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

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

.news-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 10px 0;
  color: var(--white);
}

.news-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}

.card-footer-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.read-link {
  color: var(--primary-red-hover);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.read-link:hover {
  text-decoration: underline;
}

/* Guide Section */
.guide-box {
  background: linear-gradient(135deg, #1B212D 0%, #12151C 100%);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  padding: 35px;
}

.guide-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 8px;
}

.guide-box > p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.channel-card {
  background: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary-red);
}

.channel-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--primary-gold);
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
}

.channel-card h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 6px;
}

.channel-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary-red);
}

.modal-body {
  padding: 30px;
}

.modal-header-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 16px;
}

.modal-meta {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--bg-border);
}

.modal-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.modal-content-text p {
  margin-bottom: 16px;
  color: #D1D5DB;
  font-size: 1rem;
  line-height: 1.7;
}

/* Footer */
.main-footer {
  background-color: #07080A;
  border-top: 1px solid var(--bg-border);
  padding: 50px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  max-width: 360px;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-red-hover);
  padding-left: 4px;
}

.motto-quote {
  font-style: italic;
  color: var(--primary-gold);
  border-left: 3px solid var(--primary-red);
  padding-left: 12px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-dark);
    padding: 20px;
    border-bottom: 1px solid var(--bg-border);
    gap: 16px;
  }

  .nav-menu.open {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .countdown-unit {
    min-width: 50px;
    padding: 8px 10px;
  }

  .countdown-number {
    font-size: 1.4rem;
  }
}
