/*
Theme Name: ANEL Portal de Notícias
Theme URI: https://inteligencia.anelnacional.com.br
Author: Real Jardim Digital
Author URI: https://realjardimdigital.com.br
Description: Tema do Portal de Notícias da ANEL — Associação Nacional dos Empresários Lotéricos. Organiza matérias por categoria e mantém a chamada para associação sempre visível.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: anel-portal-noticias
*/

:root {
  --green: #2f7b4d;
  --green-dark: #225b3f;
  --accent: #F59F0A;
  --muted: #6b7280;
  --text: #0f172a;
  --radius: 14px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  --maxw: 1160px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: #ffffff;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.anel-container {
  width: min(var(--maxw), calc(100% - 40px));
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 20px 0;
}
.site-header .anel-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding a {
  font-size: 20px;
  font-weight: 800;
  color: var(--green-dark);
}
.primary-menu {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.primary-menu a {
  font-weight: 600;
  color: var(--text);
}
.primary-menu a:hover {
  color: var(--green);
}

/* ============ Acabamento premium ============ */

/* Cabeçalho editorial da matéria */
.anel-article {
  padding-bottom: 8px;
}
.anel-article-header {
  margin-bottom: 30px;
}
.anel-eyebrow {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .9px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.anel-eyebrow:hover {
  text-decoration: underline;
}
.anel-article-header h1 {
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -.6px;
  margin: 0 0 18px;
  color: var(--text);
  max-width: 20ch;
}
.anel-article-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 62ch;
}
.anel-article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 16px;
  border-top: 1px solid #eef2f0;
}
.anel-meta-sep {
  color: #cbd5d0;
}

/* Imagem de capa */
.anel-article-image {
  margin: 0 0 34px;
}
.anel-article-image img {
  width: 100%;
  border-radius: var(--radius);
}

/* Corpo do texto — medida de leitura confortável */
.anel-article-content {
  font-size: 17.5px;
  line-height: 1.75;
  color: #26322b;
  max-width: 68ch;
}
.anel-article-content p {
  margin: 0 0 22px;
}
.anel-article-content h2 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.2px;
  color: var(--green-dark);
  margin: 38px 0 14px;
}
.anel-article-content a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.anel-article-content a:hover {
  color: var(--green-dark);
}
.anel-article-content strong {
  color: var(--text);
}

/* Blocos da sidebar */
.anel-sidebar-block {
  border: 1px solid #e7ece9;
  border-radius: var(--radius);
  padding: 22px;
  background: #fff;
}
.anel-block-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.anel-block-title::before {
  content: "";
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
  flex: 0 0 auto;
}

/* Lista "Leia também" */
.anel-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.anel-related-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 14px;
  align-items: start;
  padding: 15px 0;
  border-top: 1px solid #eef2f0;
}
.anel-related-item:first-child {
  padding-top: 0;
  border-top: none;
}
.anel-related-item:last-child {
  padding-bottom: 0;
}
.anel-related-thumb {
  display: block;
  border-radius: 10px;
  overflow: hidden;
}
.anel-related-thumb img {
  display: block;
  width: 68px;
  height: 68px;
  object-fit: cover;
  transition: transform .25s ease;
}
.anel-related-item:hover .anel-related-thumb img {
  transform: scale(1.05);
}
.anel-related-body {
  min-width: 0;
}
.anel-related-cat {
  display: block;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.anel-related-title {
  display: block;
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--text);
}
.anel-related-title:hover {
  color: var(--green);
}
.anel-related-date {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11.5px;
}

/* Pills de categoria */
.anel-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.anel-pill {
  border: 1px solid #dfe7e2;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green-dark);
  background: #f7faf8;
  transition: background .2s ease, border-color .2s ease;
}
.anel-pill:hover {
  background: #eaf3ee;
  border-color: var(--green);
}

/* Cards com hover mais refinado */
.anel-card {
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.anel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15,23,42,.10);
}
.anel-card-image {
  display: block;
  overflow: hidden;
}
.anel-card-image img {
  transition: transform .35s ease;
}
.anel-card:hover .anel-card-image img {
  transform: scale(1.04);
}
.anel-card-body h3 a:hover {
  color: var(--green);
}

