/* ===========================
   CHAMPIONS FACTORY — PAGES
   CSS para páginas internas
   =========================== */

/* === PAGE HERO === */
.page-hero {
  position: relative; min-height: 420px;
  display: flex; align-items: flex-end;
  overflow: hidden; padding-bottom: 64px;
}
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-image: url('/img/gallery-muay-thai.jpg'); }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.4) 100%); }
.page-hero-content { position: relative; z-index: 2; }
.page-hero-tag { display: inline-block; font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; color: var(--red); border: 1px solid rgba(204,0,0,0.4); padding: 5px 16px; margin-bottom: 16px; }
.page-hero-title { font-size: clamp(44px, 7vw, 88px); line-height: 0.95; margin-bottom: 16px; }
.page-hero-subtitle { font-size: 18px; color: rgba(255,255,255,0.65); font-weight: 400; max-width: 560px; margin-bottom: 20px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-family: var(--font-condensed); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.breadcrumb a { color: var(--gray); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--red); }

/* === SOBRE NÓS === */
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 80px; }
.valor-card { background: var(--black-2); padding: 32px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); text-align: center; }
.valor-icon { font-size: 36px; margin-bottom: 16px; }
.valor-card h3 { font-size: 22px; margin-bottom: 12px; }
.valor-card p { font-size: 15px; color: rgba(255,255,255,0.65); font-weight: 400; line-height: 1.6; }

/* Timeline */
.timeline { position: relative; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--red), transparent); }
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 0; margin-bottom: 48px; padding-left: 32px; position: relative; }
.timeline-item::before { content: ''; position: absolute; left: -5px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(204,0,0,0.2); }
.timeline-year { font-family: var(--font-display); font-size: 28px; color: var(--red); letter-spacing: 2px; padding-top: 0; }
.timeline-content h4 { font-size: 20px; margin-bottom: 8px; }
.timeline-content p { font-size: 15px; color: rgba(255,255,255,0.65); font-weight: 400; line-height: 1.6; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--black-2); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); overflow: hidden; }
.team-img { width: 100%; height: 240px; object-fit: cover; object-position: top; }
.team-info { padding: 20px; }
.team-name { font-size: 20px; margin-bottom: 4px; }
.team-role { font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); }

