/* ==================================
   VOWSLIVE - BLOG STYLES
   Extends main.css with blog-specific components
   ================================== */

/* ------------------------------
   SKIP LINK (Accessibility)
   ------------------------------ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #1a1a1a;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  z-index: 1000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-rose-gold-text);
  outline-offset: 2px;
}

/* ------------------------------
   READING PROGRESS BAR
   ------------------------------ */
.reading-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(254, 213, 206, 0.3);
  z-index: 101;
  overflow: hidden;
}

.reading-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-rose-gold) 100%);
  width: 0%;
  transition: width 0.1s ease;
}

/* ------------------------------
   BLOG HERO
   ------------------------------ */
.blog-hero {
  padding: 160px 0 80px;
  background: linear-gradient(135deg, #fef6f3 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(254, 200, 154, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.blog-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 16px;
  color: var(--color-text);
  line-height: 1.1;
}

.blog-hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

/* ------------------------------
   CATEGORY FILTER NAVIGATION
   ------------------------------ */
.blog-categories {
  padding: 32px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(254, 213, 206, 0.3);
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.category-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  padding: 10px 20px;
  border: 2px solid rgba(254, 213, 206, 0.4);
  background: #ffffff;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-body);
}

.category-btn:hover {
  border-color: var(--color-accent);
  background: rgba(254, 200, 154, 0.1);
  transform: translateY(-1px);
}

.category-btn.active {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-color: var(--color-accent);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(254, 200, 154, 0.3);
}

/* ------------------------------
   FEATURED POST
   ------------------------------ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(254, 213, 206, 0.4);
  box-shadow: 0 20px 60px rgba(254, 197, 187, 0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 80px rgba(254, 197, 187, 0.3);
}

.featured-post-media {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 480px;
}

.featured-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.featured-post:hover .featured-post-media img {
  transform: scale(1.05);
}

.post-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-rose-gold) 100%);
  color: #1a1a1a;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 16px rgba(254, 200, 154, 0.4);
}

.featured-post-content {
  padding: 40px;
}

.featured-post h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.featured-post h2 a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.featured-post h2 a:hover {
  color: var(--color-accent-text);
}

.post-excerpt {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
}

.featured-post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(254, 213, 206, 0.3);
}

/* ------------------------------
   POST META (Date, Category, Read Time)
   ------------------------------ */
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  margin-bottom: 12px;
}

.post-category {
  background: rgba(254, 200, 154, 0.2);
  color: var(--color-accent-text);
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-date,
.post-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ------------------------------
   POST AUTHOR
   ------------------------------ */
.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-soft-pink);
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.author-role {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* ------------------------------
   BLOG LAYOUT (Grid + Sidebar)
   ------------------------------ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

/* ------------------------------
   BLOG POSTS GRID
   ------------------------------ */
.blog-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* ------------------------------
   POST CARD
   ------------------------------ */
.post-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(254, 213, 206, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 24px rgba(254, 197, 187, 0.1);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(254, 197, 187, 0.25);
  border-color: var(--color-accent);
}

.post-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-media img {
  transform: scale(1.08);
}

.post-card-media .post-category {
  position: absolute;
  top: 16px;
  left: 16px;
}

.post-card-content {
  padding: 24px;
}

.post-card h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  margin-bottom: 12px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.post-card:hover h3 {
  color: var(--color-accent-text);
}

.post-card .post-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.6;
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-accent-text);
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.post-card:hover .read-more {
  gap: 10px;
}

/* ------------------------------
   PAGINATION
   ------------------------------ */
.blog-pagination {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(254, 213, 206, 0.3);
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid rgba(254, 213, 206, 0.4);
  border-radius: 12px;
  background: #ffffff;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.pagination-link:hover:not([disabled]) {
  border-color: var(--color-accent);
  background: rgba(254, 200, 154, 0.1);
  transform: translateY(-1px);
}

.pagination-link[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-numbers {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 2px solid rgba(254, 213, 206, 0.4);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.25s ease;
}

.pagination-number:hover {
  border-color: var(--color-accent);
  background: rgba(254, 200, 154, 0.1);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-color: var(--color-accent);
  color: #1a1a1a;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(254, 200, 154, 0.3);
}

.pagination-ellipsis {
  color: var(--color-text-soft);
  padding: 0 4px;
}

/* ------------------------------
   BLOG SIDEBAR
   ------------------------------ */
.blog-sidebar {
  position: sticky;
  top: 140px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(254, 213, 206, 0.4);
  box-shadow: 0 8px 24px rgba(254, 197, 187, 0.1);
}

.sidebar-widget h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.sidebar-widget p {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  line-height: 1.6;
}

/* Newsletter Widget */
.newsletter-widget {
  background: linear-gradient(135deg, #fef6f3 0%, #ffffff 100%);
  border-color: var(--color-accent);
  border-width: 2px;
}

.sidebar-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.sidebar-newsletter-form input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(254, 213, 206, 0.5);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.sidebar-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 200, 154, 0.15);
}

