/* ============================================================
   selecao.art — Content CSS
   Notícias, Coberturas, Jogadores, Partidas, Títulos, Vídeos
   ============================================================ */

/* ---- Post body (conteúdo rico) ---- */
.post-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}
.post-body h2 { font-size: 1.4rem; font-weight: 800; margin: 2rem 0 .75rem; color: var(--azul); }
.post-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.post-body p  { margin-bottom: 1.1rem; }
.post-body a  { color: var(--verde); text-decoration: underline; }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.post-body blockquote {
  border-left: 4px solid var(--verde);
  padding: 12px 20px;
  background: var(--verde-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--text-secondary);
}
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li { margin-bottom: .4rem; }
.post-body ul li { list-style: disc; }
.post-body ol li { list-style: decimal; }
.post-body strong { font-weight: 700; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.post-body table th { background: var(--azul); color: #fff; padding: 10px 14px; font-weight: 700; }
.post-body table td { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.post-body table tr:nth-child(even) td { background: var(--bg); }

/* ---- Post header (página individual) ---- */
.post-header { margin-bottom: 28px; }
.post-header .post-cat { margin-bottom: 12px; }
.post-header h1 { margin-bottom: 14px; }
.post-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .83rem; color: var(--text-muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.post-meta .meta-author {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-primary); font-weight: 600;
}
.post-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

/* ---- Compartilhar ---- */
.share-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 28px 0;
}
.share-bar span { font-size: .82rem; font-weight: 700; color: var(--text-secondary); }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 20px;
  font-size: .8rem; font-weight: 700;
  cursor: pointer; border: none;
  text-decoration: none;
  transition: opacity var(--transition);
}
.share-btn:hover { opacity: .85; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-twitter  { background: #000;    color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-copy     { background: var(--bg); color: var(--text-primary); border: 1px solid var(--border); }

/* ---- Posts relacionados ---- */
.related-posts { margin-top: 40px; }

/* ---- Comentários ---- */
.comments-section { margin-top: 40px; }
.comments-section h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 20px; color: var(--azul); }

.comment-form { margin-bottom: 32px; }
.comment-form textarea { min-height: 90px; }

.comment-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff;
  border: 0.5px solid rgba(0,0,0,.09);
  border-radius: 12px;
  padding: 14px 16px;
}
.comment-body {
  flex: 1;
}
.comment-author {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.comment-author .name { font-weight: 700; font-size: .88rem; }
.comment-author .time { font-size: .75rem; color: var(--text-muted); }
.comment-author .role-badge { font-size: .65rem; }
.comment-text { font-size: .9rem; line-height: 1.6; }
.comment-actions {
  margin-top: 8px;
  display: flex; gap: 10px;
}
.comment-actions button, .comment-actions a {
  font-size: .75rem; color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  padding: 0; font-family: var(--font);
}
.comment-actions button:hover, .comment-actions a:hover { color: var(--verde); }

/* ---- Partidas ---- */
.match-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 20px;
  transition: box-shadow var(--transition);
  text-decoration: none; color: inherit;
}
.match-card:hover { box-shadow: var(--shadow); }
.match-card .team-block { flex: 1; text-align: center; }
.match-card .team-flag { font-size: 2.5rem; line-height: 1; }
.match-card .team-name { font-size: .85rem; font-weight: 700; margin-top: 6px; }
.match-card .match-center { text-align: center; min-width: 120px; }
.match-card .score {
  font-size: 2rem; font-weight: 900;
  color: var(--azul); letter-spacing: 4px;
}
.match-card .match-date { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }
.match-card .match-comp { font-size: .72rem; color: var(--text-muted); }
.match-card .live-badge {
  display: inline-block;
  background: #ff4444; color: #fff;
  font-size: .65rem; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
  letter-spacing: .08em; margin-bottom: 4px;
}

.results-date-header {
  font-size: .8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}

/* ---- Jogadores ---- */
.position-header {
  font-size: .82rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--azul);
  padding: 6px 14px;
  background: var(--azul-light);
  border-radius: var(--radius-sm);
  margin: 24px 0 12px;
  border-left: 3px solid var(--azul);
}
.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.player-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  text-decoration: none; color: inherit;
  transition: box-shadow var(--transition), transform var(--transition);
}
.player-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.player-card .player-photo {
  width: 100%; aspect-ratio: 1/1;
  object-fit: cover; object-position: top;
  background: var(--azul-light);
}
.player-card .player-photo-placeholder {
  width: 100%; aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--azul) 0%, var(--verde-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: rgba(255,255,255,.3);
}
.player-card .player-info { padding: 12px; }
.player-card .player-number {
  display: inline-block;
  background: var(--verde); color: #fff;
  font-size: .7rem; font-weight: 800;
  padding: 2px 8px; border-radius: 10px;
  margin-bottom: 6px;
}
.player-card .player-name { font-size: .88rem; font-weight: 700; line-height: 1.2; }
.player-card .player-club { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }

