/* Contos Secretos: identidade alinhada ao bordô dos banners */

:root {
  --cs-ink: #1a0c10;
  --cs-burgundy: #7a2438;
  --cs-burgundy-deep: #5c1528;
  --cs-wine: #4a1020;
  --cs-rose: #a83d55;
  --cs-blush: #c45c74;
  --cs-cream: #faf5f6;
  --cs-muted: #8a6f76;
  --cs-display: 'Cormorant Garamond', Georgia, serif;
  --cs-ui: 'Manrope', 'Montserrat', sans-serif;

  /* aliases / tokens de UI */
  --cs-gold: var(--cs-rose);
  --cs-gold-deep: var(--cs-burgundy);
  --cs-amber: var(--cs-blush);
  --cs-bronze: var(--cs-wine);
}

.cs-body {
  background: linear-gradient(180deg, #fbf6f7 0%, #f3e8eb 40%, #fbf6f7 100%);
}

.cs-age-locked,
.cs-age-locked body {
  overflow: hidden;
}

.cs-age-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(18, 6, 10, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cs-age-card {
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem 2rem;
  text-align: center;
  background: var(--cs-cream);
  border-top: 4px solid var(--cs-burgundy);
  border-radius: 1rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}

.cs-age-kicker {
  margin-bottom: .5rem;
  font-family: var(--cs-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cs-burgundy);
}

.cs-age-title {
  margin-bottom: .85rem;
  font-family: var(--cs-display);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--cs-ink);
}

.cs-age-text {
  margin-bottom: 1.5rem;
  font-family: var(--cs-ui);
  color: var(--cs-muted);
}

.cs-age-actions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.cs-brand {
  font-family: var(--cs-display);
  font-size: 1.35rem;
  letter-spacing: .04em;
}

.cs-eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  font-weight: 600;
}

.cs-hero {
  background-color: #1a0c10;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.cs-hero-mask {
  background:
    linear-gradient(90deg, rgba(18, 6, 10, .88) 0%, rgba(18, 6, 10, .55) 42%, rgba(18, 6, 10, .22) 70%, rgba(18, 6, 10, .35) 100%),
    linear-gradient(180deg, rgba(18, 6, 10, .45) 0%, transparent 35%, rgba(18, 6, 10, .55) 100%);
  opacity: 1;
}