.sidebar-newsletter-form .btn {
  width: 100%;
}

/* Popular Posts Widget */
.popular-posts-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popular-post-item {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(254, 213, 206, 0.3);
}

.popular-post-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.popular-post-content {
  flex: 1;
}

.popular-post-content a {
  text-decoration: none;
  color: inherit;
}

.popular-post-content h4 {
  font-size: 0.95rem;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.popular-post-item:hover h4 {
  color: var(--color-accent-text);
}

.popular-post-content time {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

/* Categories Widget */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.categories-list li {
  margin: 0;
}

.categories-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.9rem;
  transition: all 0.25s ease;
  background: rgba(254, 200, 154, 0.05);
}

.categories-list a:hover {
  background: rgba(254, 200, 154, 0.15);
  color: var(--color-accent-text);
  transform: translateX(4px);
}

.category-count {
  font-size: 0.8rem;
  color: var(--color-text-soft);
  font-weight: 600;
}

/* CTA Widget */
.cta-widget {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-color: var(--color-accent);
  color: #1a1a1a;
  text-align: center;
}

.cta-widget h3 {
  color: #1a1a1a;
}

.cta-widget p {
  color: rgba(26, 26, 26, 0.8);
}

.btn-block {
  width: 100%;
  margin-top: 16px;
}

/* ------------------------------
   BLOG CTA SECTION
   ------------------------------ */
.blog-cta-section {
  padding: 80px 0;
}

.blog-cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.blog-cta-content h2 {
  color: #ffffff;
  margin-bottom: 16px;
}

.blog-cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.blog-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------------------
   BLOG POST PAGE STYLES
   ------------------------------ */

/* Article Hero */
.article-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  padding-bottom: 60px;
  padding-top: 140px;
}

.article-hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.article-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

/* Breadcrumb */
.article-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.article-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--color-accent-hover);
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.6);
}

.article-breadcrumb .post-category {
  background: rgba(254, 200, 154, 0.3);
  color: #ffffff;
}

.article-hero h1 {
  font-size: 3.2rem;
  margin-bottom: 24px;
  line-height: 1.2;
  color: #ffffff;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}

.article-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.article-author-name {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
}

.article-author-role {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.article-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.article-meta-separator {
  color: rgba(255, 255, 255, 0.5);
}

/* Article Body Layout */
.article-body {
  padding: 80px 0;
}

.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
}

/* Table of Contents (Sticky Sidebar) */
.article-toc {
  position: sticky;
  top: 120px;
}

.article-toc-sticky {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid rgba(254, 213, 206, 0.4);
  box-shadow: 0 8px 24px rgba(254, 197, 187, 0.1);
}

.article-toc-title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-text);
  font-weight: 600;
}

.article-toc-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  color: var(--color-text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background: rgba(254, 200, 154, 0.1);
  color: var(--color-accent-text);
  transform: translateX(4px);
}

.toc-link.active {
  background: rgba(254, 200, 154, 0.15);
  color: var(--color-accent-text);
  font-weight: 600;
  border-left-color: var(--color-accent);
}

/* Social Share Buttons */
.article-social-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(254, 213, 206, 0.3);
}

.share-title {
  font-size: 0.9rem;
  margin-bottom: 12px;
  color: var(--color-text);
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.share-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(254, 200, 154, 0.1);
  color: var(--color-accent-text);
  text-decoration: none;
  transition: all 0.25s ease;
}

.share-btn:hover {
  background: var(--color-accent);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(254, 200, 154, 0.3);
}

/* Article Content */
.article-content {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text);
}

.article-section {
  margin-bottom: 48px;
}

.article-lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--color-text);
  margin-bottom: 24px;
  font-weight: 400;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 48px;
  margin-bottom: 24px;
  color: var(--color-text);
  scroll-margin-top: 100px;
}

.article-content h3 {
  font-size: 1.5rem;
  margin-top: 32px;
  margin-bottom: 16px;
  color: var(--color-text);
  scroll-margin-top: 100px;
}

