/**
 * Boostify Blog - Interior Pages Redesign v2.0
 * Single Post, Archive, Search layouts
 * Optimized for conversion and readability
 */

/* ========================================
   VARIABLES & BASE
   ======================================== */
:root {
  /* Brand Colors */
  --bst-orange: #ff6b00;
  --bst-orange-dark: #e66000;
  --bst-orange-light: #fef6f0;

  /* Notion-inspired Neutrals */
  --bst-text: #37352f;
  --bst-text-light: #6b6b6b;
  --bst-text-muted: #9ca3af;
  --bst-bg: #ffffff;
  --bst-bg-warm: #fbfbf9;
  --bst-bg-gray: #f7f7f5;
  --bst-border: rgba(55, 53, 47, 0.16);
  --bst-border-light: rgba(55, 53, 47, 0.08);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, monospace;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(25, 42, 61, 0.12);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* ========================================
   GLOBAL OVERRIDES
   ======================================== */
body.single-post,
body.archive,
body.blog {
  font-family: var(--font-sans);
  background-color: var(--bst-bg-warm);
  color: var(--bst-text);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.bst-breadcrumbs {
  padding: var(--space-4) 0;
  font-size: 13px;
  color: var(--bst-text-muted);
}

.bst-breadcrumbs a {
  color: var(--bst-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.bst-breadcrumbs a:hover {
  color: var(--bst-orange);
}

.bst-breadcrumbs .separator {
  margin: 0 var(--space-2);
  opacity: 0.5;
}

.bst-breadcrumbs .current {
  color: var(--bst-text);
  font-weight: 500;
}

/* ========================================
   SINGLE POST - HERO SECTION
   ======================================== */
.bst-single-hero {
  background: var(--bst-bg);
  border-bottom: 1px solid var(--bst-border);
  padding: var(--space-10) 0 var(--space-8);
  margin-bottom: var(--space-8);
}

.bst-single-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* Category Badge */
.bst-category-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--bst-orange-light);
  color: var(--bst-orange);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  text-decoration: none;
  transition: all 0.2s;
}

.bst-category-badge:hover {
  background: var(--bst-orange);
  color: white;
}

.bst-category-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
}

/* Title */
.bst-single-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--bst-text);
  margin: 0 0 var(--space-5);
  letter-spacing: -0.02em;
}

/* Meta Row */
.bst-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  color: var(--bst-text-light);
  font-size: 14px;
}

.bst-single-meta__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bst-single-meta__icon {
  width: 16px;
  height: 16px;
  opacity: 0.6;
}

/* Reading Time Badge */
.bst-reading-time {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  background: var(--bst-bg-gray);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--bst-text-light);
}

/* Featured Image */
.bst-single-image {
  margin: var(--space-8) auto 0;
  max-width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bst-single-image img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ========================================
   SINGLE POST - CONTENT LAYOUT
   ======================================== */
.bst-single-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: var(--space-10);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
  align-items: start;
}

/* Prevent grid blowout from inner content */
.bst-single-content,
.bst-sidebar {
  min-width: 0;
}

/* Neutralize Blocksy's own sidebar layout inside our grid */
body.single-post .ct-container[data-sidebar] {
  display: block !important;
}

@media (max-width: 1024px) {
  .bst-single-layout {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   TABLE OF CONTENTS (TOC)
   ======================================== */
.bst-toc {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.bst-toc__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bst-text-muted);
  margin: 0 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bst-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bst-toc__item {
  margin: 0;
  padding: 0;
}

.bst-toc__link {
  display: block;
  padding: var(--space-2) 0;
  color: var(--bst-text-light);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  border-left: 2px solid transparent;
  padding-left: var(--space-3);
  margin-left: calc(-1 * var(--space-3));
  transition: all 0.2s;
}

.bst-toc__link:hover,
.bst-toc__link--active {
  color: var(--bst-orange);
  border-left-color: var(--bst-orange);
  background: var(--bst-orange-light);
}

.bst-toc__link--h3 {
  padding-left: var(--space-6);
  font-size: 13px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.bst-single-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--bst-text);
}

.bst-single-content p {
  margin-bottom: var(--space-6);
}

.bst-single-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: var(--space-10) 0 var(--space-5);
  color: var(--bst-text);
  letter-spacing: -0.01em;
  scroll-margin-top: 100px;
}

.bst-single-content h3 {
  font-size: 21px;
  font-weight: 600;
  margin: var(--space-8) 0 var(--space-4);
  color: var(--bst-text);
  scroll-margin-top: 100px;
}

.bst-single-content h4 {
  font-size: 18px;
  font-weight: 600;
  margin: var(--space-6) 0 var(--space-3);
}

/* Links in content */
.bst-single-content a {
  color: var(--bst-orange);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 107, 0, 0.3);
  transition: all 0.2s;
}