/* Destaque da home */
.anel-featured h1 {
  letter-spacing: -.5px;
}
.anel-featured-image {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
}
.anel-featured-image img {
  transition: transform .4s ease;
}
.anel-featured-image:hover img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .anel-card,
  .anel-card-image img,
  .anel-related-thumb img,
  .anel-featured-image img {
    transition: none;
  }
  .anel-card:hover,
  .anel-card:hover .anel-card-image img,
  .anel-related-item:hover .anel-related-thumb img,
  .anel-featured-image:hover img {
    transform: none;
  }
}

/* Layout com sidebar */
.anel-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  padding: 40px 0 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .anel-layout { grid-template-columns: 1fr; }
}

/* Destaque da home */
.anel-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}
.anel-featured-image img {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.anel-featured-category {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.anel-featured h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--text);
}
.anel-featured p {
  color: var(--muted);
  font-size: 17px;
}
@media (max-width: 900px) {
  .anel-featured { grid-template-columns: 1fr; }
}

.anel-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .anel-card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .anel-card-grid { grid-template-columns: 1fr; }
}
.anel-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
}
.anel-card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.anel-card-body {
  padding: 18px;
}
.anel-card-body h3 {
  font-size: 17px;
  margin: 0 0 8px;
  line-height: 1.3;
}
.anel-card-body p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Matéria individual */
.anel-article-header .anel-featured-category { margin-bottom: 12px; }

/* Sidebar */
.anel-sidebar-cta {
  background: #f2f7f4;
  border: 1px solid #dfe7e2;
  border-radius: var(--radius);
  padding: 26px;
}
.anel-sidebar-cta h3 {
  color: var(--green-dark);
  font-size: 19px;
  margin: 0 0 12px;
}
.anel-sidebar-cta ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}
.anel-sidebar-cta li {
  padding: 8px 0;
  border-top: 1px solid #dfe7e2;
  color: var(--text);
  font-size: 14px;
}
.anel-sidebar-cta li:first-child { border-top: none; }
.anel-sidebar-button {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 14px 18px;
  border-radius: 8px;
}
.anel-sidebar-button:hover { background: #d98c05; color: #fff; }

/* Footer */
.site-footer {
  background: var(--green-dark);
  color: #fff;
  padding: 36px 0;
  margin-top: 20px;
}
.site-footer .anel-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
}
.site-footer a { color: #d6e4da; }

/* Categoria / listagem */
.anel-category-title {
  padding: 40px 0 10px;
}
.anel-category-title h1 {
  font-size: 28px;
  color: var(--green-dark);
  margin: 0;
}
.anel-list-grid {
  display: grid;
  gap: 22px;
}

.anel-empty {
  color: var(--muted);
  padding: 20px 0;
}

/* Sidebar */
.anel-sidebar {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}
/* Seções da home */
.anel-section {
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}
.anel-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.anel-section-heading h2 {
  font-size: 22px;
  color: var(--green-dark);
  margin: 0;
}
.anel-ver-todas {
  flex: 0 0 auto;
  border: 1px solid #dfe7e2;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-dark);
}
.anel-ver-todas:hover {
  background: #f2f7f4;
}

/* Metadados do card */
.anel-card-category,
.anel-featured-category {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 8px;
}
.anel-card-category:hover,
.anel-featured-category:hover {
  text-decoration: underline;
}
.anel-card-date {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .anel-layout {
    grid-template-columns: 1fr;
  }
  .anel-sidebar {
    position: static;
  }
  .anel-featured {
    grid-template-columns: 1fr;
  }
  .anel-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-header .anel-container {
    flex-wrap: wrap;
    gap: 12px;
  }
}

@media (max-width: 600px) {
  .anel-card-grid {
    grid-template-columns: 1fr;
  }
  .anel-featured h1,
  .anel-article-header h1 {
    font-size: 26px;
  }
  .anel-container {
    width: min(100%, calc(100% - 24px));
  }
  .site-footer .anel-container {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .anel-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .anel-related-list li {
    grid-template-columns: 56px 1fr;
  }
  .anel-related-thumb img {
    width: 56px;
    height: 56px;
  }
  .anel-article-header h1 {
    max-width: none;
  }
  .anel-article-lead {
    font-size: 17px;
  }
  .anel-article-content {
    font-size: 16.5px;
  }
}