.article-content h4 {
  font-size: 1.2rem;
  margin-top: 24px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.article-content p {
  margin-bottom: 24px;
  line-height: 1.8;
}

.article-content ul,
.article-content ol {
  margin-bottom: 24px;
  padding-left: 28px;
}

.article-content li {
  margin-bottom: 12px;
  line-height: 1.7;
}

.article-content strong {
  font-weight: 600;
  color: var(--color-text);
}

/* Article Images */
.article-image-block {
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(254, 197, 187, 0.15);
}

.article-image-block img {
  width: 100%;
  display: block;
}

.article-image-block figcaption {
  padding: 16px 20px;
  background: rgba(254, 200, 154, 0.1);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  text-align: center;
  font-style: italic;
}

/* Blockquotes */
.article-blockquote {
  margin: 40px 0;
  padding: 32px 40px;
  background: linear-gradient(135deg, #fef6f3 0%, #ffffff 100%);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 8px 24px rgba(254, 197, 187, 0.1);
}

.article-blockquote p {
  font-size: 1.2rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 16px;
}

.article-blockquote cite {
  display: block;
  font-size: 0.95rem;
  color: var(--color-accent-text);
  font-style: normal;
  font-weight: 600;
}

/* Comparison Table */
.article-comparison-table {
  margin: 40px 0;
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(254, 197, 187, 0.1);
}

.article-comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.article-comparison-table thead {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.article-comparison-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
  color: #1a1a1a;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.article-comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(254, 213, 206, 0.3);
  color: var(--color-text);
}

.article-comparison-table tbody tr:hover {
  background: rgba(254, 200, 154, 0.05);
}

/* Inline CTAs */
.article-cta {
  margin: 48px 0;
  padding: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.article-cta-soft {
  background: linear-gradient(135deg, #fef6f3 0%, #ffffff 100%);
  border: 2px solid var(--color-soft-pink);
}

.article-cta-hard {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border: 2px solid var(--color-accent);
  flex-direction: column;
  text-align: center;
}

.article-cta-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.article-cta-content h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.article-cta-hard .article-cta-content h4 {
  color: #1a1a1a;
}

.article-cta-content p {
  margin-bottom: 16px;
  color: var(--color-text-soft);
}

.article-cta-hard .article-cta-content p {
  color: rgba(26, 26, 26, 0.8);
}

.article-cta-hard .article-cta-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.article-cta .btn {
  flex-shrink: 0;
}

/* Tip and Warning Boxes */
.article-tip-box,
.article-warning-box {
  margin: 32px 0;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  gap: 16px;
}

.article-tip-box {
  background: rgba(254, 200, 154, 0.1);
  border: 1px solid var(--color-accent);
}

.article-warning-box {
  background: rgba(254, 197, 187, 0.1);
  border: 1px solid var(--color-soft-pink);
}

.tip-icon,
.warning-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.tip-content h4,
.warning-content h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--color-text);
}

.tip-content p,
.warning-content p {
  margin-bottom: 0;
  color: var(--color-text-soft);
}

/* Article Tags */
.article-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(254, 213, 206, 0.3);
}

.article-tags h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 8px 16px;
  background: rgba(254, 200, 154, 0.1);
  border: 1px solid rgba(254, 213, 206, 0.4);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--color-accent-text);
  text-decoration: none;
  transition: all 0.25s ease;
}

.tag:hover {
  background: rgba(254, 200, 154, 0.2);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

/* Author Bio */
.article-author-bio {
  margin-top: 64px;
  padding: 40px;
  background: linear-gradient(135deg, #fef6f3 0%, #ffffff 100%);
  border-radius: 16px;
  border: 1px solid rgba(254, 213, 206, 0.4);
  display: flex;
  gap: 24px;
}

.author-bio-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-soft-pink);
  flex-shrink: 0;
}

.author-bio-content h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent-text);
  margin-bottom: 8px;
  font-weight: 600;
}

.author-bio-content h4 {
  font-size: 1.5rem;
  margin-bottom: 4px;
  color: var(--color-text);
}

.author-bio-title {
  font-size: 0.9rem;
  color: var(--color-text-soft);
  margin-bottom: 12px;
  font-weight: 500;
}

.author-bio-description {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin-bottom: 16px;
}

.author-bio-social {
  display: flex;
  gap: 16px;
}

