/*
 * Independent Theme — Estilo: acelgo
 * Identidade Vila Nova Futebol de Cegos — Vermelho e Branco.
 * Baseado no estilo "Colorado", adaptado para a ACELGO.
 * Fontes: usa famílias já empacotadas no tema (Oswald no lugar de
 * Barlow Condensed/Bebas Neue, Inter no lugar de Barlow) para não
 * exigir novos arquivos de fonte. Trocar é simples se for necessário.
 */

body.style-acelgo {
  /* ── CORES E TIPOGRAFIA DO ESTILO ── */
  --primary-color: #b01810;
  --bg-light: #ffffff;
  --card-bg: #ffffff;
  --accent-color: #e8291c;
  --on-accent: #ffffff;
  --link-color: #9c1510;
  --text-color: #1a0000;
  --muted-text: #5c2020;
  --border-color: rgba(176,24,16,0.14);
  --header-title-color: #ffffff;
  --header-muted: rgba(255,255,255,0.75);
  --header-border: rgba(255,255,255,0.20);
  --focus-ring: 3px solid #ffffff;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-main: 'Inter', system-ui, sans-serif;
  --font-title: 'Oswald', 'Inter', system-ui, sans-serif;
}

/* ── Keyframes exclusivos do estilo ── */
@keyframes acelgoLine {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

@keyframes acelgoStamp {
  0%   { opacity: 0; transform: translateY(18px) scale(0.95); }
  55%  { transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Regras gerais ── */

body.style-acelgo {
  background-color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif !important;
}

body.style-acelgo main {
  background-color: #ffffff;
  border-right: 1px solid rgba(176,24,16,0.10);
}

body.style-acelgo aside {
  background-color: #fafafa;
  border-left: none;
  box-shadow: -2px 0 12px rgba(176,24,16,0.06) !important;
}

body.style-acelgo .widget {
  background-color: #ffffff;
  border: 1px solid rgba(176,24,16,0.12);
}

body.style-acelgo article,
body.style-acelgo aside {
  box-shadow: none;
}

body.style-acelgo .logo img,
body.style-acelgo img.custom-logo,
body.style-acelgo .custom-logo-link,
body.style-acelgo .custom-logo-link img,
body.style-acelgo a.custom-logo-link,
body.style-acelgo .site-header figure,
body.style-acelgo .site-header .logo {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* ── Cabeçalho — vermelho profundo com brilho diagonal ── */

body.style-acelgo .site-header {
  background: linear-gradient(
    170deg,
    #c41810 0%,
    #b01810 35%,
    #8f1208 75%,
    #6b0a04 100%
  ) !important;
  border-bottom: none !important;
  box-shadow:
    0 4px 24px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08) !important;
  position: relative;
  overflow: hidden;
}

body.style-acelgo .site-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 50%;
  height: 220%;
  background: linear-gradient(
    108deg,
    transparent 35%,
    rgba(255,255,255,0.06) 48%,
    rgba(255,255,255,0.11) 52%,
    rgba(255,255,255,0.06) 56%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

body.style-acelgo .site-header::after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255,255,255,0.50);
  animation: acelgoLine 0.65s cubic-bezier(0.22,1,0.36,1) 0.2s forwards;
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.style-acelgo .site-header::after {
    animation: none !important;
    width: 100% !important;
  }
}

body.style-acelgo .site-title .site-name a {
  color: #ffffff;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.40);
  text-decoration: none !important;
}

body.style-acelgo .site-title .site-description {
  color: #ffffff;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,0.40);
}

/* ── Menu — caixa alta, indicador branco no topo ── */

@media ( min-width: 769px ){
  body.style-acelgo .primary-nav {
    background: rgba(0,0,0,0.22);
    border-top: 1.5px solid rgba(255,255,255,0.18);
  }
}
body.style-acelgo .primary-nav {
  padding-bottom: 8px !important;
  margin-bottom: -3px;
}

body.style-acelgo .primary-nav .menu a {
  position: relative !important;
  overflow: hidden !important;
  color: rgba(255,255,255,0.92) !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  transition: color 0.22s ease !important;
  border-bottom: 0;
}

body.style-acelgo .primary-nav .menu a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: rgba(255,255,255,0.16);
  transition: height 0.22s ease;
  pointer-events: none;
}

body.style-acelgo .primary-nav .menu a:hover::before {
  height: 100%;
}

body.style-acelgo .primary-nav .menu a:hover {
  color: #ffffff !important;
}

body.style-acelgo .primary-nav .menu li.current-menu-item > a,
body.style-acelgo .primary-nav .menu li.current_page_item > a {
  color: #ffffff !important;
  background: rgba(255,255,255,0.18) !important;
  font-weight: 800 !important;
  border-bottom: none !important;
  border-top: 3px solid #ffffff !important;
  padding-top: 5px !important;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  body.style-acelgo .primary-nav .menu a::before {
    display: none !important;
  }
}

body.style-acelgo .header-search .search-form .search-field {
  border: 1px solid rgba(255,255,255,0.45) !important;
  background: rgba(255,255,255,0.10) !important;
  color: #ffffff !important;
}

body.style-acelgo .header-search .search-form .search-field::placeholder {
  color: rgba(255,255,255,0.70) !important;
}

body.style-acelgo .header-search .search-form .search-field:focus {
  border-color: #ffffff !important;
  background: rgba(255,255,255,0.20) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.22) !important;
}

