/* ==========================================================================
   Tho Ca Pages — Thơ ca Việt Nam
   Style cho /tho-ca/*
   ========================================================================== */

.tc-main {
  min-height: calc(100vh - 200px);
  padding: 24px 0 48px;
  background: #fef2f2;  /* soft rose — poetic feel */
}

.tc-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Breadcrumb ===== */
.tc-breadcrumb {
  margin-bottom: 20px;
  font-size: 13px;
  color: #78716c;
}

.tc-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tc-breadcrumb li {
  display: flex;
  align-items: center;
}

.tc-breadcrumb li + li::before {
  content: '›';
  margin: 0 8px;
  color: #d6d3d1;
}

.tc-breadcrumb a {
  color: #57534e;
  text-decoration: none;
}

.tc-breadcrumb a:hover {
  color: #be185d;
  text-decoration: underline;
}

.tc-breadcrumb [aria-current="page"] {
  color: #1c1917;
  font-weight: 500;
}

/* ===== Poem detail page ===== */
.tc-poem {
  background: #fff;
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.06), 0 4px 20px rgba(190, 24, 93, 0.04);
  margin-bottom: 24px;
  border-top: 4px solid #be185d;
}

.tc-meta {
  margin-bottom: 14px;
}

.tc-period {
  display: inline-block;
  background: #fce7f3;
  color: #9f1239;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-name {
  font-size: 32px;
  line-height: 1.3;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-family: Georgia, 'Times New Roman', serif;
  text-align: center;
}

.tc-author {
  text-align: center;
  font-size: 15px;
  color: #78716c;
  margin: 0 0 30px;
  padding-bottom: 20px;
  border-bottom: 1px dashed #e7e5e4;
  font-style: italic;
}

.tc-author a {
  color: #be185d;
  text-decoration: none;
}

.tc-author a:hover {
  text-decoration: underline;
}

.tc-author strong {
  color: #9f1239;
  font-style: normal;
}

/* ===== Poem content ===== */
.tc-content {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 18px;
  line-height: 1.9;
  color: #292524;
  text-align: center;
  padding: 24px 0;
}

.tc-stanza {
  margin: 0 0 28px;
  line-height: 1.9;
}

.tc-stanza:last-child {
  margin-bottom: 0;
}

/* ===== Prev/Next ===== */
.tc-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}

.tc-nav-prev,
.tc-nav-next {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #fce7f3;
  transition: all 0.15s;
}

.tc-nav-next {
  text-align: right;
}

.tc-nav-prev:hover,
.tc-nav-next:hover {
  border-color: #f472b6;
  background: #fef2f2;
  transform: translateY(-2px);
}

.tc-nav-prev span,
.tc-nav-next span {
  font-size: 12px;
  color: #be185d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tc-nav-prev strong,
.tc-nav-next strong {
  font-size: 14px;
  color: #1c1917;
  font-weight: 600;
  line-height: 1.4;
}

.tc-nav-placeholder {
  display: block;
}

/* ===== Related ===== */
.tc-related {
  background: #fff;
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.05);
  margin-bottom: 24px;
  border-left: 4px solid #be185d;
}

.tc-related h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 14px;
}

.tc-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tc-related li {
  margin-bottom: 6px;
}

.tc-related a {
  display: block;
  padding: 8px 14px;
  background: #fef2f2;
  border-radius: 6px;
  color: #9f1239;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.15s;
}

.tc-related a:hover {
  background: #fce7f3;
  color: #831843;
  transform: translateX(4px);
}

.tc-related a::before {
  content: '📜 ';
}

/* ===== Back links ===== */
.tc-back {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.tc-back-link {
  display: inline-block;
  padding: 10px 20px;
  background: #fff;
  border: 1px solid #fce7f3;
  border-radius: 999px;
  color: #9f1239;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.tc-back-link:hover {
  background: #fef2f2;
  border-color: #f472b6;
}

/* ===== Author page ===== */
.tc-author-header {
  text-align: center;
  padding: 30px 0 10px;
  margin-bottom: 20px;
}

.tc-author-icon {
  font-size: 56px;
  margin-bottom: 12px;
}

.tc-author-name {
  font-size: 36px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 8px;
  font-family: Georgia, 'Times New Roman', serif;
}

.tc-author-meta {
  font-size: 14px;
  color: #78716c;
  font-weight: 500;
  margin: 0;
}

.tc-author-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #57534e;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 32px;
}

.tc-author-intro strong {
  color: #1c1917;
}

.tc-author-group,
.tc-period-group {
  background: #fff;
  border-radius: 12px;
  padding: 22px 26px;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.05);
  margin-bottom: 18px;
}

.tc-author-group h2,
.tc-period-author {
  font-size: 18px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #fce7f3;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.tc-period-author a {
  color: #1c1917;
  text-decoration: none;
}

.tc-period-author a:hover {
  color: #be185d;
}

.tc-count {
  font-size: 13px;
  font-weight: 500;
  color: #78716c;
  background: #fce7f3;
  padding: 2px 10px;
  border-radius: 999px;
}

.tc-poem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
}

.tc-poem-list a {
  display: block;
  padding: 8px 12px;
  color: #9f1239;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  font-family: Georgia, serif;
  transition: all 0.15s;
}

.tc-poem-list a:hover {
  background: #fef2f2;
  color: #831843;
}

/* ===== Period page ===== */
.tc-period-title {
  font-size: 34px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
}

.tc-period-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #57534e;
  margin: 0 0 28px;
  max-width: 720px;
}