.cs-hero-title {
  font-family: var(--cs-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.cs-hero-lead {
  text-shadow: 0 1px 12px rgba(0, 0, 0, .4);
  max-width: 32rem;
}

.cs-search-panel {
  background: #fffafb;
  border-radius: 1rem;
  border: 1px solid rgba(122, 36, 56, .14);
}

/* Painel intro (sem busca): mesmo encaixe da home/contos */
.cs-intro-panel {
  margin-bottom: 0;
}

header.position-relative + .cs-shelf {
  padding-top: 2rem;
}

.cs-section-title {
  font-family: var(--cs-display);
  font-weight: 600;
  color: var(--cs-ink);
  font-size: 2rem;
}

/* Cards / tiles: tipografia de leitura, sem a serifada de display */
.card-blog,
.card-blog .card-body,
.card-blog h5,
.cs-cat-tile,
.cs-cat-tile strong,
.cs-cover-placeholder,
.cs-cover-placeholder h5,
.cs-card-meta,
.cs-tag,
.cs-stat,
.cs-body .card h4,
.cs-body .card h5,
.cs-body section h5 {
  font-family: var(--cs-ui);
}

.card-blog h5,
.cs-cover-placeholder h5,
.cs-body section h5 {
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
  color: var(--cs-ink);
}

.cs-section-kicker {
  color: var(--cs-burgundy);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: .35rem;
}

.cs-card-cover {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  background: linear-gradient(145deg, #1a0c10 0%, #4a1020 48%, #a83d55 100%);
}

.cs-card-meta {
  color: var(--cs-muted);
  font-size: .85rem;
}

.cs-tag {
  display: inline-block;
  padding: .25rem .7rem;
  margin: 0 .35rem .35rem 0;
  border-radius: 999px;
  background: rgba(122, 36, 56, .1);
  color: var(--cs-wine);
  font-size: .78rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.cs-tag:hover {
  background: var(--cs-burgundy);
  color: #fff;
}

.cs-cat-tile {
  display: block;
  padding: 1.25rem 1rem;
  border-radius: .9rem;
  background: #fffafb;
  box-shadow: 0 8px 24px rgba(26, 12, 16, .06);
  text-decoration: none;
  color: var(--cs-ink);
  border-left: 4px solid var(--cs-burgundy);
  transition: transform .2s ease, box-shadow .2s ease;
  height: 100%;
}

.cs-cat-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(122, 36, 56, .14);
  color: var(--cs-ink);
}

.cs-cat-count {
  color: var(--cs-muted);
  font-size: .8rem;
}

.cs-cover-placeholder {
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  min-height: 180px;
  border-radius: .85rem;
  color: #fff;
  background: linear-gradient(145deg, #1a0c10 0%, #4a1020 45%, #a83d55 100%);
  box-shadow: 0 10px 28px rgba(26, 12, 16, .18);
}

.cs-cover-placeholder h5 {
  color: #fff;
  margin: 0;
  font-size: 1.2rem;
}

.cs-stat {
  font-size: .8rem;
  color: var(--cs-muted);
}

.cs-stat i {
  color: var(--cs-burgundy);
}

/* Botões do template: puxar para o bordô na área pública */
.cs-body .btn.bg-gradient-primary,
.cs-body .btn-primary {
  background-image: linear-gradient(310deg, #5c1528, #a83d55) !important;
  border-color: transparent;
}

.cs-body .btn-outline-primary {
  color: var(--cs-burgundy);
  border-color: var(--cs-rose);
}

.cs-body .btn-outline-primary:hover {
  background-color: var(--cs-burgundy);
  border-color: var(--cs-burgundy);
  color: #fff;
}

.cs-body .btn.cs-btn-nav-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(250, 245, 246, 0.75);
  box-shadow: none;
}

.cs-body .btn.cs-btn-nav-ghost:hover,
.cs-body .btn.cs-btn-nav-ghost:focus {
  background: var(--cs-cream);
  border-color: var(--cs-cream);
  color: var(--cs-burgundy);
}

.cs-body .text-primary,
.cs-body a.text-primary {
  color: var(--cs-burgundy) !important;
}

.cs-body .text-gradient.text-dark {
  background-image: linear-gradient(310deg, #5c1528, #a83d55);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Home livraria (texto primeiro) */
.cs-shelf-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.cs-shelf-link {
  color: var(--cs-burgundy);
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
}

.cs-shelf-link:hover {
  color: var(--cs-ink);
}

.cs-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: 1rem;
  background: #fffafb;
  border: 1px solid rgba(122, 36, 56, .22);
  box-shadow: 0 10px 28px rgba(26, 12, 16, .06);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.cs-continue:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(122, 36, 56, .12);
  border-color: rgba(168, 61, 85, .5);
  color: inherit;
}

.cs-continue-soft {
  border-style: dashed;
}

.cs-continue-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cs-burgundy);
  margin-bottom: .45rem;
}

.cs-continue-title {
  font-family: var(--cs-display);
  font-size: clamp(1.45rem, 2.5vw, 1.9rem);
  font-weight: 600;
  color: var(--cs-ink);
  margin: 0 0 .35rem;
  line-height: 1.25;
}

.cs-continue-meta {
  color: var(--cs-muted);
  font-size: .92rem;
  max-width: 42rem;
}

.cs-continue-cta {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--cs-burgundy);
  font-size: .95rem;
}

.cs-rank-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(26, 12, 16, .08);
  text-decoration: none;
  color: inherit;
}

.cs-rank li:last-child .cs-rank-item {
  border-bottom: 0;
}

.cs-rank-item:hover .cs-rank-title {
  color: var(--cs-burgundy);
}

.cs-rank-num {
  font-family: var(--cs-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cs-rose);
  min-width: 1.6rem;
  line-height: 1.1;
}

.cs-rank-title {
  display: block;
  font-family: var(--cs-ui);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cs-ink);
  transition: color .15s ease;
}

.cs-rank-meta {
  display: block;
  margin-top: .2rem;
  color: var(--cs-muted);
  font-size: .85rem;
}

.cs-text-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: .85rem;
}

@media (min-width: 768px) {
  .cs-text-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .cs-text-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.cs-text-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.15rem;
  border-radius: .85rem;
  background: #fffafb;
  border: 1px solid rgba(26, 12, 16, .06);
  text-decoration: none;
  color: inherit;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  min-height: 100%;
}

.cs-text-card:hover {
  border-color: rgba(168, 61, 85, .4);
  box-shadow: 0 10px 24px rgba(26, 12, 16, .06);
  transform: translateY(-2px);
  color: inherit;
}

.cs-text-card-series {
  border-left: 3px solid var(--cs-burgundy);
}

.cs-text-card-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cs-burgundy);
}

.cs-text-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cs-ink);
  line-height: 1.35;
}

.cs-text-card-meta {
  font-size: .82rem;
  color: var(--cs-muted);
}

.cs-text-card-excerpt {
  font-size: .9rem;
  color: #5c454c;
  line-height: 1.5;
  margin-top: .15rem;
}

.cs-text-list {
  background: #fffafb;
  border-radius: 1rem;
  border: 1px solid rgba(26, 12, 16, .06);
  overflow: hidden;
}

.cs-text-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(26, 12, 16, .06);
  text-decoration: none;
  color: inherit;
}

