/* ═══════════════════════════════════════════════════
   CAO ESPORTISTA — main.css
   Estilos compartilhados: reset, variáveis, nav, footer
   ═══════════════════════════════════════════════════ */

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

:root {
  --orange: #FA8405;
  --green:  #2D5016;
  --green2: #4A7C2F;
  --dark:   #1A1A1A;
  --white:  #FFFFFF;
  --gray:   #6B7280;
  --light:  #F9F7F4;
  --cream:  #F5F0E8;
  --border: rgba(0,0,0,0.08);
}

html { scroll-behavior: smooth; background: var(--dark); }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); overflow-x: hidden; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }

/* ── NAV ── */
nav#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}
nav#navbar.scrolled {
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img,
.nav-logo .custom-logo { width: 72px; height: 72px; object-fit: contain; }
.nav-logo span,
.nav-logo a span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; color: var(--white); letter-spacing: 2px;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white); opacity: 0.9;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
  padding: 8px 20px; border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--orange); border-color: var(--orange); }

/* ── HAMBURGUER ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU DRAWER ── */
.mobile-menu { display: none; }

.mobile-menu.open {
  display: block;
  position: fixed; inset: 0; z-index: 200;
}
.mobile-menu-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.mobile-menu-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 85vw);
  background: var(--dark);
  display: flex; flex-direction: column;
  padding: 0;
  animation: slideIn 0.3s ease;
  overflow-y: auto;
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.mobile-menu-header .nav-logo span {
  font-size: 1.1rem;
  color: var(--white);
}
.mobile-menu-header .nav-logo img { width: 44px; height: 44px; }
.mobile-menu-close {
  background: none; border: none; cursor: pointer;
  font-size: 1.3rem; color: rgba(255,255,255,0.6);
  padding: 4px; line-height: 1;
  transition: color 0.2s;
}
.mobile-menu-close:hover { color: var(--white); }

.mobile-nav-links {
  list-style: none; padding: 16px 0; margin: 0; flex: 1;
}
.mobile-nav-links li {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-nav-links a {
  display: block; padding: 18px 24px;
  font-size: 1rem; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-links a:hover {
  color: var(--orange);
  padding-left: 32px;
}
.mobile-menu-cta {
  display: block; margin: 16px 24px 32px;
  background: var(--orange); color: var(--dark);
  text-align: center; padding: 16px 24px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 3px; transition: opacity 0.2s;
}
.mobile-menu-cta:hover { opacity: 0.88; }

/* ── FOOTER ── */
footer {
  background: var(--dark); color: rgba(255,255,255,0.6);
  padding: 64px 48px 40px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
footer h4 {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--white); margin-bottom: 20px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px; margin: 32px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.75rem; flex-wrap: wrap; gap: 12px;
}
.social-links { display: flex; gap: 20px; }
.social-links a {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.55); transition: color 0.2s;
}
.social-links a:hover { color: var(--orange); }

/* ── BOTÕES ── */
.btn-primary {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  background: var(--orange); color: var(--dark);
  padding: 14px 36px; border-radius: 2px;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-outline {
  display: inline-block; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,0.7); color: var(--white);
  padding: 12px 32px; border-radius: 2px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--orange); border-color: var(--orange); color: var(--dark); }

/* ── BANNERS ── */
.banner-section {
  position: relative; height: 70vh; min-height: 480px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.banner-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-attachment: fixed;
}
.banner-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
}
.banner-content { position: relative; text-align: center; color: var(--white); padding: 0 24px; }
.banner-big-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(5rem, 16vw, 14rem);
  letter-spacing: 6px; line-height: 1;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 6px 60px rgba(0,0,0,0.5);
}
.banner-sub {
  font-size: 0.8rem; letter-spacing: 5px;
  text-transform: uppercase; opacity: 0.8;
  margin-top: 16px; margin-bottom: 32px;
}

/* ── SEÇÕES GENÉRICAS ── */
.section-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 5px;
  text-transform: uppercase; color: var(--orange);
  text-align: center; margin-bottom: 16px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 2px; text-align: center;
  color: var(--dark); margin-bottom: 64px;
}

/* ── ARCHIVE / BLOG ── */
.archive-layout {
  display: grid; grid-template-columns: 1fr 320px;
  gap: 48px; max-width: 1200px;
  margin: 100px auto 80px; padding: 0 48px;
  align-items: start;
}
.archive-header { margin-bottom: 40px; }
.archive-header .section-label { text-align: left; }
.archive-header .section-title { text-align: left; margin-bottom: 16px; }
.archive-desc { color: var(--gray); font-size: 1rem; line-height: 1.7; }

/* ── PAGINAÇÃO ── */
.pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  font-size: 0.875rem; font-weight: 600;
  border: 1.5px solid var(--border); border-radius: 2px;
  color: var(--dark); transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }
.pagination .prev, .pagination .next { width: auto; padding: 0 16px; font-size: 0.75rem; letter-spacing: 1px; }

/* ── BUSCA WP ── */
.search-form { display: flex; border: 1.5px solid var(--border); border-radius: 3px; overflow: hidden; }
.search-form .search-field {
  flex: 1; padding: 10px 14px; border: none; outline: none;
  font-size: 0.875rem; font-family: 'Inter', sans-serif;
}
.search-form .search-submit {
  padding: 10px 14px; background: var(--orange);
  border: none; cursor: pointer; color: var(--white); font-size: 0.875rem;
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  nav#navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-logo img,
  .nav-logo .custom-logo { width: 48px; height: 48px; }
  .nav-logo span,
  .nav-logo a span { font-size: 1.1rem; }
  .archive-layout { grid-template-columns: 1fr; margin: 80px auto 60px; padding: 0 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .banner-bg { background-attachment: scroll; }
}

/* ═══════════════════════════════════════
   PÁGINA DE BLOG / ARQUIVO DE CATEGORIA
   ═══════════════════════════════════════ */

/* ── HERO DO BLOG ── */
.blog-hero {
  position: relative;
  height: 55vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
}
.blog-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.blog-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}
.blog-hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 800px;
}
.blog-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 4px;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 4px 40px rgba(0,0,0,0.4);
  margin-bottom: 16px;
}
.blog-hero-title span { color: var(--orange); }
.blog-hero-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ── FILTRO DE CATEGORIAS ── */
.blog-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 80px;
  z-index: 50;
}
.blog-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-filter-inner::-webkit-scrollbar { display: none; }
.filter-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  padding: 16px 20px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.filter-pill:hover,
.filter-pill.active {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

/* ── LAYOUT BLOG ── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: 1200px;
  margin: 56px auto 80px;
  padding: 0 48px;
  align-items: start;
}
.blog-main { min-width: 0; }
.blog-grid { margin-bottom: 0; }

/* Card link wrapper */
.article-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.article-card-placeholder {
  width: 100%; height: 220px;
  background: var(--cream);
}

/* PAGINAÇÃO */
.blog-pagination {
  margin-top: 48px;
  text-align: center;
}
.blog-pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  color: var(--dark);
  transition: all 0.2s;
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.blog-pagination .prev,
.blog-pagination .next {
  font-size: 0.72rem;
  letter-spacing: 1px;
}

/* VAZIO */
.blog-empty {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray);
  font-size: 1rem;
}
.blog-empty a { color: var(--orange); font-weight: 600; }

/* RESPONSIVO */
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; padding: 0 24px; margin: 40px auto 60px; }
  .blog-filter-inner { padding: 0 24px; }
  .blog-hero { height: 45vh; }
}