/* === FRANQUIA PAGE === */
.franquia-page-hero .page-hero-bg { background-image: url('/img/wmf.jpg'); }
.franquia-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 80px; }
.benefit-card { background: var(--black-2); padding: 28px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); text-align: center; }
.benefit-number { font-family: var(--font-display); font-size: 52px; color: var(--red); line-height: 1; margin-bottom: 8px; }
.benefit-label { font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--gray-light); margin-bottom: 8px; }
.benefit-desc { font-size: 14px; color: var(--gray); font-weight: 400; line-height: 1.5; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-question { width: 100%; text-align: left; background: none; border: none; color: var(--white); font-family: var(--font-condensed); font-size: 17px; font-weight: 700; letter-spacing: 1px; padding: 22px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s; }
.faq-question:hover { color: var(--red); }
.faq-question .faq-icon { font-size: 20px; transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.faq-answer p { padding-bottom: 20px; font-size: 16px; color: rgba(255,255,255,0.68); line-height: 1.7; font-weight: 400; }

/* === MUAY THAI PAGE === */
.muay-page-hero .page-hero-bg { background-image: url('/img/gallery-muay-thai.jpg'); }
.philosophy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 80px; }
.mandamento-card { background: var(--black-2); padding: 24px; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); display: flex; align-items: flex-start; gap: 16px; }
.mandamento-num { font-family: var(--font-display); font-size: 42px; color: var(--red); line-height: 1; flex-shrink: 0; opacity: 0.7; }
.mandamento-text { font-family: var(--font-condensed); font-size: 16px; font-weight: 700; letter-spacing: 1px; line-height: 1.4; padding-top: 8px; }
.traditions-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 80px; position: relative; }
.tradition-card { position: relative; padding: 28px 16px 24px; text-align: center; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); background-image: url('/img/gallery-muay-thai.jpg'); background-size: cover; background-position: center; overflow: hidden; min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end; }
.tradition-card::before { content: ''; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.88) 100%); }
.tradition-card:nth-child(1)::before { background: linear-gradient(to bottom, rgba(180,0,0,0.35) 0%, rgba(80,0,0,0.92) 100%); }
.tradition-card:nth-child(2)::before { background: linear-gradient(to bottom, rgba(140,100,0,0.35) 0%, rgba(70,50,0,0.92) 100%); }
.tradition-card:nth-child(3)::before { background: linear-gradient(to bottom, rgba(0,60,160,0.35) 0%, rgba(0,30,80,0.92) 100%); }
.tradition-card:nth-child(4)::before { background: linear-gradient(to bottom, rgba(0,110,60,0.35) 0%, rgba(0,55,30,0.92) 100%); }
.tradition-card:nth-child(5)::before { background: linear-gradient(to bottom, rgba(100,0,80,0.35) 0%, rgba(50,0,40,0.92) 100%); }
.tradition-card > * { position: relative; z-index: 1; }
.tradition-icon { font-size: 36px; margin-bottom: 10px; }
.tradition-name { font-family: var(--font-display); font-size: 20px; letter-spacing: 2px; margin-bottom: 8px; color: #fff; }
.tradition-desc { font-size: 13px; color: rgba(255,255,255,0.82); line-height: 1.5; font-weight: 400; }
.masters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.master-card { background: var(--black-2); padding: 28px; clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); }
.master-name { font-size: 24px; margin-bottom: 6px; }
.master-title { font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.master-bio { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; font-weight: 400; }

/* === GALERIA PAGE === */
.galeria-page-hero .page-hero-bg { background-image: url('/img/gallery-muay-thai.jpg'); }
.galeria-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 10px 24px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.65); cursor: pointer; transition: all 0.2s; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.filter-btn:hover, .filter-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.galeria-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.galeria-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 1; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.galeria-item:hover img { transform: scale(1.06); }
.galeria-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background 0.3s; display: flex; align-items: flex-end; padding: 12px; }
.galeria-item:hover .galeria-overlay { background: rgba(0,0,0,0.5); }
.galeria-item-title { font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 1px; opacity: 0; transform: translateY(8px); transition: all 0.3s; color: var(--white); }
.galeria-item:hover .galeria-item-title { opacity: 1; transform: translateY(0); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 9990; background: rgba(0,0,0,0.92); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 28px; background: none; border: none; color: var(--white); font-size: 32px; cursor: pointer; opacity: 0.7; transition: opacity 0.2s; }
.lightbox-close:hover { opacity: 1; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: var(--white); font-size: 28px; cursor: pointer; padding: 16px 20px; transition: background 0.2s; }
.lightbox-prev { left: 16px; } .lightbox-next { right: 16px; }
.lightbox-prev:hover, .lightbox-next:hover { background: var(--red); }
.lightbox-caption { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-family: var(--font-condensed); font-size: 14px; font-weight: 600; letter-spacing: 2px; color: rgba(255,255,255,0.7); text-align: center; }
.galeria-loading { text-align: center; padding: 60px; color: var(--gray); font-family: var(--font-condensed); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* === NOTICIAS PAGE === */
.noticias-page-hero .page-hero-bg { background-image: url('/img/gallery-muay-thai.jpg'); }
.noticias-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 48px; }
.news-card { background: var(--black-2); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.news-card-img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.4s; }
.news-card:hover .news-card-img { transform: scale(1.04); }
.news-card-body { padding: 24px; }
.news-card-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-card-cat { font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); background: var(--red); padding: 3px 10px; }
.news-card-date { font-family: var(--font-condensed); font-size: 12px; font-weight: 600; color: var(--gray); }
.news-card-title { font-size: 20px; line-height: 1.2; margin-bottom: 10px; }
.news-card-resumo { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; font-weight: 400; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-link { display: inline-block; margin-top: 14px; font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); transition: letter-spacing 0.2s; }
.news-card-link:hover { letter-spacing: 3px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; }
.page-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--black-2); border: 1px solid rgba(255,255,255,0.08); color: var(--gray); font-family: var(--font-condensed); font-size: 14px; font-weight: 700; cursor: pointer; transition: all 0.2s; }
.page-btn:hover, .page-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
.noticias-loading { text-align: center; padding: 60px; color: var(--gray); font-family: var(--font-condensed); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* === NOTICIA SINGLE === */
.noticia-page-hero .page-hero-bg { background-size: cover; background-position: center; }
.noticia-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.noticia-article { }
.noticia-header { margin-bottom: 32px; }
.noticia-cat { display: inline-block; font-family: var(--font-condensed); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--white); background: var(--red); padding: 5px 14px; margin-bottom: 16px; }
.noticia-title { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin-bottom: 16px; }
.noticia-meta { font-family: var(--font-condensed); font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gray); }
.noticia-img-main { width: 100%; max-height: 480px; object-fit: cover; clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%); margin-bottom: 36px; }
.noticia-content { font-size: 17px; color: rgba(255,255,255,0.8); line-height: 1.8; font-weight: 400; }
.noticia-content p { margin-bottom: 20px; }
.noticia-content strong { color: var(--white); font-weight: 700; }
.noticia-content h2 { font-size: 28px; margin: 32px 0 16px; }
.noticia-sidebar { position: sticky; top: 90px; }
.sidebar-widget { background: var(--black-2); padding: 28px; clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%); margin-bottom: 24px; }
.sidebar-widget h4 { font-family: var(--font-condensed); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gray); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.sidebar-news-item { display: flex; gap: 12px; margin-bottom: 16px; cursor: pointer; }
.sidebar-news-item:last-child { margin-bottom: 0; }
.sidebar-news-img { width: 70px; height: 60px; object-fit: cover; flex-shrink: 0; clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%); }
.sidebar-news-title { font-size: 14px; font-weight: 600; line-height: 1.4; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.sidebar-news-item:hover .sidebar-news-title { color: var(--red); }
.sidebar-news-date { font-family: var(--font-condensed); font-size: 11px; font-weight: 600; color: var(--gray); letter-spacing: 1px; margin-top: 4px; }

/* === FIGHTERS PAGE === */
.fighters-page-hero .page-hero-bg { background-image: url('/img/gallery-muay-thai.jpg'); }
.fighters-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fighter-card { background: var(--black-2); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%); overflow: hidden; transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; }
.fighter-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); }
.fighter-img { width: 100%; height: 260px; object-fit: cover; object-position: top; transition: transform 0.4s; }
.fighter-card:hover .fighter-img { transform: scale(1.05); }
.fighter-info { padding: 20px; }
.fighter-name { font-size: 22px; letter-spacing: 2px; margin-bottom: 6px; }
.fighter-cat { font-family: var(--font-condensed); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.fighter-titles { display: flex; flex-direction: column; gap: 4px; }
.fighter-title-item { font-family: var(--font-condensed); font-size: 12px; font-weight: 600; color: var(--gray); letter-spacing: 1px; display: flex; align-items: center; gap: 6px; }
.fighter-title-item::before { content: '🏆'; font-size: 11px; }
.fighters-loading { text-align: center; padding: 60px; color: var(--gray); font-family: var(--font-condensed); font-size: 15px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; }

/* === RESPONSIVE PAGES === */
@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .traditions-grid { grid-template-columns: repeat(3, 1fr); }
  .masters-grid { grid-template-columns: repeat(2, 1fr); }
  .noticias-grid { grid-template-columns: repeat(2, 1fr); }
  .fighters-grid { grid-template-columns: repeat(3, 1fr); }
  .noticia-layout { grid-template-columns: 1fr; }
  .noticia-sidebar { position: static; }
  .galeria-grid { grid-template-columns: repeat(3, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .franquia-benefits { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .team-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: 1fr; }
  .noticias-grid { grid-template-columns: 1fr; }
  .fighters-grid { grid-template-columns: repeat(2, 1fr); }
  .galeria-grid { grid-template-columns: repeat(2, 1fr); }
  .traditions-grid { grid-template-columns: repeat(2, 1fr); }
  .masters-grid { grid-template-columns: 1fr; }
  .franquia-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .fighters-grid { grid-template-columns: 1fr; }
  .galeria-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
}
