/* ════════════════════════════════════════════════════════════════════
   articles.css — Blog (listing + detail) styles for RocketTales
   Inherits palette and Inter/Cinzel fonts from home.css.
═══════════════════════════════════════════════════════════════════════ */

:root {
  --rt-deep: #13003A;
  --rt-night: #1a0750;
  --rt-cyan: #5ef0ff;
  --rt-magenta: #ff6bd5;
  --rt-gold: #ffd86b;
  --rt-text: #efeaff;
  --rt-text-muted: #b3a8d9;
  --rt-surface: #221060;
  --rt-surface-2: #2c1879;
  --rt-border: rgba(255,255,255,0.08);
}

body { background: var(--rt-deep); color: var(--rt-text); font-family: 'Inter', sans-serif; }

/* ── Breadcrumbs ───────────────────────────────────────────────────── */
.rt-breadcrumbs { font-size: 14px; color: var(--rt-text-muted); margin-bottom: 16px; }
.rt-breadcrumbs a { color: var(--rt-cyan); text-decoration: none; }
.rt-breadcrumbs a:hover { color: #fff; text-decoration: underline; }
.rt-bc-sep { margin: 0 6px; opacity: .5; }

/* ── List page hero ────────────────────────────────────────────────── */
.rt-articles-hero {
  padding: 130px 0 40px;
  background: linear-gradient(180deg, var(--rt-night) 0%, var(--rt-deep) 100%);
  position: relative;
  overflow: hidden;
}
.rt-articles-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 5vw, 48px);
  margin: 8px 0 12px;
  color: #fff;
  line-height: 1.15;
}
.rt-articles-subtitle {
  font-size: 18px;
  color: var(--rt-text-muted);
  max-width: 700px;
  margin: 0 0 24px;
}

/* ── Category chips ────────────────────────────────────────────────── */
.rt-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rt-cat-chip {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--rt-border);
  color: var(--rt-text);
  font-size: 13px;
  text-decoration: none;
  transition: all .2s;
}
.rt-cat-chip:hover, .rt-cat-chip.active {
  background: var(--rt-cyan);
  color: var(--rt-deep);
  border-color: var(--rt-cyan);
  text-decoration: none;
}

/* ── List grid ─────────────────────────────────────────────────────── */
.rt-articles-main { padding: 40px 0 80px; }
.rt-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.rt-article-card {
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.rt-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(94, 240, 255, 0.15);
  border-color: rgba(94, 240, 255, 0.3);
}
.rt-article-cover { display: block; }
.rt-article-cover img { width: 100%; height: 200px; object-fit: cover; }
.rt-article-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.rt-article-category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--rt-cyan);
  margin-bottom: 8px;
  font-weight: 600;
}
.rt-article-title {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
}
.rt-article-title a { color: #fff; text-decoration: none; }
.rt-article-title a:hover { color: var(--rt-cyan); }
.rt-article-excerpt {
  color: var(--rt-text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0 0 16px;
  flex: 1;
}
.rt-article-meta { font-size: 12.5px; color: var(--rt-text-muted); display: flex; gap: 8px; margin-bottom: 12px; }
.rt-article-readmore {
  color: var(--rt-cyan);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  margin-top: auto;
}
.rt-article-readmore:hover { color: #fff; }

/* ── Bottom CTA ────────────────────────────────────────────────────── */
.rt-articles-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--rt-surface) 0%, var(--rt-surface-2) 100%);
  border-top: 1px solid var(--rt-border);
}
.rt-articles-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 32px);
  margin-bottom: 24px;
  color: #fff;
}

/* ── Article (detail) page ─────────────────────────────────────────── */
.rt-post-header { padding: 130px 0 30px; background: linear-gradient(180deg, var(--rt-night) 0%, var(--rt-deep) 100%); }
.rt-post-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(28px, 5.5vw, 52px);
  line-height: 1.15;
  color: #fff;
  margin: 12px 0 16px;
  max-width: 850px;
}
.rt-post-excerpt {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--rt-text-muted);
  max-width: 750px;
  line-height: 1.55;
  margin-bottom: 18px;
}
.rt-post-meta { font-size: 14px; color: var(--rt-text-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.rt-post-hero {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 0 16px;
}
.rt-post-hero img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}

/* ── Article body typography ──────────────────────────────────────── */
.rt-post-body {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--rt-text);
  font-family: 'Inter', sans-serif;
}
.rt-post-body h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 3.5vw, 30px);
  margin: 38px 0 16px;
  color: #fff;
  line-height: 1.25;
}
.rt-post-body h3 {
  font-size: 20px;
  margin: 30px 0 12px;
  color: #fff;
  font-weight: 600;
}
.rt-post-body p { margin: 0 0 18px; }
.rt-post-body ul, .rt-post-body ol { margin: 0 0 22px; padding-left: 24px; }
.rt-post-body li { margin-bottom: 8px; }
.rt-post-body strong { color: #fff; font-weight: 600; }
.rt-post-body em { color: var(--rt-gold); font-style: italic; }
.rt-post-body a { color: var(--rt-cyan); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rt-post-body a:hover { color: #fff; }
.rt-post-body blockquote {
  border-left: 3px solid var(--rt-cyan);
  margin: 24px 0;
  padding: 6px 0 6px 20px;
  color: var(--rt-text-muted);
  font-style: italic;
}

/* Inline CTA inside article body */
.rt-article-cta {
  margin: 32px 0;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(94,240,255,0.08) 0%, rgba(255,107,213,0.08) 100%);
  border: 1px solid rgba(94,240,255,0.25);
  border-radius: 14px;
}
.rt-article-cta p { margin: 0; font-size: 16px; line-height: 1.55; }
.rt-article-cta a {
  color: var(--rt-cyan);
  font-weight: 600;
  white-space: nowrap;
}

.rt-article-footnote {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--rt-border);
  font-size: 13px;
  color: var(--rt-text-muted);
}

/* ── Tags ──────────────────────────────────────────────────────────── */
.rt-post-tags {
  max-width: 760px;
  margin: 30px auto;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.rt-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--rt-text-muted);
  font-size: 12.5px;
}

