
:root {
  --bg: #eef5f7;
  --card: rgba(255,255,255,.82);
  --card-strong: #ffffff;
  --line: rgba(11,31,72,.08);
  --ink: #071841;
  --muted: #587098;
  --blue-1: #9fe6ff;
  --blue-2: #65c8ff;
  --blue-3: #245ca8;
  --navy-1: #061238;
  --navy-2: #10265b;
  --purple: #6a65ff;
  --shadow: 0 30px 60px rgba(5, 14, 42, .10);
  --radius: 26px;
  --radius-sm: 18px;
  --container: min(1320px, calc(100vw - 48px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fbfd 0%, #eef4f9 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(248, 252, 255, .84);
  border-bottom: 1px solid rgba(9, 31, 63, .07);
}
.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img { width: 170px; height: auto; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.header-actions > a {
  color: var(--ink);
  font-weight: 800;
  opacity: .85;
}
.header-actions > a:hover { opacity: 1; }
.socials { display: flex; align-items: center; gap: 12px; }
.social-link {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(101,200,255,.15), rgba(106,101,255,.10));
  color: #18406f; box-shadow: inset 0 0 0 1px rgba(24,64,111,.08);
}
.social-link svg { width: 20px; height: 20px; }

.hero {
  padding: 40px 0 22px;
}
.hero-inner {
  border-radius: 34px;
  padding: 48px;
  background: radial-gradient(circle at 10% 20%, rgba(155, 236, 255, .24), transparent 28%),
              radial-gradient(circle at 85% 80%, rgba(118, 104, 255, .16), transparent 20%),
              linear-gradient(135deg, #123860 0%, #07163e 58%, #08194b 100%);
  color: #f5fbff;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 30px;
  box-shadow: var(--shadow);
}
.eyebrow, .mini, .article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 16px;
  background: rgba(255,255,255,.12);
  color: #b6ebff;
  font-size: .92rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1, .about-copy h2, .newsletter-copy h2, .section-heading h2, .related h2, .article-hero h1 {
  font-family: 'Fredoka', sans-serif;
  line-height: .98;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
}
.hero h1 { font-size: clamp(2.7rem, 6vw, 5.1rem); max-width: 12ch; }
.gradient-word { background: linear-gradient(90deg, #cbf6ff, #87daff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0; max-width: 54ch; font-size: 1.1rem; color: rgba(255,255,255,.86); }
.hero-note {
  align-self: end;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 24px;
  padding: 24px;
}
.hero-note strong { font-family: 'Fredoka', sans-serif; font-size: 1.35rem; display: block; margin-bottom: 12px; }
.hero-note p { color: rgba(255,255,255,.75); }

.category-shell { padding: 10px 0 10px; }
.category-tabs {
  display: flex; gap: 14px; flex-wrap: wrap;
}
.category-tab {
  border: 0; cursor: pointer; border-radius: 999px; padding: 14px 18px;
  background: rgba(255,255,255,.8); color: #14386f; font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 18, 56, .07), inset 0 0 0 1px rgba(20,56,111,.08);
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.category-tab:hover { transform: translateY(-2px); }
.category-tab.active {
  color: white;
  background: linear-gradient(135deg, #61d6ff, #2d7bda 58%, #735cff 100%);
  box-shadow: 0 18px 30px rgba(36, 92, 168, .24);
}
.tab-icon { margin-right: 8px; }

.content-zone {
  position: relative;
  overflow: hidden;
  padding: 28px 0 44px;
  margin-top: 8px;
}
.content-zone::before {
  content: '';
  position: absolute; inset: 12px 16px; border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.65), rgba(255,255,255,.78));
  box-shadow: var(--shadow);
  z-index: 0;
}
.content-zone[data-theme="tudo"]::after,
.content-zone[data-theme="filmes"]::after,
.content-zone[data-theme="series"]::after,
.content-zone[data-theme="livros"]::after,
.content-zone[data-theme="games"]::after {
  content: '';
  position: absolute; inset: 12px 16px; border-radius: 34px; opacity: .38; z-index: 0;
}
.content-zone[data-theme="tudo"]::after {
  background: radial-gradient(circle at 15% 15%, rgba(142, 229, 255, .35), transparent 20%),
              radial-gradient(circle at 80% 85%, rgba(109, 105, 255, .16), transparent 20%);
}
.content-zone[data-theme="filmes"]::after {
  background: radial-gradient(circle at 10% 20%, rgba(255, 96, 96, .14), transparent 18%), radial-gradient(circle at 85% 80%, rgba(255, 205, 107, .16), transparent 18%);
}
.content-zone[data-theme="series"]::after {
  background: radial-gradient(circle at 15% 20%, rgba(114, 133, 255, .16), transparent 18%), radial-gradient(circle at 80% 78%, rgba(126, 217, 255, .16), transparent 18%);
}
.content-zone[data-theme="livros"]::after {
  background: radial-gradient(circle at 12% 20%, rgba(232, 180, 92, .20), transparent 18%), radial-gradient(circle at 78% 82%, rgba(123, 76, 33, .18), transparent 18%);
}
.content-zone[data-theme="games"]::after {
  background: radial-gradient(circle at 10% 20%, rgba(73, 255, 220, .18), transparent 18%), radial-gradient(circle at 86% 80%, rgba(88, 147, 255, .18), transparent 18%);
}
.theme-symbols {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .15;
}
.theme-symbols span {
  position: absolute; font-size: clamp(1.2rem, 2vw, 2rem);
}
.content-zone .container { position: relative; z-index: 1; }
.section-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px;
}
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 8px; color: #0b1f48; }
.section-heading p { color: var(--muted); max-width: 48ch; }

.posts-grid, .related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}
.post-card {
  background: var(--card-strong);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(7, 24, 65, .08);
  transition: transform .24s ease, box-shadow .24s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 22px 42px rgba(7,24,65,.14); }
.post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card-body { padding: 16px 16px 18px; }
.post-pill {
  display: inline-flex; border-radius: 999px; padding: 6px 12px; margin-bottom: 12px;
  background: rgba(101,200,255,.18); color: #1e5d98; font-size: .8rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
}
.post-card h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.25; }
.post-card p { margin: 0 0 12px; color: var(--muted); font-size: .96rem; }
.post-meta { color: #8394b3; font-size: .9rem; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.empty-state {
  grid-column: 1/-1; min-height: 240px; display: grid; place-items: center; text-align: center;
  background: rgba(255,255,255,.7); border-radius: 26px; border: 1px dashed rgba(12, 39, 84, .12);
  padding: 30px;
}
.empty-state strong { font-family: 'Fredoka', sans-serif; font-size: 2rem; display: block; margin-bottom: 10px; }
.empty-state p { color: var(--muted); margin: 0; max-width: 44ch; }

.about, .newsletter, .related { padding: 34px 0; }
.about-card, .newsletter-card {
  display: grid; grid-template-columns: .95fr 1.3fr; gap: 34px;
  border-radius: 38px; padding: 36px;
  background: radial-gradient(circle at 6% 10%, rgba(107, 214, 255, .13), transparent 20%),
              radial-gradient(circle at 92% 90%, rgba(136, 109, 255, .16), transparent 20%),
              linear-gradient(135deg, #0d3455 0%, #061744 62%, #101b57 100%);
  color: #f8fcff;
  box-shadow: var(--shadow);
}
.about-art {
  display: flex; align-items: center; justify-content: center; min-height: 300px;
}
.about-art img { max-height: 340px; width: auto; }
.about-copy h2 { font-size: clamp(2.4rem, 5vw, 4.2rem); margin-top: 0; }
.about-copy p { font-size: 1.1rem; line-height: 1.7; color: rgba(255,255,255,.88); margin: 0 0 14px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.about-tags span {
  border-radius: 999px; padding: 10px 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10); font-weight: 800;
}

.newsletter-card {
  grid-template-columns: 1fr 1fr;
  background: radial-gradient(circle at 10% 10%, rgba(112, 229, 255, .15), transparent 24%),
              radial-gradient(circle at 85% 85%, rgba(255, 208, 110, .14), transparent 18%),
              linear-gradient(135deg, #123350 0%, #12193d 58%, #47285f 100%);
}
.newsletter-copy h2 { font-size: clamp(2.3rem, 4.6vw, 4rem); margin-top: 18px; max-width: 10ch; }
.newsletter-copy p { font-size: 1.12rem; max-width: 38ch; color: rgba(255,255,255,.86); }
.newsletter-form { display: grid; gap: 14px; align-content: center; }
.newsletter-form input {
  min-height: 62px; border-radius: 20px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.10); color: white; padding: 0 20px;
}
.newsletter-form input::placeholder { color: rgba(228, 238, 255, .65); }
.newsletter-form button {
  min-height: 64px; border: 0; border-radius: 22px; cursor: pointer; font-weight: 900; font-size: 1.08rem;
  color: #05193f; background: linear-gradient(90deg, #4fdfff, #f3d06b);
  box-shadow: 0 18px 32px rgba(48, 125, 206, .22);
}
.form-note, .form-status { color: rgba(244, 248, 255, .76); }
.form-note { font-size: .92rem; margin: 0; }
.form-status { margin: 0; font-weight: 700; }

.footer { padding: 26px 0 42px; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-top: 1px solid rgba(8, 24, 65, .08); padding-top: 24px;
}
.footer-brand img { width: 128px; }
.footer-copy { color: var(--muted); text-align: right; line-height: 1.7; }
.footer-copy a { color: #165999; font-weight: 800; }

.article-page { background: linear-gradient(180deg, #fbfdff 0%, #f1f5f8 100%); }
.article-hero { padding: 42px 24px 24px; }
.article-hero-inner {
  width: min(1080px, calc(100vw - 48px)); margin: 0 auto; text-align: center;
}
.article-kicker { background: rgba(159, 230, 255, .24); color: #2b7195; }
.article-hero h1 { color: #0a1745; font-size: clamp(2.8rem, 7vw, 6rem); max-width: 13ch; margin-left: auto; margin-right: auto; }
.article-meta { color: #6d7f9f; font-size: 1.08rem; font-weight: 800; }
.article-cover-wrap {
  width: min(1080px, calc(100vw - 48px)); margin: 0 auto 26px;
}
.article-cover-wrap img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 48px rgba(9, 22, 62, .11);
}
.article-layout {
  width: min(1180px, calc(100vw - 48px)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 26px; align-items: start;
}
.article-body {
  background: rgba(255,255,255,.84); border-radius: 30px; box-shadow: 0 18px 40px rgba(11, 31, 72, .08);
  padding: 32px;
}
.article-body .lead { font-size: 1.34rem; line-height: 1.65; color: #142a5d; }
.article-body h2 { font-family: 'Fredoka', sans-serif; font-size: 2rem; color: #0e2455; margin: 34px 0 10px; }
.article-body p { color: #394f79; line-height: 1.85; font-size: 1.05rem; }
.article-aside { display: grid; gap: 18px; }
.aside-card {
  background: rgba(255,255,255,.84); border-radius: 24px; padding: 22px; box-shadow: 0 18px 40px rgba(11,31,72,.08);
}
.aside-card p { color: var(--muted); line-height: 1.7; }
.back-button {
  display: inline-flex; margin-top: 8px; border-radius: 999px; padding: 10px 14px; font-weight: 900;
  background: rgba(101,200,255,.18); color: #19588f;
}
.related-grid .post-card { background: rgba(255,255,255,.96); }

@media (max-width: 1024px) {
  .hero-inner, .about-card, .newsletter-card, .article-layout { grid-template-columns: 1fr; }
  .article-aside { order: 2; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-copy { text-align: center; }
}
@media (max-width: 720px) {
  :root { --container: min(1320px, calc(100vw - 28px)); }
  .header-inner { min-height: auto; padding: 14px 0; flex-direction: column; align-items: flex-start; }
  .header-actions { width: 100%; justify-content: space-between; gap: 12px; }
  .hero-inner, .about-card, .newsletter-card { padding: 28px 22px; }
  .section-heading { flex-direction: column; align-items: flex-start; }
  .about-art img { max-height: 260px; }
  .posts-grid, .related-grid { grid-template-columns: 1fr; }
}
