/*
Theme Name: Brasil Copa Nona Theme
Theme URI: https://brasilcopa.com.br/
Author: Nona Digital Marketing
Author URI: https://seudominio-da-nona.com.br/
Description: Tema personalizado para o portal Brasil Copa, com layout editorial esportivo, home dinâmica, suporte a posts, páginas, categorias, tags e autores.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: brasilcopa-nona
Tags: blog, news, custom-logo, featured-images, custom-menu, right-sidebar, responsive-layout
*/

:root {
  --bc-green: #087a38;
  --bc-green-dark: #064e2b;
  --bc-yellow: #f7c948;
  --bc-blue: #0b1f3a;
  --bc-bg: #f5f7fa;
  --bc-card: #ffffff;
  --bc-text: #1f2933;
  --bc-muted: #667085;
  --bc-border: #e5e7eb;
  --bc-radius: 18px;
  --bc-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bc-bg);
  color: var(--bc-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .2s ease, background .2s ease, border-color .2s ease; }
a:hover { color: var(--bc-green); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
input, button, textarea, select { font: inherit; }

.bc-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.bc-topbar { background: var(--bc-blue); color: #fff; font-size: 14px; }
.bc-topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bc-topbar a { color: rgba(255,255,255,.86); }
.bc-topbar a:hover { color: var(--bc-yellow); }

.bc-header { background: #fff; border-bottom: 1px solid var(--bc-border); }
.bc-header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.bc-brand { display: inline-flex; align-items: center; gap: 14px; }
.bc-brand img { max-height: 64px; width: auto; }
.bc-logo-text { display: flex; flex-direction: column; line-height: 1; }
.bc-logo-text strong { font-size: 34px; color: var(--bc-green-dark); letter-spacing: -0.05em; }
.bc-logo-text span { margin-top: 8px; color: var(--bc-muted); font-size: 13px; letter-spacing: .02em; }
.bc-header-tools { display: flex; align-items: center; gap: 14px; }

.bc-search-form { display: flex; align-items: stretch; border: 1px solid var(--bc-border); border-radius: 999px; overflow: hidden; background: #fff; }
.bc-search-form input[type="search"] { border: 0; padding: 10px 14px; min-width: 230px; outline: none; }
.bc-search-form button { border: 0; padding: 10px 15px; background: var(--bc-green); color: #fff; cursor: pointer; font-weight: 700; }
.bc-search-form button:hover { background: var(--bc-green-dark); }

.bc-nav { background: var(--bc-green-dark); color: #fff; position: relative; z-index: 20; }
.bc-nav-inner { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bc-menu-toggle { display: none; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-weight: 800; }
.bc-menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.bc-menu li { position: relative; }
.bc-menu li a { display: block; padding: 16px 14px; font-weight: 800; font-size: 14px; color: #fff; }
.bc-menu li a:hover, .bc-menu .current-menu-item > a, .bc-menu .current-category-ancestor > a { background: rgba(255,255,255,0.12); color: #fff; }
.bc-menu .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--bc-blue); border-radius: 0 0 14px 14px; box-shadow: var(--bc-shadow); }
.bc-menu li:hover > .sub-menu { display: block; }
.bc-menu .sub-menu a { padding: 10px 12px; border-radius: 10px; }

.bc-breaking { background: var(--bc-yellow); color: var(--bc-blue); font-weight: 800; font-size: 14px; }
.bc-breaking-inner { min-height: 42px; display: flex; align-items: center; gap: 12px; overflow: hidden; }
.bc-breaking-label { background: var(--bc-blue); color: #fff; padding: 5px 10px; border-radius: 999px; font-size: 12px; text-transform: uppercase; white-space: nowrap; }
.bc-breaking a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bc-main { padding: 32px 0; }
.bc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.bc-content-stack { display: grid; gap: 28px; }

.bc-card { background: var(--bc-card); border: 1px solid var(--bc-border); border-radius: var(--bc-radius); box-shadow: var(--bc-shadow); overflow: hidden; }
.bc-card-body { padding: 20px; }
.bc-section-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.bc-section-title h1, .bc-section-title h2 { margin: 0; color: var(--bc-blue); letter-spacing: -0.04em; }
.bc-section-title h2 { font-size: 24px; }
.bc-section-title h1 { font-size: clamp(32px, 5vw, 48px); }
.bc-section-title h2::before { content: ""; display: inline-block; width: 8px; height: 24px; margin-right: 10px; background: var(--bc-green); border-radius: 999px; vertical-align: -4px; }
.bc-section-title a { font-size: 14px; font-weight: 800; color: var(--bc-green); }

.bc-featured { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 20px; margin-bottom: 28px; }
.bc-featured-main { min-height: 420px; position: relative; border-radius: var(--bc-radius); overflow: hidden; background: var(--bc-blue); }
.bc-featured-main img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.bc-featured-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,0.86)); display: flex; align-items: flex-end; padding: 28px; color: #fff; }
.bc-featured-overlay h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.05; margin: 10px 0; letter-spacing: -0.05em; }
.bc-meta { color: var(--bc-muted); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bc-featured-overlay .bc-meta { color: rgba(255,255,255,0.82); }
.bc-category { display: inline-flex; align-items: center; background: var(--bc-yellow); color: var(--bc-blue); padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.bc-featured-side { display: grid; gap: 18px; }

.bc-mini-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; align-items: center; background: #fff; border: 1px solid var(--bc-border); border-radius: 16px; overflow: hidden; }
.bc-mini-card img, .bc-mini-thumb { width: 120px; height: 100px; object-fit: cover; background: linear-gradient(135deg, var(--bc-green), var(--bc-blue)); }
.bc-mini-card-content { padding: 10px 12px 10px 0; }
.bc-mini-card h3 { font-size: 16px; line-height: 1.25; margin: 4px 0; color: var(--bc-blue); }

.bc-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bc-post-card img, .bc-card-thumb { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: linear-gradient(135deg, var(--bc-green), var(--bc-blue)); }
.bc-post-card h3 { font-size: 19px; line-height: 1.25; margin: 10px 0; color: var(--bc-blue); }
.bc-post-card p { color: var(--bc-muted); margin: 0; }
.bc-post-card .bc-card-body { padding: 16px; }

.bc-list { display: grid; gap: 18px; }
.bc-list-item { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 18px; background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); overflow: hidden; box-shadow: var(--bc-shadow); }
.bc-list-item img, .bc-list-thumb { width: 230px; height: 155px; object-fit: cover; background: linear-gradient(135deg, var(--bc-green), var(--bc-blue)); }
.bc-list-body { padding: 18px 18px 18px 0; }
.bc-list-body h2 { margin: 6px 0 8px; line-height: 1.15; color: var(--bc-blue); }
.bc-list-body p { margin: 0; color: var(--bc-muted); }

.bc-sidebar { display: grid; gap: 20px; }
.bc-widget { background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: 20px; box-shadow: var(--bc-shadow); }
.bc-widget h3, .bc-widget h2 { margin: 0 0 14px; color: var(--bc-blue); }
.bc-widget ul { margin: 0; padding-left: 18px; }
.bc-widget li { margin: 8px 0; }
.bc-adbox { border: 2px dashed var(--bc-border); border-radius: 16px; padding: 24px; text-align: center; color: var(--bc-muted); background: #fafafa; }

.bc-article { background: #fff; border: 1px solid var(--bc-border); border-radius: var(--bc-radius); padding: clamp(22px, 4vw, 42px); box-shadow: var(--bc-shadow); }
.bc-article h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -0.05em; color: var(--bc-blue); margin: 0 0 14px; }
.bc-article-image { margin: 24px -10px 28px; border-radius: var(--bc-radius); overflow: hidden; }
.bc-article-image img { width: 100%; }
.bc-article-content { font-size: 18px; }
.bc-article-content h2, .bc-article-content h3 { color: var(--bc-blue); margin-top: 34px; line-height: 1.2; }
.bc-article-content p, .bc-article-content ul, .bc-article-content ol { margin-bottom: 20px; }
.bc-article-content a { color: var(--bc-green); text-decoration: underline; }
.bc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.bc-tags a { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eef7f1; color: var(--bc-green-dark); font-weight: 700; font-size: 13px; }
.bc-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.bc-post-nav a { display: block; padding: 16px; background: #fff; border: 1px solid var(--bc-border); border-radius: 16px; font-weight: 800; }

.bc-page-title { margin-bottom: 24px; }
.bc-page-title h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); color: var(--bc-blue); letter-spacing: -0.04em; }
.bc-page-title p { margin: 8px 0 0; color: var(--bc-muted); }

.bc-pagination { margin-top: 26px; display: flex; justify-content: center; }
.bc-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; margin: 0 4px; padding: 0 10px; border-radius: 12px; background: #fff; border: 1px solid var(--bc-border); font-weight: 800; }
.bc-pagination .current { background: var(--bc-green); color: #fff; border-color: var(--bc-green); }

.bc-footer { background: var(--bc-blue); color: #fff; padding: 42px 0 22px; margin-top: 36px; }
.bc-footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr 0.7fr; gap: 28px; }
.bc-footer h3, .bc-footer h4 { margin-top: 0; }
.bc-footer p { color: rgba(255,255,255,.76); }
.bc-footer a { color: rgba(255,255,255,0.86); }
.bc-footer a:hover { color: var(--bc-yellow); }
.bc-footer ul { list-style: none; padding: 0; margin: 0; }
.bc-footer li { margin: 8px 0; }
.bc-footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; color: rgba(255,255,255,0.7); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bc-footer-bottom strong { color: #fff; }

.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption, .wp-caption-text, .gallery-caption, .bypostauthor { max-width: 100%; }

@media (max-width: 980px) {
  .bc-grid, .bc-featured, .bc-footer-grid { grid-template-columns: 1fr; }
  .bc-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-header-inner, .bc-topbar-inner { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .bc-header-tools { width: 100%; }
  .bc-search-form { width: 100%; }
  .bc-search-form input[type="search"] { min-width: 0; flex: 1; }
  .bc-menu-toggle { display: inline-flex; }
  .bc-nav-inner { align-items: flex-start; flex-direction: column; padding: 10px 0; }
  .bc-menu { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .bc-nav.is-open .bc-menu { display: flex; }
  .bc-menu li a { padding: 12px 10px; }
  .bc-menu .sub-menu { display: block; position: static; min-width: 0; background: rgba(0,0,0,.12); box-shadow: none; border-radius: 12px; margin-left: 12px; }
}

@media (max-width: 640px) {
  .bc-post-grid, .bc-list-item, .bc-post-nav { grid-template-columns: 1fr; }
  .bc-list-item img, .bc-list-thumb { width: 100%; height: auto; aspect-ratio: 16/10; }
  .bc-list-body { padding: 16px; }
  .bc-mini-card { grid-template-columns: 96px minmax(0, 1fr); }
  .bc-mini-card img, .bc-mini-thumb { width: 96px; height: 86px; }
  .bc-featured-main, .bc-featured-main img { min-height: 330px; }
  .bc-featured-overlay { padding: 20px; }
  .bc-footer-bottom { display: block; }
}
.bc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--bc-green);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.bc-button:hover {
  background: var(--bc-green-dark);
  color: #fff;
}
@media (max-width: 640px) {
  .bc-featured-main img {
    width: 100%;
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .bc-featured-main {
    min-height: auto;
    background: #ffffff;
  }

  .bc-featured-main a {
    display: block;
  }

  .bc-featured-overlay {
    position: relative;
    background: #ffffff;
    color: var(--bc-blue);
    padding: 14px 16px 18px;
  }

  .bc-featured-overlay h1 {
    font-size: 26px;
    line-height: 1.12;
    color: var(--bc-blue);
    margin: 10px 0 0;
  }
}