.bst-single-content a:hover {
  text-decoration-color: var(--bst-orange);
}

/* Lists */
.bst-single-content ul,
.bst-single-content ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.bst-single-content li {
  margin-bottom: var(--space-2);
}

.bst-single-content ul li {
  list-style-type: none;
  position: relative;
}

.bst-single-content ul li::before {
  content: '•';
  color: var(--bst-orange);
  font-weight: bold;
  position: absolute;
  left: calc(-1 * var(--space-5));
}

/* Blockquotes */
.bst-single-content blockquote {
  background: var(--bst-bg-gray);
  border-left: 3px solid var(--bst-orange);
  padding: var(--space-6) var(--space-6) var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--bst-text-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.bst-single-content blockquote p:last-child {
  margin-bottom: 0;
}

/* Code */
.bst-single-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bst-bg-gray);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: #e83e8c;
}

.bst-single-content pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: var(--space-5);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-6) 0;
}

.bst-single-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Images in content */
.bst-single-content figure {
  margin: var(--space-8) 0;
}

.bst-single-content figure img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.bst-single-content figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--bst-text-muted);
  margin-top: var(--space-3);
}

/* Tables */
.bst-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
  font-size: 15px;
}

.bst-single-content th,
.bst-single-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--bst-border);
  text-align: left;
}

.bst-single-content th {
  font-weight: 600;
  background: var(--bst-bg-gray);
  border-bottom: 2px solid var(--bst-border);
}

.bst-single-content tr:hover {
  background: var(--bst-bg-warm);
}

/* ========================================
   SHARE BUTTONS
   ======================================== */
.bst-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) 0;
  margin: var(--space-8) 0;
  border-top: 1px solid var(--bst-border);
  border-bottom: 1px solid var(--bst-border);
}

.bst-share__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--bst-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bst-share__buttons {
  display: flex;
  gap: var(--space-2);
}

.bst-share__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 1px solid var(--bst-border);
  background: var(--bst-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--bst-text-light);
}

.bst-share__btn:hover {
  border-color: var(--bst-orange);
  color: var(--bst-orange);
  transform: translateY(-2px);
}

.bst-share__btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}

/* Override de Blocksy/Notion que puede resetear botones en el share box */
.bst-share__btn,
.bst-share .bst-share__btn {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  background: var(--bst-bg) !important;
  border: 1px solid var(--bst-border) !important;
  border-radius: 9999px !important;
  color: var(--bst-text-light) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  font-size: inherit !important;
}

/* ========================================
   AUTHOR BOX
   ======================================== */
.bst-author-box {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin: var(--space-10) 0;
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
}

@media (max-width: 600px) {
  .bst-author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.bst-author-box__avatar {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid var(--bst-orange-light);
  box-shadow: var(--shadow-md);
}

.bst-author-box__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bst-author-box__content {
  flex: 1;
}

.bst-author-box__name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 var(--space-1);
  color: var(--bst-text);
}

.bst-author-box__role {
  font-size: 13px;
  color: var(--bst-orange);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-3);
}

.bst-author-box__bio {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bst-text-light);
  margin-bottom: var(--space-4);
}

.bst-author-box__social {
  display: flex;
  gap: var(--space-2);
}

.bst-author-box__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bst-bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bst-text-light);
  transition: all 0.2s;
}

.bst-author-box__social a:hover {
  background: var(--bst-orange);
  color: white;
}

/* ========================================
   NEWSLETTER CTA
   ======================================== */
.bst-newsletter {
  background: linear-gradient(135deg, var(--bst-orange) 0%, var(--bst-orange-dark) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: white;
  text-align: center;
  margin: var(--space-8) 0;
}

.bst-newsletter__icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  font-size: 24px;
}

.bst-newsletter__title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.bst-newsletter__text {
  font-size: 15px;
  opacity: 0.9;
  margin-bottom: var(--space-5);
  line-height: 1.5;
}

.bst-newsletter__form {
  display: flex;
  gap: var(--space-2);
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .bst-newsletter__form {
    flex-direction: column;
  }
}

.bst-newsletter__input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: var(--font-sans);
}

.bst-newsletter__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
}

.bst-newsletter__btn {
  padding: var(--space-3) var(--space-5);
  background: var(--bst-text);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.bst-newsletter__btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* Sidebar version */
.bst-sidebar .bst-newsletter {
  padding: var(--space-6);
}

.bst-sidebar .bst-newsletter__title {
  font-size: 18px;
}

.bst-sidebar .bst-newsletter__form {
  flex-direction: column;
}

/* ========================================
   RELATED POSTS
   ======================================== */
.bst-related {
  margin: var(--space-12) 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--bst-border);
}

.bst-related__title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bst-text-muted);
  margin: 0 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bst-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .bst-related__grid {
    grid-template-columns: 1fr;
  }
}

