/* ==========================================================================
   BRAND THEME — Pink / Purple / Blue
   DO NOT change these variables without checking every post that uses them.
   ========================================================================== */
:root {
  --pink: #e84393;
  --pink-dark: #a8296b;
  --purple: #6c5ce7;
  --purple-dark: #4834a8;
  --blue: #4a6cf7;
  --blue-dark: #2c46b0;
  --cream: #faf8ff;
  --card: #ffffff;
  --ink: #241b3a;
  --ink-soft: #6b6280;
  --border: #e7e1f5;
}

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

body {
  background: var(--cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  color: var(--ink);
  padding: 48px 20px 80px;
  line-height: 1.6;
}

a {
  color: var(--purple);
}

/* ---- Hero ---- */
.hero {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.hero .tag {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--purple);
}

.hero p.subtitle {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero .meta-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
}

.hero .meta-row .dot::before {
  content: "•";
  margin: 0 4px;
}

/* ---- Divider ---- */
.divider {
  max-width: 900px;
  margin: 48px auto;
  border: none;
  border-top: 1px solid var(--border);
}

/* ---- Section label ---- */
.section-label {
  max-width: 900px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-label .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.section-label h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.section-label .subtitle {
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---- Card grid ---- */
.card-grid {
  max-width: 900px;
  margin: 0 auto 20px;
  display: grid;
  gap: 16px;
}

.card-grid.cols-1 { grid-template-columns: 1fr; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 720px) {
  .card-grid.cols-2,
  .card-grid.cols-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.card .icon {
  font-size: 22px;
  margin-bottom: 10px;
  display: block;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.card p, .card ul {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.card ul {
  padding-left: 18px;
}

.card ol.steps {
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.card ol.steps li {
  margin-bottom: 6px;
}

.card.dark-card {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  border: none;
}

.card.dark-card p, .card.dark-card ul, .card.dark-card h3 {
  color: #fff;
}

.card.dark-card a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.card.callout {
  border-left: 4px solid var(--pink);
  background: #fff5fa;
}

.card.code-card {
  background: var(--ink);
}

/* ---- Code blocks ---- */
.code-block {
  background: var(--ink);
  color: #f1eefc;
  border-radius: 10px;
  padding: 16px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 13px;
  overflow-x: auto;
  white-space: pre;
}

/* ---- Compare table ---- */
.compare-table {
  max-width: 900px;
  margin: 0 auto 20px;
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.compare-table th, .compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.compare-table th {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #fff;
  font-weight: 600;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

/* ---- Badges ---- */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 900px;
  margin: 0 auto 20px;
}

.badge {
  background: var(--border);
  color: var(--purple-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
}

/* ---- Footer ---- */
.footer {
  max-width: 900px;
  margin: 60px auto 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.footer a {
  font-weight: 600;
  text-decoration: none;
}

/* ---- Post cards (index page) ---- */
.posts-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.post-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.15);
}

.post-card .accent-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
}

.post-card .post-card-body {
  padding: 20px 22px;
}

.post-card .tag {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.post-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.post-card p.excerpt {
  color: var(--ink-soft);
  font-size: 14px;
  margin-bottom: 10px;
}

.post-card .meta-row {
  color: var(--ink-soft);
  font-size: 13px;
  display: flex;
  gap: 8px;
}

.post-card .meta-row .dot::before {
  content: "•";
  margin: 0 2px;
}

.empty-state {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
}

/* ---- Language switch ---- */
.lang-switch {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 14px;
}

.lang-switch a {
  font-weight: 600;
  text-decoration: none;
}
