/*
Theme Name: Leoa Ruiva Portal
Theme URI: https://www.leoaruiva.com
Author: Leoa Ruiva
Description: Tema customizado para o portal editorial Leoa Ruiva.
Version: 0.5.6
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.1
Text Domain: leoa-ruiva-portal
*/

:root {
  --purple-950: #23024b;
  --purple-900: #310062;
  --purple-800: #4a0a83;
  --purple-700: #6515a2;
  --purple-100: #f2e6fb;
  --orange-700: #d93e10;
  --orange-600: #ef5a24;
  --orange-500: #ff7a2b;
  --gold: #f7b955;
  --ink: #221329;
  --muted: #67576f;
  --line: #eadcf1;
  --paper: #fffaf7;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(47, 3, 91, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 6%, rgba(239, 90, 36, 0.12), transparent 23rem),
    radial-gradient(circle at 96% 14%, rgba(101, 21, 162, 0.10), transparent 25rem),
    linear-gradient(180deg, #fff 0, var(--paper) 36rem);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1240px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(46, 7, 95, 0.08);
}

.utility-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--purple-800);
  font-size: 0.86rem;
  font-weight: 800;
}

.utility-bar nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand-shell {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.72)),
    url("assets/images/aquarela-leoa.jpg") center / cover;
  border-top: 1px solid rgba(234, 223, 240, 0.75);
}

.brand-band {
  min-height: 170px;
  display: grid;
  grid-template-columns: 190px minmax(360px, 1fr) minmax(280px, 430px);
  align-items: center;
  gap: 18px;
}

.brand-logo img {
  max-width: 190px;
  max-height: 132px;
  object-fit: contain;
}

.brand-mark {
  width: 190px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background: transparent;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-copy {
  align-self: center;
}

.brand-title {
  display: block;
  font-family: Didot, "Bodoni MT", "Bodoni 72", "Libre Bodoni", Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 6.5vw, 5.6rem);
  font-weight: 500;
  line-height: 0.83;
  color: var(--purple-800);
  letter-spacing: 0;
}

.brand-title span { color: var(--orange-600); }

.brand-subtitle {
  display: block;
  margin-top: 14px;
  color: var(--purple-700);
  font-weight: 900;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid #d5c1e6;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 26px rgba(69, 13, 106, 0.08);
}

.search-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 0 16px;
  outline: 0;
  background: transparent;
}

.search-form button {
  width: 50px;
  height: 46px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--purple-800);
  font-size: 1.1rem;
  cursor: pointer;
}

.main-nav {
  min-height: 50px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-900), var(--purple-800) 60%, var(--purple-950));
}

.main-nav ul {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  list-style: none;
}

.main-nav a {
  display: block;
  padding: 17px 14px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a:hover { background: var(--orange-600); }

.site-main { padding: 18px 0 34px; }

.lead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.82fr) minmax(250px, 0.72fr);
  gap: 16px;
}

.hero-story,
.section-block,
.headline-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-story {
  min-height: 450px;
  position: relative;
  overflow: hidden;
}

.hero-story img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.hero-story::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(29, 4, 53, 0.90), rgba(29, 4, 53, 0.44) 52%, rgba(29, 4, 53, 0.05)),
    linear-gradient(0deg, rgba(25, 3, 47, 0.42), transparent 45%);
}

.story-overlay {
  position: absolute;
  z-index: 1;
  left: clamp(20px, 4vw, 42px);
  bottom: clamp(20px, 4vw, 38px);
  max-width: 590px;
  color: var(--white);
}

.story-overlay h1 {
  margin: 16px 0 12px;
  font-size: clamp(2.1rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.story-overlay p {
  max-width: 520px;
  margin: 0 0 20px;
  font-size: 1.06rem;
  line-height: 1.5;
}

.hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.hero-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--white);
  opacity: 0.9;
}

.hero-dots span:first-child { background: var(--orange-500); }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  background: var(--purple-700);
  color: var(--white);
  font-size: 0.70rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-700), var(--orange-600));
  box-shadow: 0 12px 22px rgba(87, 12, 127, 0.16);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.button-outline {
  border: 1px solid rgba(255, 255, 255, 0.85);
  background: rgba(74, 10, 131, 0.35);
}