.bst-related__card {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
  text-decoration: none;
  display: block;
}

.bst-related__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bst-orange);
}

.bst-related__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.bst-related__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.bst-related__card:hover .bst-related__image img {
  transform: scale(1.05);
}

.bst-related__content {
  padding: var(--space-5);
}

.bst-related__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bst-orange);
  margin-bottom: var(--space-2);
}

.bst-related__post-title {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bst-text);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bst-related__date {
  font-size: 12px;
  color: var(--bst-text-muted);
  margin-top: var(--space-3);
}

/* ========================================
   HIDE BLOCKSY DEFAULT SIDEBAR ON SINGLE POSTS
   (bst-sidebar handles it instead)
   ======================================== */
body.single-post aside.widget-area,
body.single-post .ct-sidebar,
body.single-post [data-id="sidebar"] {
  display: none !important;
}

/* ========================================
   SIDEBAR WIDGETS
   ======================================== */
.bst-sidebar {
  position: sticky;
  top: var(--bst-header-height, 80px);
  align-self: start;
  margin-top: 50px;
  z-index: 100;
}

body.single-post .ct-container {
  position: relative;
  z-index: 1;
}

.bst-sidebar__widget {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
}

.bst-sidebar__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bst-text-muted);
  margin: 0 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--bst-orange-light);
}

/* Popular/Recent Posts List */
.bst-post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bst-post-list__item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--bst-border-light);
}

.bst-post-list__item:last-child {
  border-bottom: none;
}

.bst-post-list__thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
}

.bst-post-list__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bst-post-list__content {
  flex: 1;
  min-width: 0;
}

.bst-post-list__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bst-text);
  margin: 0 0 var(--space-1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

.bst-post-list__title:hover {
  color: var(--bst-orange);
}

.bst-post-list__meta {
  font-size: 12px;
  color: var(--bst-text-muted);
}

/* ========================================
   ARCHIVE / BLOG LISTING
   ======================================== */
.bst-archive-header {
  background: var(--bst-bg);
  border-bottom: 1px solid var(--bst-border);
  padding: var(--space-12) 0 var(--space-8);
  margin-bottom: var(--space-8);
  text-align: center;
}

.bst-archive-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin: 0 0 var(--space-3);
  color: var(--bst-text);
}

.bst-archive-description {
  font-size: 17px;
  color: var(--bst-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.bst-archive-count {
  font-size: 14px;
  color: var(--bst-text-muted);
  margin-top: var(--space-3);
}

/* Grid mejorado */
.bst-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

@media (max-width: 768px) {
  .bst-archive-grid {
    grid-template-columns: 1fr;
  }
}

.bst-card {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bst-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--bst-orange);
}

.bst-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.bst-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.bst-card:hover .bst-card__image img {
  transform: scale(1.05);
}

.bst-card__category {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: rgba(255,255,255,0.95);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bst-orange);
  text-decoration: none;
  backdrop-filter: blur(4px);
}

.bst-card__content {
  padding: var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bst-card__title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 var(--space-3);
  color: var(--bst-text);
}

.bst-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.bst-card__title a:hover {
  color: var(--bst-orange);
}

.bst-card__excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--bst-text-light);
  margin: 0 0 var(--space-4);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bst-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--bst-text-muted);
  padding-top: var(--space-4);
  border-top: 1px solid var(--bst-border-light);
}

.bst-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.bst-card__author img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
}

.bst-card__read-time {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ========================================
   PAGINATION
   ======================================== */
.bst-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-12) 0;
  padding-top: var(--space-8);
  border-top: 1px solid var(--bst-border);
}

.bst-pagination__link,
.bst-pagination__current {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.bst-pagination__link {
  background: var(--bst-bg);
  border: 1px solid var(--bst-border);
  color: var(--bst-text);
}

.bst-pagination__link:hover {
  border-color: var(--bst-orange);
  color: var(--bst-orange);
}

.bst-pagination__current {
  background: var(--bst-orange);
  color: white;
}

.bst-pagination__prev,
.bst-pagination__next {
  padding: 0 var(--space-4);
}

/* ========================================
   READING PROGRESS BAR
   ======================================== */
.bst-reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--bst-orange);
  z-index: 9999;
  transition: width 0.1s;
}

/* ========================================
   MOBILE STICKY CTA
   ======================================== */
.bst-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bst-bg);
  border-top: 1px solid var(--bst-border);
  padding: var(--space-3) var(--space-5);
  z-index: 100;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .bst-sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 70px;
  }
}

.bst-sticky-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3);
  background: var(--bst-orange);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--bst-orange);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .bst-toc,
  .bst-sidebar,
  .bst-sticky-cta,
  .bst-newsletter,
  .bst-share {
    display: none !important;
  }

  .bst-single-layout {
    grid-template-columns: 1fr !important;
  }
}