.tc-other-periods {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  border: 1px solid #fce7f3;
  margin-top: 20px;
}

.tc-other-periods h2 {
  font-size: 16px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 12px;
}

.tc-other-periods-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tc-other-periods-list a {
  display: inline-block;
  padding: 6px 14px;
  background: #fef2f2;
  border-radius: 999px;
  color: #9f1239;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}

.tc-other-periods-list a:hover {
  background: #fce7f3;
}

/* ===== Super index ===== */
.tc-hero {
  text-align: center;
  padding: 40px 0 20px;
}

.tc-super-title {
  font-size: 42px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 12px;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: -0.02em;
}

.tc-super-subtitle {
  font-size: 16px;
  color: #78716c;
  font-style: italic;
  margin: 0;
}

.tc-super-intro {
  font-size: 16px;
  line-height: 1.8;
  color: #57534e;
  max-width: 720px;
  margin: 0 auto 36px;
  text-align: center;
}

.tc-super-intro strong {
  color: #1c1917;
}

.tc-section {
  margin-bottom: 32px;
}

.tc-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #1c1917;
  margin: 0 0 8px;
  font-family: Georgia, serif;
}

.tc-section-desc {
  font-size: 14px;
  color: #78716c;
  margin: 0 0 16px;
}

/* Period grid */
.tc-period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tc-period-card {
  display: block;
  padding: 20px 18px;
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid #fce7f3;
  transition: all 0.15s;
}

.tc-period-card:hover {
  border-color: #be185d;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(190, 24, 93, 0.08);
}

.tc-period-card-name {
  font-size: 16px;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 6px;
  font-family: Georgia, serif;
}

.tc-period-card-count {
  font-size: 13px;
  color: #be185d;
  font-weight: 500;
}

/* Author grid (top 20) */
.tc-author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.tc-author-card {
  display: block;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #fce7f3;
  transition: all 0.15s;
}

.tc-author-card:hover {
  border-color: #be185d;
  background: #fef2f2;
}

.tc-author-card-name {
  font-size: 14px;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 4px;
}

.tc-author-card-count {
  font-size: 12px;
  color: #be185d;
}

.tc-all-authors {
  text-align: center;
  margin-top: 20px;
}

.tc-all-authors-link {
  display: inline-block;
  padding: 10px 22px;
  background: #fce7f3;
  color: #9f1239;
  text-decoration: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
}

.tc-all-authors-link:hover {
  background: #f9a8d4;
  color: #831843;
}

/* ===== Authors index page ===== */
.tc-authors-title {
  font-size: 34px;
  font-weight: 800;
  color: #1c1917;
  margin: 0 0 12px;
  font-family: Georgia, serif;
}

.tc-authors-intro {
  font-size: 15px;
  line-height: 1.7;
  color: #57534e;
  margin: 0 0 28px;
}

.tc-letter-group {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(190, 24, 93, 0.04);
}

.tc-letter {
  font-size: 24px;
  font-weight: 800;
  color: #be185d;
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #fce7f3;
  font-family: Georgia, serif;
}

.tc-author-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 4px;
}

.tc-author-list a {
  display: block;
  padding: 8px 12px;
  color: #1c1917;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.15s;
}

.tc-author-list a:hover {
  background: #fef2f2;
  color: #be185d;
}

.tc-count-inline {
  color: #be185d;
  font-size: 12px;
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .tc-main { padding: 16px 0 32px; }
  .tc-container { padding: 0 12px; }
  .tc-poem { padding: 24px 20px; }
  .tc-name { font-size: 24px; }
  .tc-content { font-size: 16px; line-height: 1.85; }
  .tc-super-title { font-size: 28px; }
  .tc-author-name { font-size: 28px; }
  .tc-period-title { font-size: 26px; }
  .tc-authors-title { font-size: 26px; }
  .tc-prev-next { grid-template-columns: 1fr; }
  .tc-poem-list { grid-template-columns: 1fr; }
  .tc-author-list { grid-template-columns: 1fr; }
  .tc-period-grid { grid-template-columns: 1fr; }
}

/* ===== Dark mode ===== */
body.theme-dark .tc-main { background: #1c1314; }
body.theme-dark .tc-poem,
body.theme-dark .tc-related,
body.theme-dark .tc-author-group,
body.theme-dark .tc-period-group,
body.theme-dark .tc-letter-group,
body.theme-dark .tc-period-card,
body.theme-dark .tc-author-card,
body.theme-dark .tc-nav-prev,
body.theme-dark .tc-nav-next,
body.theme-dark .tc-other-periods {
  background: #292526;
  border-color: #44383a;
}
body.theme-dark .tc-name,
body.theme-dark .tc-super-title,
body.theme-dark .tc-author-name,
body.theme-dark .tc-period-title,
body.theme-dark .tc-authors-title,
body.theme-dark .tc-section-title,
body.theme-dark .tc-related h2,
body.theme-dark .tc-period-author,
body.theme-dark .tc-author-group h2,
body.theme-dark .tc-period-card-name,
body.theme-dark .tc-author-card-name,
body.theme-dark .tc-other-periods h2 {
  color: #fef2f2;
}
body.theme-dark .tc-content,
body.theme-dark .tc-author,
body.theme-dark .tc-super-intro,
body.theme-dark .tc-author-intro,
body.theme-dark .tc-period-intro,
body.theme-dark .tc-authors-intro {
  color: #d6d3d1;
}
body.theme-dark .tc-related a,
body.theme-dark .tc-poem-list a,
body.theme-dark .tc-other-periods-list a {
  background: #44383a;
  color: #fbcfe8;
}
