/* Brazuca — visual inspirado no mockup futnews (verde / amarelo / energia) */
:root {
  --green-900: #14532d;
  --green-800: #166534;
  --yellow-500: #eab308;
  --yellow-400: #facc15;
  --red-accent: #dc2626;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --white: #ffffff;
  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--green-900);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green-900);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--green-800);
}

.brand--with-logo {
  line-height: 0;
}

.brand-logo {
  display: block;
  height: 2.5rem;
  width: auto;
  max-width: min(12.5rem, 42vw);
  object-fit: contain;
  object-position: left center;
}

.brand-ico {
  font-size: 1.5rem;
}

.nav-main {
  display: none;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-main {
    display: flex;
  }
}

.nav-main a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
}
.nav-main a:hover {
  color: var(--green-900);
  text-decoration: none;
}

.btn-cta {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--yellow-500);
  color: var(--green-900);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
}
.btn-cta:hover {
  background: var(--yellow-400);
  text-decoration: none;
}

/* Hero home */
.hero {
  position: relative;
  min-height: 22rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 83, 45, 0.88) 0%,
    rgba(20, 83, 45, 0.45) 55%,
    transparent 100%
  );
}

.hero-inner {
  position: relative;
  min-height: 22rem;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero-kicker {
  color: var(--yellow-400);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.max-w-hero {
  max-width: 40rem;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.92);
  max-width: 36rem;
  margin: 0 0 1.5rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--yellow-500);
  color: var(--green-900);
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
}
.btn-hero:hover {
  background: var(--yellow-400);
  text-decoration: none;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}

.section-kicker {
  color: var(--yellow-500);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.5rem;
}

.section-rule {
  width: 4rem;
  height: 4px;
  background: var(--yellow-500);
  border-radius: 999px;
  margin-bottom: 2rem;
}

.clip-diagonal {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
  padding-bottom: 5rem;
}

/* News grid */
.news-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card-news {
  transition: transform 0.2s ease;
}
.card-news:hover {
  transform: scale(1.02);
}

.card-news-img-wrap {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  height: 12rem;
  margin-bottom: 1rem;
}

.card-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-news:hover .card-news-img-wrap img {
  transform: scale(1.08);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--red-accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}

.card-cat {
  font-size: 0.7rem;
  font-weight: 600;
  color: #ca8a04;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.35rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.card-title a {
  color: inherit;
  text-decoration: none;
}
.card-title a:hover {
  color: #ca8a04;
  text-decoration: none;
}

.card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* Teams grid */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) {
  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .teams-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.team-card {
  display: block;
  background: var(--white);
  border: 2px solid var(--gray-100);
  border-radius: 0.5rem;
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s;
}
.team-card:hover {
  transform: scale(1.03);
  border-color: var(--yellow-500);
  text-decoration: none;
}

.team-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.team-logo-wrap {
  height: 3.25rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-logo {
  max-height: 3.25rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-hero-teamcrest {
  flex-shrink: 0;
}

.page-hero-teamcrest img {
  max-height: 6rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.4));
}

.team-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

/* Championships */
.champ-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .champ-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .champ-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.champ-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(145deg, var(--gray-50), var(--gray-100));
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}
.champ-card:hover {
  transform: scale(1.02);
  text-decoration: none;
}

.champ-ico {
  width: 100%;
  min-height: 5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  line-height: 1;
}

.champ-logo-wrap {
  width: 100%;
  min-height: 5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.champ-logo {
  display: block;
  margin: 0 auto;
  max-height: 5rem;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.champ-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.75rem;
  width: 100%;
}

.champ-meta {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}
.champ-meta strong {
  color: #ca8a04;
}

/* Widgets placeholder */
.widgets-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .widgets-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.widget-box {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.widget-box h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--green-900);
  margin: 0 0 1rem;
}

.widget-placeholder {
  text-align: center;
  padding: 2rem;
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
}

/* Team / championship page hero */
.page-hero {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.page-hero-tint {
  position: absolute;
  inset: 0;
  opacity: 0.72;
}

.page-hero-content {
  position: relative;
  min-height: 18rem;
  display: flex;
  align-items: flex-end;
  padding: 2rem 0;
}

.page-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.page-hero-emoji {
  font-size: 4rem;
  line-height: 1;
}

.page-hero-logo {
  flex-shrink: 0;
}

.page-hero-logo img {
  max-height: 5rem;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.25rem;
}

.page-hero-sub {
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.stats-bar {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
  padding: 2rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0;
}

.prose {
  max-width: 40rem;
}
.prose p {
  margin: 0 0 1rem;
}
.article-body {
  font-size: 1.05rem;
  line-height: 1.75;
}
.article-body h2,
.article-body h3 {
  font-family: var(--font-display);
  color: var(--green-900);
}

.breadcrumb {
  padding: 1rem 0;
  font-size: 0.875rem;
}
.breadcrumb a {
  font-weight: 500;
}

/* List page */
.list-articles {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.list-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .list-row {
    grid-template-columns: 240px 1fr;
    align-items: start;
  }
}

.list-thumb {
  border-radius: 0.5rem;
  overflow: hidden;
  height: 10rem;
}
.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notfound {
  text-align: center;
  padding: 4rem 1rem;
}
.notfound h1 {
  font-family: var(--font-display);
  color: var(--green-900);
}

/* Página do time: coluna principal + sidebar de widgets */
.team-page-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
  padding-bottom: 3rem;
}

.team-page-main {
  min-width: 0;
}

.team-page-main-inner {
  width: 100%;
}

@media (min-width: 1024px) {
  .team-page-layout {
    grid-template-columns: 1fr min(20rem, 30vw);
    gap: 2.5rem;
  }

  .team-page-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

.team-sidebar-heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-900);
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--yellow-500);
}

.team-widget-slot {
  margin-bottom: 1.5rem;
}

.team-widget-slot:last-child {
  margin-bottom: 0;
}

.team-widget-slot__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ca8a04;
  margin: 0 0 0.5rem;
}

.team-widget-slot__embed {
  min-height: 2rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-100);
}

.team-widget-placeholder {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0;
}

.team-widget-placeholder code {
  font-size: 0.8em;
}

/* Footer */
.site-footer {
  background: var(--green-900);
  color: var(--white);
  padding: 3rem 0 0;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-brand-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
  line-height: 0;
}
.footer-brand-logo img {
  height: 2rem;
  width: auto;
  max-width: 11rem;
  object-fit: contain;
  opacity: 0.92;
}
.footer-brand-logo:hover {
  opacity: 1;
  text-decoration: none;
}

.footer-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
}

.footer-text,
.footer-small {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--yellow-400);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.25rem 0;
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}
