/*
Theme Name: Sintonia Teen Oficial
Theme URI: https://sintoniateen.com.br
Author: Sintonia Teen
Description: Tema editorial pop autoral para o portal Sintonia Teen com responsividade mobile editorial perfeita (ideal para prints), Hero Bento, carrosseis de 9 materias por categoria e integracao com Instagram.
Version: 4.0
License: GNU General Public License v2 or later
Text Domain: sintonia-teen
*/

:root {
  --pink: #E1278E;
  --pink-soft: #FFE6F4;
  --purple: #4B2882;
  --purple-soft: #EFE9FA;
  --acid: #E9F747;
  --sky: #BCE3FF;
  --ink: #121216;
  --muted: #5A5A6E;
  --surface: #FFFFFF;
  --bg: #FAFAFC;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --border-ink: 2px solid #121216;
  --shadow-pop: 4px 4px 0px #121216;
  --shadow-pink: 4px 4px 0px #E1278E;
  --shadow-purple: 4px 4px 0px #4B2882;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1320px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* TOP TICKER */
.top-ticker {
  background: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 0;
  border-bottom: 2px solid var(--pink);
  width: 100%;
}

.top-ticker .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ticker-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.ticker-badge {
  background: var(--acid);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticker-text {
  color: #F4F4F8;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.ticker-socials a {
  color: var(--acid);
  font-weight: 800;
  font-size: 12px;
}

/* HEADER */
.site-header {
  background: var(--surface);
  border-bottom: var(--border-ink);
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
  width: 100%;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.logo-link:hover {
  transform: scale(1.03);
}

.search-form {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: var(--border-ink);
  border-radius: 99px;
  padding: 6px 14px;
  box-shadow: 2px 2px 0px var(--ink);
}

.search-form input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
}

.search-form button {
  background: var(--pink);
  color: #FFF;
  border: none;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 99px;
  border: var(--border-ink);
  font-weight: 800;
  font-size: 13px;
  box-shadow: 3px 3px 0px var(--ink);
  transition: transform 0.15s ease;
  flex-shrink: 0;
  white-space: nowrap;
}

.header-cta:hover {
  transform: translate(-1px, -1px);
  background: var(--pink);
}

/* CATEGORY NAV PILLS */
.cat-nav {
  background: #FFFFFF;
  border-top: 1px solid #ECECF2;
  padding: 10px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
}

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

.cat-nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  white-space: nowrap;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 99px;
  border: 2px solid var(--ink);
  background: #FFFFFF;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.15s ease;
}

.cat-pill:hover,
.cat-pill.active-cat {
  background: var(--acid);
  transform: translateY(-2px);
  box-shadow: 2px 2px 0px var(--ink);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* HERO BENTO */
.hero-section {
  padding: 28px 0 16px;
}

.hero-bento {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.hero-main-card {
  position: relative;
  border-radius: var(--radius-xl);
  border: var(--border-ink);
  box-shadow: var(--shadow-pink);
  overflow: hidden;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--ink);
}

.hero-main-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: transform 0.4s ease;
}

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

.hero-main-overlay {
  position: relative;
  z-index: 2;
  padding: 20px 24px 22px;
  background: linear-gradient(to top, rgba(18, 18, 22, 0.92) 0%, rgba(18, 18, 22, 0.52) 65%, transparent 100%);
  color: #FFFFFF;
}

.tag-badge {
  display: inline-block;
  background: var(--acid);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.tag-badge.pink {
  background: var(--pink);
  color: #FFFFFF;
}

.tag-badge.purple {
  background: var(--purple);
  color: #FFFFFF;
}

.tag-badge.sky {
  background: var(--sky);
  color: var(--ink);
}

.hero-main-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* HERO SIDE STACK (3 RECTANGLES) */
.hero-side-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.hero-side-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: var(--border-ink);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  flex: 1;
}

.hero-side-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px var(--pink);
}

.hero-side-thumb {
  width: 112px;
  height: 112px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--ink);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--purple-soft);
}

.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-info {
  flex: 1;
  min-width: 0;
}

.hero-side-title {
  font-size: 15.5px;
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card:hover .hero-side-title {
  color: var(--pink);
}

.hero-side-date {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

/* MAIN LAYOUT + SIDEBAR */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  padding: 28px 0 60px;
  align-items: start;
}

/* CATEGORY CAROUSEL SECTIONS */
.cat-section {
  margin-bottom: 42px;
  scroll-margin-top: 130px;
}

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  flex-wrap: wrap;
}

.cat-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cat-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: var(--border-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  background: var(--acid);
  flex-shrink: 0;
}

.cat-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.carousel-indicator {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-right: 4px;
}

.carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: var(--border-ink);
  background: #FFFFFF;
  color: var(--ink);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px var(--ink);
  transition: all 0.15s ease;
}

.carousel-btn:hover {
  background: var(--pink);
  color: #FFFFFF;
  transform: translate(-1px, -1px);
}

.cat-see-all {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1.5px solid var(--ink);
  background: var(--surface);
  margin-left: 6px;
  white-space: nowrap;
}

.cat-see-all:hover {
  background: var(--acid);
}

.carousel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.post-card {
  background: var(--surface);
  border: var(--border-ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card.hidden-slide {
  display: none;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 5px 5px 0px var(--purple);
}

.post-card-thumb {
  position: relative;
  height: 185px;
  border-bottom: var(--border-ink);
  overflow: hidden;
  background: var(--pink-soft);
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.post-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.post-card:hover .post-card-title {
  color: var(--pink);
}

.post-card-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* SIDEBAR */
.sidebar-sticky {
  position: sticky;
  top: 125px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--surface);
  border: var(--border-ink);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-pop);
}

/* INSTAGRAM WIDGET */
.ig-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #ECECF2;
}

