/*
Theme Name: Espaço Teen
Theme URI: https://espacoteen.com.br
Author: OneDigital
Author URI: https://espacoteen.com.br
Description: Tema editorial pop culture oficial do portal Espaço Teen — Música, Influenciadores, Famosos, Cinema & Séries e Teatro.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: espaco-teen
*/

:root {
  --bg-cream: #FBF8F1;
  --ink: #141414;
  --ink-soft: #4A4A4A;
  --yellow: #FFE600;
  --mint: #A8E6CF;
  --lilac: #D9C4FF;
  --yellow-soft: #FFF7CC;
  --sky-soft: #D9F0FF;
  --coral: #FF8A65;
  --white: #FFFFFF;
  --border: 2px solid #141414;
  --shadow-sm: 4px 4px 0px #141414;
  --shadow-md: 6px 6px 0px #141414;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ================= HEADER & NAV ================= */
.site-header {
  background-color: var(--ink);
  color: var(--white);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 100;
}

body.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo svg {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--white);
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: var(--yellow);
  color: var(--ink);
}

.header-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(255, 230, 0, 0.14);
  border: 1.5px solid var(--yellow);
  color: var(--yellow);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.header-social:hover {
  background-color: var(--yellow);
  color: var(--ink);
  transform: translateY(-2px);
}

/* ================= INTRO STRIP ================= */
.welcome-strip {
  background-color: var(--yellow);
  border-bottom: var(--border);
  padding: 10px 24px;
}

.welcome-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  font-weight: 700;
}

.welcome-tagline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.insta-pill {
  background: var(--ink);
  color: var(--yellow);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* ================= CONTAINER & SECTION HEADERS ================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-block {
  padding: 56px 0;
  border-bottom: var(--border);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border: var(--border);
  border-radius: 999px;
  background-color: var(--white);
  margin-bottom: 10px;
  box-shadow: 2px 2px 0px var(--ink);
}

.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.85rem, 3vw, 2.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-counter {
  font-size: 0.82rem;
  font-weight: 800;
  background: var(--white);
  border: var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}

.arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: var(--border);
  background-color: var(--white);
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 3px 3px 0px var(--ink);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.arrow-btn:hover {
  background-color: var(--yellow);
  transform: translate(-1px, -1px);
}

.arrow-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px var(--ink);
}

.see-all-link {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 9px 15px;
  border: var(--border);
  border-radius: 999px;
  background-color: var(--ink);
  color: var(--yellow);
  transition: transform 0.15s ease;
}

.see-all-link:hover {
  transform: translateY(-2px);
}

/* ================= HERO: POSTS RECENTES (4) + MAIS LIDAS ================= */
.hero-section {
  background-color: var(--bg-cream);
  background-image: radial-gradient(#14141422 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  padding: 40px 0 56px;
  border-bottom: var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1.2fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.hero-lead-card {
  background-color: var(--white);
  border: var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease;
}

.hero-lead-card:hover {
  transform: translateY(-3px);
}

.hero-lead-img-wrap {
  position: relative;
  height: 290px;
  border-bottom: var(--border);
  overflow: hidden;
}

.hero-lead-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background-color: var(--yellow);
  color: var(--ink);
}

.badge-cat.mint { background-color: var(--mint); }
.badge-cat.lilac { background-color: var(--lilac); }
.badge-cat.sky { background-color: var(--sky-soft); }
.badge-cat.coral { background-color: var(--coral); }

.hero-lead-img-wrap .badge-cat {
  position: absolute;
  top: 14px;
  left: 14px;
  box-shadow: 2px 2px 0px var(--ink);
}

.hero-lead-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 14px;
}

.hero-lead-title {
  font-family: 'Fraunces', serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.22;
  color: var(--ink);
}

.hero-lead-excerpt {
  font-size: 0.94rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.card-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1.5px solid #ECE8DF;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.read-cta {
  color: var(--ink);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hero-stack-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.hero-side-card {
  background-color: var(--white);
  border: var(--border);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition: transform 0.2s ease;
}

.hero-side-card:hover {
  transform: translateY(-2px);
}

.hero-side-card.accent-mint { box-shadow: 5px 5px 0px var(--mint), 5px 5px 0px 2px var(--ink); }
.hero-side-card.accent-lilac { box-shadow: 5px 5px 0px var(--lilac), 5px 5px 0px 2px var(--ink); }
.hero-side-card.accent-yellow { box-shadow: 5px 5px 0px var(--yellow), 5px 5px 0px 2px var(--ink); }

.hero-side-thumb {
  width: 112px;
  height: 112px;
  border-radius: 12px;
  border: 1.5px solid var(--ink);
  object-fit: cover;
  flex-shrink: 0;
}

.hero-side-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  flex: 1;
}

.hero-side-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.time-tag {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-side-title {
  font-family: 'Fraunces', serif;
  font-size: 1.04rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

/* Coluna Direita: Mais Lidas */
.most-read-box {
  background-color: var(--ink);
  color: var(--white);
  border: var(--border);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 6px 6px 0px var(--yellow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.most-read-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.16);
  margin-bottom: 14px;
}

.most-read-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  color: var(--yellow);
  text-transform: uppercase;
}

.most-read-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mint);
  border: 1px solid var(--mint);
  padding: 3px 9px;
  border-radius: 999px;
}

.most-read-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: space-between;
}

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.15s ease;
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.most-read-item:hover {
  transform: translateX(3px);
}

.rank-num {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 900;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--yellow);
  min-width: 28px;
}

.most-read-item:nth-child(2) .rank-num { color: var(--mint); }
.most-read-item:nth-child(3) .rank-num { color: var(--lilac); }
.most-read-item:nth-child(4) .rank-num { color: var(--coral); }
.most-read-item:nth-child(5) .rank-num { color: var(--sky-soft); }