/* ── Author box ────────────────────────────────────────────────────── */
.rt-author-box {
  max-width: 760px;
  margin: 40px auto;
  padding: 24px;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  align-items: center;
}
.rt-author-avatar img {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover;
  background: var(--rt-surface-2);
  padding: 8px;
}
.rt-author-text h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.rt-author-text p { margin: 0; font-size: 14px; color: var(--rt-text-muted); line-height: 1.5; }

/* ── Story → Activities CTA section ─────────────────────────────────── */
.rt-story-activities {
  max-width: 1100px;
  margin: 60px auto 30px;
  padding: 30px 24px;
  background: linear-gradient(135deg, rgba(123,47,255,.08) 0%, rgba(255,61,255,.08) 100%);
  border: 1px solid rgba(255,61,255,.25);
  border-radius: 16px;
}
.rt-story-activities h2 {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: #fff;
  margin: 0 0 6px;
}
.rt-story-activities-sub {
  color: var(--rt-text-muted);
  font-size: 14px;
  margin: 0 0 18px;
}
.rt-story-activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.rt-story-activity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  text-decoration: none;
  color: var(--rt-text);
  transition: background .2s, border-color .2s, transform .2s;
}
.rt-story-activity-card:hover {
  background: rgba(255,61,255,.08);
  border-color: rgba(255,61,255,.5);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.rt-story-activity-icon { font-size: 1.6rem; line-height: 1; flex-shrink: 0; }
.rt-story-activity-name {
  flex: 1;
  font-weight: 700;
  color: #fff;
  font-size: .95rem;
}
.rt-story-activity-action {
  color: #00E5FF;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Related ───────────────────────────────────────────────────────── */
.rt-related { max-width: 1100px; margin: 60px auto; padding: 0 16px; }
.rt-related h2 {
  font-family: 'Cinzel', serif;
  font-size: 26px;
  color: #fff;
  margin-bottom: 24px;
}
.rt-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}
.rt-related-card {
  display: block;
  background: var(--rt-surface);
  border: 1px solid var(--rt-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: var(--rt-text);
  transition: transform .2s;
}
.rt-related-card:hover { transform: translateY(-3px); text-decoration: none; color: var(--rt-text); }
.rt-related-card img { width: 100%; height: 140px; object-fit: cover; }
.rt-related-card h3 { font-size: 15px; padding: 14px 16px 6px; color: #fff; margin: 0; line-height: 1.35; }
.rt-related-card p { font-size: 13px; padding: 0 16px 16px; color: var(--rt-text-muted); margin: 0; line-height: 1.5; }

/* ── Bottom CTA on detail page ─────────────────────────────────────── */
.rt-post-app-cta {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--rt-surface) 0%, var(--rt-surface-2) 100%);
  border-top: 1px solid var(--rt-border);
}
.rt-post-app-cta h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(22px, 4vw, 32px);
  color: #fff;
  margin-bottom: 12px;
}
.rt-post-app-cta p { color: var(--rt-text-muted); margin-bottom: 20px; font-size: 16px; }

.rt-btn-primary {
  background: linear-gradient(135deg, var(--rt-cyan), #2bd4ec);
  color: var(--rt-deep) !important;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  border: none;
  font-size: 16px;
  text-decoration: none;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.rt-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(94, 240, 255, 0.35);
  color: var(--rt-deep);
  text-decoration: none;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .rt-articles-hero { padding-top: 110px; }
  .rt-post-header   { padding-top: 110px; }
  .rt-articles-grid, .rt-related-grid { grid-template-columns: 1fr; }
  .rt-author-box { flex-direction: column; text-align: center; }
}
