/*
Theme Name: ENERGYMAG Editorial
Theme URI: https://energymag.com.br
Author: ENERGYMAG Digital
Description: Tema editorial oficial ENERGYMAG — Cultura Pop, Música, Edições, Lançamentos, Eventos, Cinema e Séries, Famosos, Beleza e Saúde.
Version: 2.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: energymag
*/

* {
  border-radius: 0px !important;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #0B0B0E;
  background-color: #FFFFFF;
  overflow-x: hidden;
  margin: 0;
}

/* Padronização rígida das proporções das imagens */
.thumb-box-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background-color: #f5f5f5;
}
.thumb-box-16-10 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #f5f5f5;
}
.thumb-box-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #f5f5f5;
}
.thumb-box-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background-color: #171717;
}
.thumb-box-hero img,
.thumb-box-16-10 img,
.thumb-box-square img,
.thumb-box-cover img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-zoom:hover img {
  transform: scale(1.03);
}

/* Scrollbar discreta e arrastável para trilhos horizontais */
.editorial-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #d4d4d4 transparent;
}
.editorial-scroll::-webkit-scrollbar {
  height: 5px;
}
.editorial-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.editorial-scroll::-webkit-scrollbar-thumb {
  background: #d4d4d4;
}
.editorial-scroll:hover::-webkit-scrollbar-thumb {
  background: #0B0B0E;
}

.edicoes-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #404040 #0B0B0E;
}
.edicoes-scroll::-webkit-scrollbar {
  height: 5px;
}
.edicoes-scroll::-webkit-scrollbar-track {
  background: #0B0B0E;
}
.edicoes-scroll::-webkit-scrollbar-thumb {
  background: #404040;
}
.edicoes-scroll:hover::-webkit-scrollbar-thumb {
  background: #EAB308;
}

.drag-scroll {
  cursor: grab;
  user-select: none;
}
.drag-scroll.active {
  cursor: grabbing;
}

/* Responsividade completa para embeds de YouTube, Spotify e vídeos no post aberto */
.article-content {
  font-size: 17px;
  line-height: 1.78;
  color: #171717;
}
.article-content p {
  margin-bottom: 1.4rem;
}
.article-content h2,
.article-content h3 {
  font-weight: 900;
  color: #0B0B0E;
  margin-top: 2rem;
  margin-bottom: 0.9rem;
  line-height: 1.25;
}
.article-content figure,
.article-content .wp-block-embed,
.article-content .wp-block-embed__wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.8rem 0 !important;
}
.article-content iframe[src*="youtube.com"],
.article-content iframe[src*="youtu.be"],
.article-content iframe[src*="vimeo.com"],
.article-content .wp-block-embed-youtube iframe,
.article-content .wp-block-embed-vimeo iframe {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 320px;
  display: block;
  border: 0;
}
.article-content iframe[src*="open.spotify.com"],
.article-content .wp-block-embed-spotify iframe {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 152px;
  display: block;
  border: 0;
}
.article-content iframe[src*="open.spotify.com/embed/album"],
.article-content iframe[src*="open.spotify.com/embed/playlist"] {
  min-height: 352px;
}
.article-content img {
  max-width: 100%;
  height: auto;
}

/* Paginação WordPress */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 3rem;
}
.nav-links a, .nav-links span {
  padding: 10px 16px;
  border: 1px solid #d4d4d4;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  color: #0B0B0E;
}
.nav-links span.current, .nav-links a:hover {
  background: #0B0B0E;
  color: #FFFFFF;
  border-color: #0B0B0E;
}