.most-read-cat {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint);
  margin-bottom: 3px;
}

.most-read-link {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--white);
}

/* ================= CARROSSEL HORIZONTAL (9 MATÉRIAS POR EDITORIA) ================= */
.carousel-track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 4px 18px;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.editorial-card {
  flex: 0 0 calc((100% - 44px) / 3);
  min-width: 295px;
  background-color: var(--white);
  border: var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
}

.card-thumb-wrap {
  position: relative;
  height: 195px;
  border-bottom: var(--border);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.card-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 12px;
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
}

.card-excerpt {
  font-size: 0.87rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* --- Seção 1: MÚSICA (Menta + Washi Tape) --- */
.section-musica {
  background-color: #E7F9F1;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(20, 20, 20, 0.03) 0px,
    rgba(20, 20, 20, 0.03) 2px,
    transparent 2px,
    transparent 14px
  );
}

.washi-tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 92px;
  height: 22px;
  background-color: rgba(255, 230, 0, 0.88);
  border: 1.5px solid var(--ink);
  z-index: 5;
}

/* --- Seção 2: INFLUENCIADORES (9 Quadradinhos Lado a Lado) --- */
.section-influenciadores {
  background-color: var(--bg-cream);
}

.square-card {
  flex: 0 0 calc((100% - 66px) / 4);
  min-width: 245px;
  aspect-ratio: 4 / 5;
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--ink);
  color: var(--white);
  transition: transform 0.2s ease;
}

.square-card:hover {
  transform: translateY(-4px);
}

.square-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: transform 0.35s ease;
}

.square-card:hover img {
  transform: scale(1.05);
}

.square-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.55) 0%,
    rgba(20, 20, 20, 0.1) 42%,
    rgba(20, 20, 20, 0.92) 100%
  );
}

.square-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.square-index {
  background-color: var(--ink);
  color: var(--yellow);
  border: 1.5px solid var(--yellow);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

.square-title {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.28;
  color: var(--white);
  margin-bottom: 8px;
}

.square-cta {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Seção 3: FAMOSOS (Lilás Vibrante) --- */
.section-famosos {
  background-color: #EFE6FF;
}

.section-famosos .editorial-card {
  box-shadow: 6px 6px 0px var(--yellow), 6px 6px 0px 2px var(--ink);
}

/* --- Seção 4: CINEMA & SÉRIES (Amarelo Pastel Luminoso) --- */
.section-cinema {
  background-color: var(--yellow-soft);
  background-image: radial-gradient(#14141424 1.3px, transparent 1.3px);
  background-size: 16px 16px;
}

.rating-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--ink);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1.5px solid var(--yellow);
}

/* --- Seção 5: TEATRO (Azul Céu Editorial com Listras + Sombra Menta) --- */
.section-teatro {
  background-color: var(--sky-soft);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.35) 0px,
    rgba(255, 255, 255, 0.35) 18px,
    transparent 18px,
    transparent 36px
  );
}

.section-teatro .editorial-card {
  box-shadow: 6px 6px 0px var(--mint), 6px 6px 0px 2px var(--ink);
}

.ticket-stub {
  border-top: 2px dashed #14141455;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 800;
}

/* ================= SINGLE & ARCHIVE WORDPRESS ================= */
.wp-page-wrap {
  padding: 44px 0 64px;
}

.wp-article-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--white);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  padding: 32px;
}

.wp-article-cover {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 16px;
  border: var(--border);
  margin: 18px 0 24px;
}

.wp-entry-content {
  font-size: 1.04rem;
  line-height: 1.78;
  color: #222222;
}

.wp-entry-content p {
  margin-bottom: 18px;
}

.wp-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.wp-archive-grid .editorial-card {
  flex: none;
  min-width: 0;
}

/* ================= FOOTER ================= */
.site-footer {
  background-color: var(--ink);
  color: var(--white);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-desc {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #D4D4D4;
  max-width: 380px;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--yellow);
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 230, 0, 0.45);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-email {
  font-weight: 800;
  color: var(--yellow);
  font-size: 0.95rem;
  word-break: break-all;
}

.footer-bottom {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #A3A3A3;
}

/* ================= RESPONSIVO MOBILE ================= */
@media (max-width: 1024px) {
  .hero-grid,
  .wp-archive-grid {
    grid-template-columns: 1fr;
  }

  .editorial-card {
    flex: 0 0 calc((100% - 22px) / 2);
  }

  .square-card {
    flex: 0 0 calc((100% - 22px) / 2);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo svg {
    height: 40px;
  }

  .header-social {
    padding: 5px 10px;
    font-size: 0.74rem;
  }

  .main-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 6px;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 6px 11px;
    background-color: rgba(255, 255, 255, 0.08);
  }

  .welcome-strip {
    padding: 8px 14px;
  }

  .welcome-tagline {
    font-size: 0.78rem;
  }

  .container {
    padding: 0 14px;
  }

  .hero-section {
    padding: 20px 0 32px;
  }

  .hero-lead-img-wrap {
    height: 185px;
  }

  .hero-lead-body {
    padding: 14px;
    gap: 8px;
  }

  .hero-lead-title {
    font-size: 1.22rem;
  }

  .hero-lead-excerpt {
    font-size: 0.84rem;
  }

  .hero-side-card {
    padding: 10px;
    gap: 12px;
  }

  .hero-side-thumb {
    width: 84px;
    height: 84px;
  }

  .hero-side-title {
    font-size: 0.94rem;
  }

  .section-block {
    padding: 36px 0;
  }

  .editorial-card {
    flex: 0 0 84%;
    min-width: 260px;
  }

  .square-card {
    flex: 0 0 74%;
    min-width: 220px;
  }
}
