/* ==========================================================================
   Reduz Futebol - Design System & Folha de Estilos Premium
   Otimizado para Alta Performance, Core Web Vitals e Acessibilidade (WCAG 2.1)
   ========================================================================== */

:root {
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.25);
  --primary-dark: #047857;
  --primary-light: #34d399;
  --accent-gold: #f59e0b;
  --accent-blue: #3b82f6;
  --accent-red: #ef4444;

  --bg-body: #0b0f17;
  --bg-surface: #131b2a;
  --bg-surface-elevated: #1a2436;
  --bg-surface-hover: #223048;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-subtle: #243044;
  --border-active: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.6);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1140px;
  --max-w-prose: 820px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-prose {
  max-width: var(--max-w-prose);
}

/* Top Institution Bar */
.top-institutional-bar {
  background: #06090e;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

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

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

.top-bar-contact a {
  color: var(--accent-gold);
  font-weight: 500;
}

.top-bar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
}

.top-bar-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.top-bar-links a:hover {
  color: var(--text-main);
}

/* Main Header */
header.site-header {
  background: rgba(19, 27, 42, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.85rem 0;
}

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

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-symbol {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 0 15px var(--primary-glow);
}

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

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-light);
  letter-spacing: 1px;
  font-weight: 600;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--text-main);
  text-decoration: none;
}

/* Breadcrumbs */
.breadcrumb-nav {
  padding: 1rem 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
}

.breadcrumb-list a {
  color: var(--primary-light);
  text-decoration: none;
}

.breadcrumb-list span.sep {
  color: var(--border-subtle);
}

.breadcrumb-list .current {
  color: var(--text-main);
  font-weight: 600;
}

/* Social Share Bar */
.share-bar-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.share-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.share-callout .icon-speaker {
  font-size: 1.5rem;
}

.share-callout-text h4 {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 700;
}

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

.share-buttons {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #fff;
}

.btn-share:hover {
  transform: translateY(-2px);
  text-decoration: none;
  filter: brightness(1.1);
}

.btn-whatsapp { background: #25d366; }
.btn-facebook { background: #1877f2; }
.btn-twitter { background: #000000; border: 1px solid #333; }
.btn-copy { background: #374151; color: #f3f4f6; }

/* Hero / Header do Time */
.club-hero {
  background: linear-gradient(135deg, var(--bg-surface) 0%, #172338 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.club-crest-large {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: var(--bg-surface-elevated);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.club-hero-details h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.club-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-campo { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-salao { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-city { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }

/* Quick Meta Specs */
.quick-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.spec-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.spec-box:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.spec-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.spec-data {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.35rem;
}

/* Article Body Typography (1200 - 1500 words) */
.article-content {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-md);
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
  color: #cbd5e1;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Figures e Imagens Intercaladas com Legenda */
.media-figure {
  margin: 2.5rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0d131f;
  box-shadow: var(--shadow-sm);
}

.media-figure-content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, #101826 0%, #0d131f 100%);
}

.media-figure svg {
  max-width: 100%;
  height: auto;
  display: block;
}

.media-caption {
  padding: 0.85rem 1.25rem;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.media-caption strong {
  color: var(--text-main);
}

.media-credit {
  font-size: 0.75rem;
  color: var(--primary-light);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Squad / Elenco Grid */
.squad-section {
  margin: 2.5rem 0;
}

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

.squad-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.squad-num {
  width: 34px;
  height: 34px;
  background: var(--border-subtle);
  color: var(--text-main);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.squad-info {
  display: flex;
  flex-direction: column;
}

.squad-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.squad-role {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Cluster de Links Regionais & Secundários */
.cluster-container {
  background: linear-gradient(145deg, var(--bg-surface), #152236);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-sm);
}

/* Redes Sociais e Canais Oficiais dos Clubes */
.social-channels-card {
  background: linear-gradient(135deg, rgba(26, 36, 54, 0.9) 0%, rgba(19, 27, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-sm);
}

.social-channels-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.social-channels-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.social-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.btn-social-channel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-social-channel:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  text-decoration: none;
  background: var(--bg-surface-hover);
}

.btn-social-channel .social-icon {
  font-size: 1.25rem;
}

.btn-social-instagram:hover { border-color: #e1306c; color: #f43f5e; }
.btn-social-facebook:hover { border-color: #1877f2; color: #60a5fa; }
.btn-social-youtube:hover { border-color: #ef4444; color: #f87171; }
.btn-social-community:hover { border-color: #10b981; color: #34d399; }

.cluster-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cluster-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cluster-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.cluster-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.cluster-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  text-decoration: none;
}

.cluster-card-badge {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.cluster-card-text h5 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
}

.cluster-card-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Footer Completo e Institucional */
footer.site-footer {
  margin-top: auto;
  background: #06090e;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary-light);
}

.footer-bottom-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Cookie Notice Bar */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(11, 15, 23, 0.97);
  border-top: 1px solid var(--border-subtle);
  padding: 1rem 1.5rem;
  z-index: 999;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.cookie-content {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-content a {
  color: var(--primary-light);
  text-decoration: underline;
}

.btn-cookie-accept {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-cookie-accept:hover {
  background: var(--primary-dark);
}

/* Responsividade */
@media (max-width: 900px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .club-hero {
    flex-direction: column;
    text-align: center;
    padding: 1.75rem;
    gap: 1.25rem;
  }
  .club-badges-row {
    justify-content: center;
  }
  .share-bar-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .share-buttons {
    width: 100%;
    justify-content: flex-start;
  }
  .article-content {
    padding: 1.5rem;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}


/* ==========================================================================
   Componentes Especiais: Vitrine de Mantos (Camisas), Escudos e Vídeos YouTube
   ========================================================================== */

/* Vitrine de Camisas Oficiais */
.jerseys-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.jersey-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.jersey-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.jersey-card-header {
  margin-bottom: 1rem;
  width: 100%;
}

.jersey-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.jersey-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.jersey-svg-container {
  width: 100%;
  max-width: 240px;
  margin: 0.75rem auto;
}

.jersey-svg-container svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.jersey-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
}

/* Seção de Vídeos do YouTube */
.video-section-box {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(11, 15, 23, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.video-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.video-icon-badge {
  background: #dc2626;
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.video-section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.video-embed-responsive {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Proporção 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #000;
  box-shadow: var(--shadow-sm);
}

.video-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn-youtube-official {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dc2626;
  color: #ffffff !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
  text-decoration: none !important;
}

.btn-youtube-official:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

/* Escudos Oficiais com Acabamento Refinado */
.crest-presentation-card {
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  margin: 1.5rem 0;
}

.crest-svg-wrapper {
  max-width: 220px;
  margin: 0 auto;
}

.crest-svg-wrapper svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}