body.style-acelgo .header-search .search-form .search-submit {
  background: #ffffff !important;
  color: #b01810 !important;
  border: none !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.20) !important;
}
body.style-acelgo #submit:hover {
  color: #b01810 !important;
  filter: none !important;
}

body.style-acelgo .header-search .search-form .search-submit:hover {
  background: #f0f0f0 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.28) !important;
}

/* ── Títulos ── */

body.style-acelgo h1,
body.style-acelgo h2,
body.style-acelgo h3,
body.style-acelgo .entry-title {
  color: #9c1510;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

body.style-acelgo .entry-title,
body.style-acelgo .post-content h2,
body.style-acelgo .page-content h2 {
  animation: acelgoStamp 0.42s ease both !important;
}

body.style-acelgo .post-content h3,
body.style-acelgo .page-content h3 {
  animation: acelgoStamp 0.42s ease 0.08s both !important;
}

@media (prefers-reduced-motion: reduce) {
  body.style-acelgo .entry-title,
  body.style-acelgo .post-content h2,
  body.style-acelgo .post-content h3,
  body.style-acelgo .page-content h2,
  body.style-acelgo .page-content h3 {
    animation: none !important;
  }
}

body.style-acelgo a {
  color: #9c1510;
  text-decoration: none;
}

/* Corrige títulos dentro de blocos com fundo customizado (inline style) —
   ex.: seções coloridas criadas no editor (bloco HTML personalizado).
   Sem isso, a regra genérica de h1/h2/h3 acima "sequestra" a cor mesmo
   quando o autor já definiu color:white no elemento pai. */
body.style-acelgo [style*="background"] h1,
body.style-acelgo [style*="background"] h2,
body.style-acelgo [style*="background"] h3,
body.style-acelgo [style*="background-color"] h1,
body.style-acelgo [style*="background-color"] h2,
body.style-acelgo [style*="background-color"] h3 {
  color: inherit !important;
  -webkit-text-fill-color: inherit !important;
  animation: none !important;
}

body.style-acelgo a:hover {
  color: #e8291c;
  text-decoration: underline;
}

body.style-acelgo .post-content blockquote,
body.style-acelgo .page-content blockquote {
  border-left: 5px solid #e8291c !important;
  background: linear-gradient(
    135deg,
    rgba(176,24,16,0.06) 0%,
    rgba(255,255,255,0.90) 100%
  ) !important;
  border-radius: 0 10px 10px 0 !important;
  padding: 1.4rem 1.8rem !important;
  font-style: italic !important;
  font-size: 1.05rem !important;
  line-height: 1.80 !important;
  color: #1a0000 !important;
  position: relative !important;
  box-shadow: 0 2px 16px rgba(176,24,16,0.10) !important;
}

body.style-acelgo .post-content blockquote::before,
body.style-acelgo .page-content blockquote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 3.5rem;
  color: rgba(176,24,16,0.45);
  font-family: Georgia, serif;
  line-height: 1;
  pointer-events: none;
}

/* ── Widgets — faixa vermelho → branco no topo (camisa do Vila Nova) ── */

body.style-acelgo .widget,
body.style-acelgo .widget_block {
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(176,24,16,0.06) !important;
  border-radius: var(--radius-md) !important;
  border: 1px solid rgba(176,24,16,0.12) !important;
}

body.style-acelgo .widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #cc1e14 0%, #e8291c 55%, #ffffff 100%);
  pointer-events: none;
}