.ig-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ig-avatar-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #FFD60A, #E1278E, #4B2882);
  flex-shrink: 0;
}

.ig-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--pink);
}

.ig-handle {
  font-size: 13.5px;
  font-weight: 800;
  display: block;
}

.ig-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.ig-follow-btn {
  background: var(--pink);
  color: #FFFFFF;
  border: 1.5px solid var(--ink);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  box-shadow: 2px 2px 0px var(--ink);
}

.ig-follow-btn:hover {
  background: var(--purple);
}

/* TOP 5 MAIS LIDAS */
.widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.most-read-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed #DCDCE6;
}

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

.rank-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--acid);
  border: 1.5px solid var(--ink);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.most-read-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.35;
}

.most-read-item:hover .most-read-title {
  color: var(--pink);
}

/* SINGLE POST CLEAN FULL-WIDTH */
.single-wrapper {
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 36px 0 64px;
}

.single-article {
  background: var(--surface);
  border: var(--border-ink);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-pop);
  width: 100%;
}

.single-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(22px, 3.6vw, 40px);
  font-weight: 800;
  line-height: 1.18;
  margin: 12px 0 16px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.single-meta {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid #ECECF2;
}

.single-featured-img {
  border-radius: var(--radius-lg);
  border: var(--border-ink);
  overflow: hidden;
  margin-bottom: 28px;
  background: #F4F4F8;
}

.single-featured-img img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
}

.single-content {
  font-size: 17px;
  line-height: 1.8;
  color: #24242E;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.single-content p {
  margin-bottom: 20px;
}

.single-content img {
  width: auto;
  max-width: 100%;
  height: auto !important;
  border-radius: var(--radius-md);
  margin: 20px auto;
}

.single-content h2, .single-content h3 {
  font-family: 'Syne', sans-serif;
  margin: 28px 0 14px;
}

/* FOOTER */
.site-footer {
  background: var(--ink);
  color: #FFFFFF;
  border-top: 4px solid var(--pink);
  padding: 44px 0 28px;
  width: 100%;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

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

.footer-copy {
  padding-top: 20px;
  font-size: 12px;
  color: #A0A0B4;
  text-align: center;
}

/* =========================================================
   RESPONSIVO MOBILE — OTIMIZADO PARA CELULAR E PRINTS
   ========================================================= */
@media (max-width: 1024px) {
  .hero-bento {
    grid-template-columns: 1fr;
  }
  .content-layout {
    grid-template-columns: 1fr;
  }
  .sidebar-sticky {
    position: static;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 0 14px;
  }

  /* Barra superior compacta e sem corte */
  .top-ticker {
    padding: 5px 0;
    font-size: 11px;
  }
  .ticker-socials {
    display: none;
  }

  /* Header enxuto no mobile para dar espaço ao conteudo */
  .site-header {
    position: relative;
  }
  .header-main {
    padding: 10px 0;
    gap: 10px;
  }
  .logo-link svg {
    width: 132px;
    height: 41px;
  }
  .search-form {
    display: none;
  }
  .header-cta {
    padding: 7px 12px;
    font-size: 11px;
    box-shadow: 2px 2px 0px var(--ink);
  }

  /* Pílulas de categorias menores no mobile */
  .cat-nav {
    padding: 7px 0;
  }
  .cat-nav-list {
    gap: 7px;
  }
  .cat-pill {
    padding: 5px 11px;
    font-size: 11px;
    border-width: 1.5px;
  }

  /* Hero mobile */
  .hero-section {
    padding: 16px 0 10px;
  }
  .hero-main-card {
    min-height: 320px;
    border-radius: 18px;
  }
  .hero-main-overlay {
    padding: 16px;
  }
  .hero-main-title {
    font-size: 18px;
    line-height: 1.24;
  }
  .hero-side-card {
    padding: 10px;
    gap: 12px;
  }
  .hero-side-thumb {
    width: 88px;
    height: 88px;
  }
  .hero-side-title {
    font-size: 14px;
  }

  /* Cabeçalho das seções (Cinema & Séries, Música, etc.) sem quebrar */
  .cat-section {
    margin-bottom: 30px;
  }
  .cat-section-header {
    gap: 8px;
    padding-bottom: 8px;
    margin-bottom: 14px;
  }
  .cat-icon-box {
    width: 28px;
    height: 28px;
    font-size: 13px;
    border-radius: 8px;
  }
  .cat-section-title {
    font-size: 16.5px;
  }
  .carousel-controls {
    gap: 5px;
  }
  .carousel-indicator {
    font-size: 11px;
  }
  .carousel-btn {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
  .cat-see-all {
    padding: 4px 9px;
    font-size: 11px;
    margin-left: 2px;
  }

  .carousel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* PAGINA DA MATERIA ABERTA NO CELULAR (VISUAL EDITORIAL PARA PRINT) */
  .single-wrapper {
    padding: 14px 0 36px;
  }
  .single-article {
    padding: 18px 16px 24px;
    border-radius: 18px;
    box-shadow: 3px 3px 0px var(--ink);
  }
  .single-article .tag-badge {
    font-size: 10px;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .single-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin: 4px 0 10px;
    word-break: break-word;
  }
  .single-meta {
    font-size: 11.5px;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }
  .single-featured-img {
    margin-bottom: 18px;
    border-radius: 12px;
  }
  .single-content {
    font-size: 15.5px;
    line-height: 1.7;
  }
}
