:root {
  --primary: #3b82f6;
  --primary-dark: #1d4ed8;
  --dark: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --radius: 12px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.brand span {
  color: var(--primary);
}

.nav {
  margin-left: auto;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

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

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 0;
}

.nav a:hover {
  color: var(--primary);
}

main {
  padding: 24px 16px 48px;
}

.page-title {
  font-size: 26px;
  margin-bottom: 18px;
  color: var(--dark);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.card-img-ph {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
  position: relative;
}

.card-img-ph::after {
  content: "HistóriaDoDia";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 800;
  opacity: 0.65;
}

.card-body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.badge {
  display: inline-block;
  align-self: flex-start;
  background: #dbeafe;
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 999px;
}

.card h3 {
  font-size: 17px;
  line-height: 1.35;
  color: var(--dark);
}

.card p {
  font-size: 14px;
  color: var(--muted);
}

.card time {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: auto;
  padding-top: 8px;
}

.article {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  padding: 22px 18px 30px;
}

@media (min-width: 768px) {
  .article {
    padding: 36px 40px 44px;
  }
}

.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.breadcrumb a {
  font-weight: 600;
}

.article h1 {
  font-size: 27px;
  line-height: 1.25;
  color: var(--dark);
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .article h1 {
    font-size: 34px;
  }
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.article-meta time {
  font-size: 14px;
  color: var(--muted);
}

.article-content {
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
}

.article-content p {
  margin: 0 0 20px;
}

.article-paragraph {
  position: relative;
}

.article-image {
  display: block;
  margin: 22px 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.share-btn {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-family: inherit;
}

.share-btn.fb { background: #1877f2; }
.share-btn.tw { background: #0f172a; }
.share-btn.wa { background: #25d366; }
.share-btn.copy { background: var(--muted); }

.share-btn:hover {
  filter: brightness(0.92);
}

.related {
  max-width: 1100px;
  margin: 40px auto 0;
}

.related h2 {
  font-size: 21px;
  color: var(--dark);
  margin-bottom: 16px;
}

.ad-slot {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}

.ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted-2);
  margin-bottom: 4px;
}

.ad-inner {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.ad-between {
  margin: 24px auto;
}

#ad-header,
#ad-below-menu,
#ad-above-footer {
  margin: 14px auto 0;
}

.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
}

.site-footer {
  background: var(--dark);
  color: #cbd5e1;
  padding: 34px 0;
  margin-top: 20px;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-brand span {
  color: var(--primary);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 12px;
  color: #64748b;
}
