/* =======================================================
   FRC SPORTS — Base, Tokens e Utilitários
   ======================================================= */

/* ---- Design tokens (fáceis de ajustar) ---- */
:root{
  --frc-bg:         #111111;
  --frc-bg-alt:     #f7f9fc;
  --frc-text:       #212529;
  --frc-text-muted: #6c757d;
  --frc-card-bg:    #fff;
  --frc-dark:       #1e1e1e;
  --frc-accent:     #0d6efd;   /* azul bootstrap/logotipo */
  --frc-accent-2:   #14a77d;   /* verde secundário */
  --frc-warn:       #ffcc00;

  --frc-radius-sm:  .5rem;
  --frc-radius-md:  .75rem;

  --frc-shadow-sm:  0 4px 16px rgba(0, 0, 0,.15);
  --frc-shadow-md:  0 8px 30px rgba(0, 0, 0,.10);

  --frc-space-1:    .5rem;
  --frc-space-2:    1rem;
  --frc-space-3:    1.5rem;
}

/* ---- Utilitários genéricos (combináveis) ---- */
.u-rounded-sm   { border-radius: var(--frc-radius-sm); }
.u-rounded-md   { border-radius: var(--frc-radius-md); }
.u-shadow       { box-shadow: var(--frc-shadow-sm); }
.u-shadow-lg    { box-shadow: var(--frc-shadow-md); }
.u-obj-cover    { object-fit: cover; }
.u-obj-contain  { object-fit: contain; }
.u-pos-center   { object-position: 50% 50% !important; }
.u-pos-top      { object-position: 50% 12% !important; }
.u-pos-lower    { object-position: 50% 35% !important; }
.u-focus-ring:focus-visible { outline: 3px solid var(--frc-accent); outline-offset: 2px; }
.xsmall         { font-size: .8rem; }

/* =======================================================
   Tipografia e Conteúdo Editorial
   ======================================================= */
.article{
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: var(--frc-text);
}
.article-header{
  border-bottom: none;
  padding-bottom: 0;
}
.article-title{
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.prose{
  font-family: Georgia, serif;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--frc-text);
}
.prose p{ margin: 0 0 1.5rem; }

/* =======================================================
   Imagens (Hero, Centralizada, Legendas)
   ======================================================= */
.article-hero{ margin: 0; overflow: hidden; }
.article-hero-img{
  display: block; width: 100%; height: auto; max-height: 600px;
  object-fit: cover; object-position: 50% 20%;
  border-radius: var(--frc-radius-md);
  box-shadow: var(--frc-shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Centro com moldura do site (ex.: página de notícia com imagem destacada) */
.image-center{
  display: flex; justify-content: center; align-items: center;
  min-height: calc(100vh - 120px);
  background-color: var(--bs-body-bg, #f8f9fa);
  padding: var(--frc-space-2); text-align: center;
}
.image-center img{
  max-width: 50%; height: auto;
  object-fit: contain;
  border-radius: var(--frc-radius-md);
  box-shadow: var(--frc-shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.image-center img:hover{
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

/* Legendas (uma única definição, reaproveitada) */
.image-caption{
  font-family: var(--bs-body-font-family, "Roboto", sans-serif);
  font-size: 0.95rem;
  color: #555;
  margin-top: .75rem;
  text-align: center;
  line-height: 1.4;
}

/* =======================================================
   Sidebar de Posições
   ======================================================= */
.sidebar-positions{
  background-color: var(--frc-dark);
  border-radius: 8px; padding: 15px; color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  font-family: "Roboto", Arial, sans-serif;
}
.sidebar-positions .card-header,
.sidebar-positions h5{
  font-size: 1.1rem; font-weight: 600; color: var(--frc-accent);
  margin-bottom: 12px; border-bottom: 2px solid var(--frc-accent);
  padding-bottom: 5px;
}
.sidebar-positions ul{ list-style: none; margin: 0; padding: 0; }
.sidebar-positions li{ margin-bottom: 6px; }
.sidebar-positions a{
  display: block; background: #2c2c2c; color: #d9d9d9;
  text-decoration: none; padding: 8px 10px; border-radius: 6px;
  font-size: .95rem; transition: all .2s ease;
}
.sidebar-positions a:hover{
  background: var(--frc-accent); color: #fff; transform: translateX(3px);
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
}
.sidebar-positions a:active{ background: #0056b3; }

/* =======================================================
   Hero / Seções / CTA
   ======================================================= */
.hero-frc{
  position: relative; min-height: clamp(60vh, 72vh, 88vh); overflow: hidden;
}
.hero-frc .hero-bg{
  position: absolute; inset: 0;
  background: center/cover no-repeat url("/upload/hero-futebol.jpg");
  transform: scale(1.02); will-change: transform;
}
.hero-frc .hero-overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(0,0,0,.35), transparent 40%),
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65));
}
.hero-frc .container{ position: relative; z-index: 2; }

.section-frc{ background: var(--frc-bg); }
.section-frc-alt{
  background: linear-gradient(180deg, var(--frc-bg-alt) 0%, #ffffff 100%);
}

.cta-frc{
  position: relative;
  background: linear-gradient(120deg, rgba(6,103,208,.85), rgba(20,167,125,.85));
  isolation: isolate;
}
.cta-frc .cta-overlay{
  position: absolute; inset: 0; z-index: -1;
  background: url("/upload/pattern-field.svg") center/cover no-repeat;
  mix-blend-mode: overlay; opacity: .2;
}

/* =======================================================
   Acessibilidade e pequenos ajustes
   ======================================================= */
:focus-visible{ outline: 3px solid var(--frc-accent); outline-offset: 2px; } /* 1x (sem duplicar) */
.object-fit-cover{ object-fit: cover; } /* 1x (sem duplicar) }

/* =======================================================
   Dark mode
   ======================================================= */
@media (prefers-color-scheme: dark){
  .article-header{ border-bottom-color: rgba(255,255,255,.12); }
  .image-caption{ color: #aaa; }
  .prose blockquote{
    background: rgba(255,255,255,.06);
    border-left-color: rgba(255,255,255,.18);
  }
}

/* =======================================================
   Responsividade (consolidada)
   ======================================================= */
@media (max-width: 768px){
  .article{ padding-left: 1rem; padding-right: 1rem; }

  .article-hero-img{
    max-height: 55vh; /* 55vh cobre o caso da notícia e home */
    border-radius: 0; box-shadow: none;
  }
  .article-hero{ margin-top: -1.5rem !important; }

  .image-center img{ max-width: 90%; }

  .sidebar-positions{ margin-bottom: 20px; }
}

/* =======================================================
   Extras de home (opcional)
   ======================================================= */
.hero-frc-home .ratio img{ filter: saturate(1.05) contrast(1.05); }



