:root {
  --green-500: #2d6a4f;       /* verde clínico */
  --green-600: #22543d;
  --green-100: #f3fbf7;
  --rose-100: #fdecef;        /* rosé suave */
  --rose-300: #e8cfd6;
  --ink-900: #1f1f1f;
  --ink-700: #333;
  --ink-500: #6b6b6b;
  --bg: #fafafa;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  font-family: 'Georgia', serif;
  background: var(--bg);
  color: var(--ink-700);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.citacao-container {
  max-width: 900px;
  text-align: center;
  padding: 48px 28px 32px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border: 1px solid #f0f0f0;
}

blockquote {
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1.6;
  margin: 0 0 20px 0;
  color: var(--ink-900);
}

.autor {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 28px;
  color: var(--green-600);
}

.nav-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--green-500);
  font-weight: 600;
  border: 1px solid var(--rose-300);
  padding: 9px 16px;
  border-radius: 999px;
  transition: .2s ease;
  background: var(--rose-100);
}

.nav-links a:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.index-container {
  max-width: 1100px;
  padding: 40px 20px;
  margin: 40px auto;
}

.header-title {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 2rem;
  margin-top: 0;
  color: var(--green-600);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 200px;
  border: 1px solid #f0f0f0;
}

.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }

.card blockquote {
  font-size: 1.05rem;
  margin-bottom: 16px;
}

.card a {
  align-self: start;
  text-decoration: none;
  color: var(--green-500);
  font-weight: 600;
  border-bottom: 2px solid var(--rose-300);
  padding-bottom: 2px;
}

.footer {
  border-top: 1px solid #eee;
  margin-top: 22px;
  padding-top: 16px;
  text-align: center;
  color: var(--ink-500);
}

.footer .brand {
  font-weight: 700;
  color: var(--ink-900);
}

.footer .social {
  margin-top: 10px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer .social a {
  color: var(--green-500);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--green-100);
  border: 1px solid #cde1d6;
  font-weight: 600;
}

.footer .social a:hover { background: var(--white); }

/* --- Breadcrumbs & Back Button --- */
.breadcrumbs {
  font-size: .9rem;
  margin: 8px 0 14px;
  color: var(--ink-500);
  text-align: left;
}
.breadcrumbs a {
  color: var(--green-500);
  text-decoration: none;
  font-weight: 600;
}
.breadcrumbs .sep {
  margin: 0 6px;
  color: var(--ink-500);
}
.breadcrumbs .current {
  color: var(--ink-700);
  font-weight: 600;
}
.back-btn {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--green-100);
  border: 1px solid #cde1d6;
  text-decoration: none;
  color: var(--green-500);
  font-weight: 600;
}
.back-btn:hover {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

/* --- Active nav link highlight --- */
nav a.active, .nav a.active, .navbar a.active, .menu a.active, header a.active, .header a.active, a.active {
  color: var(--green-600);
  border-bottom: 2px solid var(--rose-300);
  padding-bottom: 2px;
}


/* --- Compact 3-column layout for Reflexões index --- */
.grid.compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .grid.compact { grid-template-columns: repeat(2, minmax(260px, 1fr)); }
}
@media (max-width: 640px) {
  .grid.compact { grid-template-columns: 1fr; }
}
.grid.compact .card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.grid.compact .card blockquote {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: left;
  line-height: 1.6;
}

/* --- Detail page enhancements for Reflexões --- */
.citacao-container {
  max-width: 820px;
}
.quote-hero {
  position: relative;
  padding: 8px 0 6px;
}
.big-quote {
  font-size: 1.85rem;
  line-height: 1.7;
  text-align: left;
  margin: 0 0 10px 0;
}
.big-quote::before {
  content: "“";
  position: absolute;
  left: -8px;
  top: -6px;
  font-size: 4rem;
  line-height: 1;
  color: var(--rose-300);
  opacity: .5;
  transform: translateX(-12px);
}
.meta-author {
  text-align: left;
  color: var(--green-600);
  font-weight: 600;
  margin: 6px 0 14px;
}
.meta-author .role {
  color: var(--ink-500);
  font-weight: 500;
}
.quote-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.btn {
  appearance: none;
  border: 1px solid #cde1d6;
  background: var(--green-100);
  color: var(--green-500);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover { background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.btn.outline { background: var(--white); }
.pager {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.pager a {
  text-decoration: none;
  color: var(--green-500);
  border: 1px solid #cde1d6;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--green-100);
}
.pager a:hover { background: var(--white); }
@media (max-width: 640px) {
  .big-quote { font-size: 1.5rem; }
}