.secondary-stack { display: grid; gap: 16px; }

.feature-card {
  min-height: 217px;
  padding: 20px;
  border-radius: 8px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(135deg, rgba(35, 2, 75, 0.88), rgba(35, 2, 75, 0.50) 56%, rgba(239, 90, 36, 0.62)),
    url("assets/images/hero-editorial.jpg") center / cover;
  box-shadow: var(--shadow);
}

.feature-card:nth-child(even) {
  background:
    linear-gradient(135deg, rgba(239, 90, 36, 0.78), rgba(74, 10, 131, 0.78) 52%, rgba(35, 2, 75, 0.86)),
    url("assets/images/aquarela-leoa.jpg") center / cover;
}

.feature-card h2 {
  margin: 12px 0;
  font-size: 1.35rem;
  line-height: 1.17;
}

.feature-card a {
  width: max-content;
  font-weight: 800;
}

.headline-list,
.section-block { padding: 18px; }

.headline-list h2,
.section-heading h2,
.archive-title {
  margin: 0;
  color: var(--purple-800);
  font-size: 1.38rem;
  text-transform: uppercase;
}

.headline-list a {
  display: block;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  line-height: 1.28;
  font-weight: 800;
}

.headline-list span {
  display: block;
  margin-bottom: 4px;
  color: var(--purple-700);
  font-size: 0.70rem;
  text-transform: uppercase;
}

.ad-banner,
.newsletter {
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(84, 11, 138, 0.78), rgba(166, 28, 143, 0.64), rgba(239, 90, 36, 0.72)),
    url("assets/images/aquarela-leoa.jpg") center / cover;
  color: var(--white);
  box-shadow: var(--shadow);
}