.author-bio-social a {
  font-size: 0.9rem;
  color: var(--color-accent-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.author-bio-social a:hover {
  color: var(--color-accent-dark);
}

/* Article Newsletter CTA */
.article-newsletter-cta {
  margin-top: 48px;
  padding: 40px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: 16px;
  text-align: center;
}

.article-newsletter-cta h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.article-newsletter-cta p {
  font-size: 1.05rem;
  color: rgba(26, 26, 26, 0.8);
  margin-bottom: 24px;
}

.article-newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.article-newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.article-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  background: #ffffff;
}

/* Related Posts Section */
.related-posts-section {
  padding: 80px 0;
  background: #fef6f3;
}

.related-posts-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 48px;
  color: var(--color-text);
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Comments Section */
.comments-section {
  padding: 80px 0;
  background: #ffffff;
}

.comments-container {
  max-width: 900px;
  margin: 0 auto;
}

.comments-title {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--color-text);
  text-align: center;
}

.comments-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--color-text-soft);
  margin-bottom: 40px;
}

/* Comment Form */
.comment-form {
  background: #ffffff;
  border: 2px solid rgba(254, 213, 206, 0.4);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 48px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.comment-form .form-group {
  margin-bottom: 16px;
}

.comment-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(254, 213, 206, 0.4);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(254, 200, 154, 0.15);
}

.comment-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(254, 213, 206, 0.4);
  border-radius: 12px;
}

.comment-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-content {
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.comment-author {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.comment-date {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0;
}

/* ------------------------------
   RESPONSIVE DESIGN
   ------------------------------ */

/* Tablets (960px and below) */
@media (max-width: 960px) {
  .blog-hero h1 {
    font-size: 2.8rem;
  }

  .featured-post {
    grid-template-columns: 1fr;
  }

  .featured-post-media {
    min-height: 360px;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-hero h1 {
    font-size: 2.5rem;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article-toc {
    position: static;
    order: -1;
  }

  .article-toc-sticky {
    padding: 20px;
  }

  .article-toc-nav {
    display: none;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Mobile (720px and below) */
@media (max-width: 720px) {
  .blog-hero {
    padding: 140px 0 60px;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .blog-hero-subtitle {
    font-size: 1rem;
  }

  .blog-categories {
    top: 64px;
  }

  .category-nav {
    gap: 8px;
  }

  .category-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .featured-post-content {
    padding: 28px;
  }

  .featured-post h2 {
    font-size: 1.6rem;
  }

  .featured-post-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .featured-post-footer .btn {
    width: 100%;
  }

  .blog-posts-grid,
  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-pagination {
    flex-direction: column;
    gap: 16px;
  }

  .pagination-numbers {
    order: -1;
  }

  .article-hero {
    min-height: 50vh;
    padding-bottom: 40px;
    padding-top: 120px;
  }

  .article-hero h1 {
    font-size: 1.8rem;
  }

  .article-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .article-body {
    padding: 60px 0;
  }

  .article-content {
    font-size: 1rem;
  }

  .article-lead {
    font-size: 1.1rem;
  }

  .article-content h2 {
    font-size: 1.6rem;
  }

  .article-content h3 {
    font-size: 1.3rem;
  }

  .article-blockquote {
    padding: 24px 20px;
  }

  .article-blockquote p {
    font-size: 1.05rem;
  }

  .article-cta {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .article-cta .btn {
    width: 100%;
  }

  .article-newsletter-form {
    flex-direction: column;
  }

  .article-author-bio {
    padding: 28px;
  }

  .author-bio-avatar {
    width: 80px;
    height: 80px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .comment-item {
    flex-direction: column;
  }

  .blog-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .blog-cta-actions .btn {
    width: 100%;
  }

  .article-comparison-table {
    font-size: 0.85rem;
  }

  .article-comparison-table th,
  .article-comparison-table td {
    padding: 12px 10px;
  }
}

/* ------------------------------
   ACCESSIBILITY ENHANCEMENTS
   ------------------------------ */

/* High contrast focus states for keyboard navigation */
@media (prefers-contrast: high) {
  .category-btn:focus,
  .toc-link:focus,
  .share-btn:focus {
    outline: 3px solid #000;
    outline-offset: 2px;
  }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reading-progress-fill {
    transition: none;
  }
}

/* Print styles for article pages */
@media print {
  .site-header,
  .reading-progress-bar,
  .article-hero-overlay,
  .article-toc,
  .article-social-share,
  .article-cta,
  .article-newsletter-cta,
  .related-posts-section,
  .comments-section,
  .site-footer,
  .blog-categories {
    display: none !important;
  }

  .article-hero {
    position: static;
    min-height: auto;
    padding: 20px 0;
  }

  .article-hero h1 {
    color: #000;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-content {
    max-width: 100%;
  }
}