.cs-text-row:last-child {
  border-bottom: 0;
}

.cs-text-row:hover {
  background: rgba(122, 36, 56, .06);
  color: inherit;
}

.cs-text-row-title {
  display: block;
  color: var(--cs-ink);
  font-size: 1rem;
}

.cs-text-row-meta {
  margin-top: .2rem;
  color: var(--cs-muted);
  font-size: .82rem;
}

.cs-text-row-action {
  flex-shrink: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--cs-burgundy);
}

.cs-authors {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cs-author-chip {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: 999px;
  background: rgba(122, 36, 56, .1);
  color: var(--cs-wine);
  font-size: .85rem;
  font-weight: 600;
}

.cs-author-chip small {
  font-weight: 500;
  color: var(--cs-muted);
}

.cs-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.cs-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: #fffafb;
  border: 1px solid rgba(122, 36, 56, .2);
  color: var(--cs-ink);
  text-decoration: none;
  font-size: .92rem;
}

.cs-nav-chip strong {
  font-weight: 600;
}

.cs-nav-chip span {
  color: var(--cs-muted);
  font-size: .8rem;
}

.cs-nav-chip:hover {
  border-color: var(--chip, var(--cs-burgundy));
  color: var(--cs-ink);
  background: rgba(122, 36, 56, .08);
}

.cs-nav-chip.is-active {
  background: var(--cs-burgundy);
  border-color: var(--cs-burgundy);
  color: #fff;
}

.cs-nav-chip.is-active span {
  color: rgba(255, 255, 255, .75);
}

.cs-tag.is-active {
  background: var(--cs-burgundy);
  color: #fff;
}

/* Catálogo / listagem de contos */
.cs-catalog-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(26, 12, 16, .06);
  text-decoration: none;
  color: inherit;
  transition: background .15s ease;
}

.cs-catalog-row:last-child {
  border-bottom: 0;
}

.cs-catalog-row:hover {
  background: rgba(122, 36, 56, .05);
  color: inherit;
}

.cs-catalog-row:hover .cs-catalog-title {
  color: var(--cs-burgundy);
}

.cs-catalog-main {
  min-width: 0;
  flex: 1;
}

.cs-catalog-kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--cs-burgundy);
  margin-bottom: .3rem;
}

.cs-catalog-title {
  display: block;
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--cs-ink);
  line-height: 1.35;
  transition: color .15s ease;
}

.cs-catalog-excerpt {
  margin-top: .4rem;
  color: #5c454c;
  font-size: .92rem;
  line-height: 1.5;
  max-width: 46rem;
}

.cs-catalog-meta {
  margin-top: .45rem;
  color: var(--cs-muted);
  font-size: .82rem;
}

.cs-catalog-tag {
  margin-right: .15rem;
}

.cs-catalog-cta {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--cs-burgundy);
  font-size: .9rem;
}

.cs-catalog-empty {
  padding: 1.75rem 1.25rem;
  text-align: center;
}

@media (max-width: 575.98px) {
  .cs-continue {
    flex-direction: column;
    align-items: flex-start;
  }

  .cs-catalog-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Página de leitura do conto */
.cs-read-resumo {
  color: #5c454c;
  max-width: 40rem;
  margin-bottom: .5rem;
  line-height: 1.55;
}

.cs-read-panel {
  background: #fffafb;
  border: 1px solid rgba(26, 12, 16, .06);
  border-radius: 1rem;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 10px 28px rgba(26, 12, 16, .05);
}

@media (min-width: 768px) {
  .cs-read-panel {
    padding: 2rem 1.75rem;
  }
}

.cs-read-body {
  font-family: var(--cs-ui);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  color: #2a1a1f;
}

.cs-read-body p {
  color: #2a1a1f !important;
  margin-bottom: 1.15rem;
  font-size: inherit;
  line-height: inherit;
}

.cs-read-body em {
  color: var(--cs-burgundy);
  font-style: italic;
}

.cs-read-tags {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(26, 12, 16, .08);
}

.cs-read-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(26, 12, 16, .08);
}

.cs-read-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
  margin-top: 1.25rem;
}

.cs-read-nav-item {
  display: block;
  padding: 1rem 1.15rem;
  background: #fffafb;
  border: 1px solid rgba(122, 36, 56, .16);
  border-radius: .85rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.cs-read-nav-item:hover {
  border-color: rgba(168, 61, 85, .45);
  box-shadow: 0 8px 20px rgba(26, 12, 16, .06);
  color: inherit;
}

.cs-read-nav-item strong {
  display: block;
  margin-top: .2rem;
  color: var(--cs-ink);
  font-size: .98rem;
}

@media (max-width: 575.98px) {
  .cs-read-nav {
    grid-template-columns: 1fr;
  }

  .cs-read-nav-item.text-end {
    text-align: left !important;
  }
}