.ad-banner {
  min-height: 112px;
  padding: 20px clamp(18px, 4vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ad-banner p {
  margin: 0 0 4px;
  font-size: 1.04rem;
}

.ad-banner strong {
  color: #ffe6d5;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 4vw, 3.8rem);
  font-weight: 400;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.section-heading a,
.entry-card > a:last-child {
  color: var(--purple-800);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cards-row,
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.entry-card {
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(47, 3, 91, 0.08);
}

.entry-card .entry-thumb {
  min-height: 140px;
  display: block;
  background: linear-gradient(135deg, #49227a, #f2c9a7);
}

.entry-thumb img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.entry-thumb-demo {
  background:
    linear-gradient(180deg, rgba(35, 2, 75, 0.10), rgba(35, 2, 75, 0.32)),
    url("assets/images/aquarela-leoa.jpg") center / cover !important;
}

.entry-card .tag {
  margin: -15px 12px 0;
  position: relative;
}

.entry-card h3 {
  min-height: 70px;
  margin: 12px 12px 10px;
  font-size: 1rem;
  line-height: 1.35;
}

.entry-card p {
  margin: 0 12px 14px;
  color: var(--muted);
  line-height: 1.45;
}

.entry-card > a:last-child {
  display: inline-block;
  margin: 0 12px 16px;
}

.content-columns {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 0.92fr 1.22fr 0.95fr;
  gap: 16px;
}

.event-list { display: grid; gap: 12px; }

.event-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.event-list time {
  display: grid;
  place-items: center;
  height: 54px;
  border-radius: 7px;
  color: var(--white);
  background: linear-gradient(160deg, var(--purple-700), var(--purple-950));
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
}

.event-list p {
  margin: 0;
}

.event-list span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.zodiac-grid a {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--purple-800);
  background:
    radial-gradient(circle at 28% 20%, rgba(239, 90, 36, 0.20), transparent 29px),
    radial-gradient(circle at 72% 60%, rgba(101, 21, 162, 0.18), transparent 31px),
    #fff;
  font-weight: 900;
}

.column-callouts {
  display: grid;
  gap: 12px;
}

.column-callouts p {
  margin: 0;
  padding-left: 13px;
  border-left: 3px solid var(--orange-600);
  line-height: 1.45;
}

.column-callouts strong { color: var(--purple-800); }

.newsletter {
  min-height: 108px;
  padding: 18px 28px;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.newsletter h2 {
  margin: 0;
  text-transform: uppercase;
}

.newsletter p { margin: 6px 0 0; }

.newsletter form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.newsletter input {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  padding: 0 12px;
}

.single-content,
.archive-content {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.page-content {
  width: min(980px, calc(100% - 32px));
}

.single-content h1 {
  margin-top: 0;
  color: var(--purple-800);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.05;
}

.entry-meta { color: var(--muted); font-weight: 800; }

.entry-content {
  width: min(780px, 100%);
  max-width: 100%;
  margin: 0 auto;
  color: #2d2232;
  font-size: 1.08rem;
  line-height: 1.75;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content p,
.entry-content li {
  margin: 0 0 1.15em;
}

.entry-content div:not(.separator),
.entry-content p,
.entry-content span,
.entry-content table {
  width: auto !important;
  max-width: 100% !important;
  float: none !important;
  white-space: normal !important;
}

.entry-content div:not(.separator),
.entry-content p,
.entry-content table {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.entry-content div:not(.separator),
.entry-content p {
  display: block !important;
}

.entry-content p,
.entry-content div:not(.separator),
.entry-content span {
  text-align: left !important;
}

.entry-content table {
  width: 100% !important;
  border-collapse: collapse;
}

.entry-content img,
.entry-content iframe,
.entry-content video {
  max-width: 100%;
}

.entry-content img {
  height: auto;
}

.entry-content .separator,
.entry-content .wp-caption,
.entry-content figure {
  max-width: 100% !important;
  margin: 22px auto;
  text-align: center !important;
}

.entry-content .separator img,
.entry-content figure img,
.entry-content .wp-caption img {
  display: block;
  margin: 0 auto;
}

footer.site-footer {
  width: 100%;
  margin-top: 18px;
  padding: 32px max(20px, calc((100% - 1240px) / 2));
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr 0.9fr;
  gap: 28px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(35, 2, 75, 0.98), rgba(74, 10, 131, 0.96)),
    url("assets/images/aquarela-leoa.jpg") center / cover;
}

.footer-brand .brand-mark {
  width: 96px;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 12px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--orange-500);
  font-size: 2rem;
}

.site-footer nav,
.site-footer address {
  display: grid;
  gap: 8px;
  align-content: start;
  font-style: normal;
}

.site-footer strong { text-transform: uppercase; }
.site-footer span { color: #eadff3; line-height: 1.4; }

@media (max-width: 1060px) {
  .brand-band {
    grid-template-columns: 116px 1fr;
  }

  .brand-band .search-form {
    grid-column: 1 / -1;
    margin-bottom: 18px;
  }

  .lead-grid,
  .content-columns { grid-template-columns: 1fr 1fr; }
  .hero-story,
  .headline-list { grid-column: 1 / -1; }
  .cards-row,
  .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { grid-template-columns: 1fr; }
  footer.site-footer { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .utility-bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 0;
  }

  .utility-bar nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand-band {
    min-height: 238px;
    grid-template-columns: 76px 1fr;
    align-items: end;
    padding: 18px 0;
  }

  .brand-mark { width: 76px; }
  .brand-title { font-size: clamp(2.5rem, 15vw, 4rem); }
  .brand-subtitle { font-size: 0.78rem; }
  .search-form { width: 100%; }

  .lead-grid,
  .secondary-stack,
  .content-columns,
  .cards-row,
  .archive-grid,
  footer.site-footer { grid-template-columns: 1fr; }

  .hero-story,
  .hero-story img { min-height: 480px; }
  .hero-story::after { background: linear-gradient(180deg, rgba(24, 7, 44, 0.22), rgba(24, 7, 44, 0.92)); }
  .story-overlay { right: 20px; }
  .story-overlay h1 { font-size: 2rem; }
  .ad-banner { align-items: flex-start; flex-direction: column; }
  .zodiac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .newsletter form { grid-template-columns: 1fr; }
}