/* ---- Títulos ---- */
.titles-timeline { position: relative; padding-left: 24px; }
.titles-timeline::before {
  content: '';
  position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: var(--border);
}
.title-item {
  position: relative;
  margin-bottom: 24px;
}
.title-item::before {
  content: '';
  position: absolute; left: -20px; top: 18px;
  width: 12px; height: 12px;
  background: var(--verde);
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--verde);
}
.title-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; gap: 0;
  transition: box-shadow var(--transition);
  text-decoration: none; color: inherit;
}
.title-card:hover { box-shadow: var(--shadow); }
.title-year-block {
  background: var(--azul);
  color: var(--amarelo);
  font-size: 1.3rem; font-weight: 900;
  min-width: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
  flex-shrink: 0;
}
.title-info { padding: 16px 20px; }
.title-info h3 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; }
.title-info p  { font-size: .83rem; color: var(--text-secondary); margin: 0; }

/* ---- Vídeos (página completa) ---- */
.videos-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ---- Busca ---- */
.search-results-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--verde);
}
.search-results-header h2 { font-size: 1.2rem; }
.search-results-header span { color: var(--verde); font-weight: 800; }
.search-empty {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted);
}
.search-empty .icon { font-size: 3rem; margin-bottom: 12px; }

/* ---- Responsivo ---- */
@media (max-width: 768px) {
  .post-body { font-size: .95rem; }
  .match-card { flex-direction: column; gap: 12px; }
  .match-card .match-center { order: -1; }
  .players-grid { grid-template-columns: repeat(3, 1fr); }
  .title-card { flex-direction: column; }
  .title-year-block { min-width: unset; padding: 12px; font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .players-grid { grid-template-columns: repeat(2, 1fr); }
  .share-bar { gap: 8px; }
  .share-btn { padding: 6px 10px; font-size: .75rem; }
}

/* Fix espaçamento sidebar notícia */
.post-sidebar .card { margin-bottom: 20px; }
.post-sidebar .card:last-child { margin-bottom: 40px; }
@media (max-width: 768px) {
  .post-sidebar { margin-top: 24px; padding-bottom: 40px; }
}

/* Share icons */
.share-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.share-bar span { font-size: .85rem; color: var(--text-muted); font-weight: 600; }
.share-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; transition: transform .15s, opacity .15s; padding: 4px; box-sizing: content-box; }
.share-icon-btn:hover { transform: scale(1.12); opacity: .85; }
.share-whatsapp { background: #25D366; color: #fff; }
.share-twitter  { background: #000; color: #fff; }
.share-facebook { background: #1877F2; color: #fff; }
.share-copy     { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }

/* Transmissão embed */
.match-broadcast { margin-bottom: 20px; }
.broadcast-label { font-size:.82rem; font-weight:700; color:var(--text-muted); margin-bottom:8px; }
.broadcast-embed { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:8px; }
.broadcast-embed iframe { position:absolute; top:0; left:0; width:100%; height:100%; }

/* Contador da partida */
.match-countdown-wrap { background:var(--azul-escuro,#001f5b); border-radius:10px; padding:16px 20px; margin-bottom:20px; text-align:center; }
.match-countdown-label { font-size:.75rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:rgba(255,255,255,.5); margin-bottom:12px; }
.match-countdown-grid { display:flex; justify-content:center; gap:16px; }
.match-cd-unit { display:flex; flex-direction:column; align-items:center; gap:4px; }
.match-cd-unit span:first-child { font-size:2rem; font-weight:800; color:#fff; line-height:1; min-width:50px; }
.match-cd-unit span:last-child { font-size:.65rem; text-transform:uppercase; color:rgba(255,255,255,.4); letter-spacing:.08em; }

/* Listas no editor Quill e no conteúdo publicado */
.ql-editor ul, .post-body ul, .comment-text ul, .reply-body ul, .post-body-text ul { list-style: disc !important; padding-left: 1.5em !important; margin-bottom: 8px; }
.ql-editor ol, .post-body ol, .comment-text ol, .reply-body ol, .post-body-text ol { list-style: decimal !important; padding-left: 1.5em !important; margin-bottom: 8px; }
.ql-editor li, .post-body li, .comment-text li, .reply-body li, .post-body-text li { margin-bottom: 4px; }
.ql-editor ul li, .post-body ul li, .reply-body ul li, .post-body-text ul li { list-style-type: disc !important; }
.ql-editor ol li, .post-body ol li, .reply-body ol li, .post-body-text ol li { list-style-type: decimal !important; }