body.style-acelgo .widget h3,
body.style-acelgo .widget h2,
body.style-acelgo .widget h4 {
  color: #8f1208 !important;
  -webkit-text-fill-color: #8f1208 !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  font-size: 0.82rem !important;
  border-bottom: 1px solid rgba(176,24,16,0.20) !important;
  padding-bottom: 8px !important;
}

body.style-acelgo .widget a { color: #9c1510 !important; }
body.style-acelgo .widget a:hover { color: #e8291c !important; }
body.style-acelgo .widget .wp-block-latest-comments__comment-meta a {
  color: #9c1510;
}

body.style-acelgo .widget p,
body.style-acelgo .widget li,
body.style-acelgo .widget span,
body.style-acelgo .widget a {
  line-height: 1.80 !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  hyphens: none !important;
}

/* ── Botão Leia mais / voltar — inverte pra branco no hover ── */

body.style-acelgo .read-more,
body.style-acelgo a.read-more {
  background: #cc1e14 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  border: 2px solid #cc1e14 !important;
  box-shadow: 0 2px 10px rgba(176,24,16,0.22) !important;
  border-radius: 6px !important;
}

body.style-acelgo .read-more:hover,
body.style-acelgo a.read-more:hover {
  background: #ffffff !important;
  color: #cc1e14 !important;
  -webkit-text-fill-color: #cc1e14 !important;
  border-color: #cc1e14 !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

body.style-acelgo .back-link a {
  color: #9c1510 !important;
  border: 2px solid rgba(176,24,16,0.30) !important;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 700;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}

body.style-acelgo .back-link a:hover {
  background: #cc1e14 !important;
  border-color: #cc1e14 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ── Comentários ── */

body.style-acelgo .comment-author .fn,
body.style-acelgo .comment-author-name,
body.style-acelgo .comment-author-name a {
  color: #9c1510 !important;
}

body.style-acelgo .comment-reply-link,
body.style-acelgo .reply a,
body.style-acelgo .comment-reply a {
  background: transparent !important;
  border: 2px solid #e8291c !important;
  color: #e8291c !important;
  -webkit-text-fill-color: #e8291c !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
  padding: 5px 12px !important;
}

body.style-acelgo .comment-reply-link:hover,
body.style-acelgo .reply a:hover,
body.style-acelgo .comment-reply a:hover {
  background: #e8291c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

body.style-acelgo .comment-list .comment-body {
  background: #ffffff !important;
  border: 1px solid #f5c8c8 !important;
  border-radius: 8px !important;
  padding: 1.25rem 1.5rem !important;
}
body.style-acelgo .comment-metadata a {
  color: #666666 !important;
  font-size: 0.82rem !important;
  text-decoration: none !important;
}
body.style-acelgo .comment-metadata a:hover {
  color: #e8291c !important;
}
body.style-acelgo .comment-content p {
  color: #1a1a1a !important;
  line-height: 1.75 !important;
}

body.style-acelgo .comment-form input[type="text"],
body.style-acelgo .comment-form input[type="email"],
body.style-acelgo .comment-form input[type="url"],
body.style-acelgo .comment-form textarea {
  background: #ffffff !important;
  border: 1.5px solid #f5c8c8 !important;
  color: #1a1a1a !important;
  border-radius: 6px !important;
  transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}
body.style-acelgo .comment-form input:focus,
body.style-acelgo .comment-form textarea:focus {
  border-color: #e8291c !important;
  box-shadow: 0 0 0 3px #e8291c22 !important;
  outline: none !important;
}
body.style-acelgo .comment-form .submit {
  background: #e8291c !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  transition: all 0.3s ease !important;
}

/* ── Post meta / excerpt / paginação ── */

body.style-acelgo .post-meta {
  background: #fff4f4 !important;
  border-left: 4px solid #e8291c !important;
}

body.style-acelgo .post-meta a {
  color: #9c1510 !important;
}

body.style-acelgo .excerpt,
body.style-acelgo .excerpt p {
  color: #5c2020 !important;
  line-height: 1.7 !important;
}

body.style-acelgo .pagination .page-numbers {
  border: 1px solid rgba(176,24,16,0.25) !important;
  color: #9c1510 !important;
  border-radius: 4px !important;
}

body.style-acelgo .pagination .current,
body.style-acelgo .pagination .page-numbers:hover {
  background: #cc1e14 !important;
  border-color: #cc1e14 !important;
  color: #ffffff !important;
}

body.style-acelgo .post-content p,
body.style-acelgo .page-content p,
body.style-acelgo .post-content li,
body.style-acelgo .page-content li {
  color: #1a0000 !important;
  line-height: 1.80 !important;
}

body.style-acelgo .post-content a,
body.style-acelgo .page-content a {
  color: #9c1510 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
  transition: color 0.3s ease;
}
body.style-acelgo .post-content a:hover,
body.style-acelgo .page-content a:hover {
  color: #e8291c !important;
}

/* ── Subpáginas ── */

body.style-acelgo .child-page-list li a {
  border-color: rgba(176,24,16,0.14) !important;
  color: #1a0000 !important;
}
body.style-acelgo .child-page-list li.is-current a {
  border-left-color: #e8291c !important;
}
body.style-acelgo .child-page-list li a:hover {
  background-color: #cc1e14 !important;
  color: #ffffff !important;
}

/* ── Rodapé — vermelho bem escuro, sem dourado ── */

body.style-acelgo footer[role="contentinfo"] {
  background: linear-gradient(180deg, #6b0a04 0%, #3d0200 100%) !important;
  border-top: 3px solid #ffffff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10) !important;
}

body.style-acelgo .site-info,
body.style-acelgo .site-info p {
  color: rgba(255,255,255,0.80) !important;
  border-top-color: rgba(255,255,255,0.15) !important;
}

body.style-acelgo .social-title {
  color: #ffffff !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

body.style-acelgo footer a {
  color: rgba(255,255,255,0.85);
}

body.style-acelgo footer a:hover {
  color: #ffffff !important;
  opacity: 0.85;
}

body.style-acelgo footer[role="contentinfo"] p,
body.style-acelgo footer[role="contentinfo"] span,
body.style-acelgo footer[role="contentinfo"] li {
  color: rgba(255,255,255,0.85) !important;
}

body.style-acelgo footer .widget h2,
body.style-acelgo footer .widget h3,
body.style-acelgo footer .widget h4,
body.style-acelgo footer .footer-widget h2,
body.style-acelgo footer .footer-widget h3,
body.style-acelgo footer .footer-widget h4 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: 'Oswald', 'Inter', system-ui, sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  border-bottom-color: rgba(255,255,255,0.25) !important;
}

body.style-acelgo footer .widget::before {
  background: linear-gradient(90deg, rgba(255,255,255,0.55), rgba(255,255,255,0.15), transparent) !important;
}

body.style-acelgo footer .footer-widget,
body.style-acelgo footer .widget {
  background-color: transparent !important;
  border-color: rgba(255,255,255,0.14) !important;
  box-shadow: none !important;
}

body.style-acelgo .social-links a:hover {
  color: #ffffff !important;
  opacity: 0.85;
}

/* ── Detalhes extras — seleção de texto e scrollbar ── */

body.style-acelgo ::selection {
  background: #cc1e14;
  color: #ffffff;
}

/* ── Erro 404 / sem resultados ── */

body.style-acelgo .error-404 .page-title,
body.style-acelgo .no-results .page-title {
  color: #e8291c !important;
}
body.style-acelgo .error-404 .search-form .search-field,
body.style-acelgo .no-results .search-form .search-field {
  background: #ffffff !important;
  border: 1.5px solid #f5c8c8 !important;
  color: #1a1a1a !important;
  border-radius: 6px 0 0 6px !important;
}
body.style-acelgo .error-404 .search-form .search-submit,
body.style-acelgo .no-results .search-form .search-submit {
  background: #e8291c !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  font-weight: 700 !important;
}

body.style-acelgo .post-thumbnail-img {
  border-radius: 6px !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ── Mobile ── */

@media (max-width: 768px) {
  body.style-acelgo .menu-toggle {
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.40) !important;
  }

  body.style-acelgo #main-menu {
    background: #8a1209 !important;
    border-top: 1px solid rgba(255,255,255,0.15) !important;
  }

  body.style-acelgo #main-menu a {
    border-bottom-color: rgba(255,255,255,0.10) !important;
    color: #ffffff !important;
  }
}

@media (max-width: 600px) {
  body.style-acelgo .site-title .site-name {
    font-size: clamp(0.85rem, 3.5vw, 1rem);
  }

  body.style-acelgo .site-title .site-description {
    font-size: clamp(0.7rem, 2.8vw, 0.82rem);
  }
}
