/* ==========================================================================
   DoggyGo Article Stylesheet (SEO & GEO Optimized Article Layout)
   ========================================================================== */

.article-page {
  padding-top: 110px;
  padding-bottom: 90px;
  position: relative;
  z-index: 2;
}

/* Reading Progress Bar */
.reading-progress-bar {
  position: fixed;
  top: 74px;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--cyan-gradient);
  z-index: 999;
  transition: width 0.1s linear;
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-sub);
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--cyan-glow);
}

.breadcrumbs span.separator {
  color: var(--text-sub);
}

.breadcrumbs span.current {
  color: var(--cyan-glow);
  font-weight: 500;
}

/* Article Layout Grid */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  min-width: 0;
}

.article-layout > * {
  min-width: 0;
}

.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Article Header */
.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
}

.article-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.article-tag {
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid var(--border-glass);
  color: var(--cyan-glow);
  font-size: 0.8rem;
  font-weight: 600;
}

.article-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.article-meta-info {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* GEO Quick Answer Box (AI Search Direct Answer Snippet) */
.geo-quick-answer {
  background: rgba(34, 211, 238, 0.06);
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 36px;
  position: relative;
}

.geo-answer-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--cyan-glow);
  font-weight: 700;
  font-size: 0.95rem;
}

.geo-answer-text {
  font-size: 1.02rem;
  color: #F1F5F9;
  line-height: 1.8;
  font-weight: 500;
}

/* Article Typography */
.article-body {
  font-size: 1.06rem;
  line-height: 1.88;
  color: #CBD5E1;
}

.article-body h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 48px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
  color: #F8FAFC;
  position: relative;
}

.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 50px;
  height: 2px;
  background: var(--cyan-glow);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 14px;
  color: #E2E8F0;
}

.article-body p {
  margin-bottom: 22px;
  color: #CBD5E1;
}

.article-body strong {
  color: #F8FAFC;
  font-weight: 600;
}

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

.article-body li {
  margin-bottom: 10px;
  color: #CBD5E1;
}

.article-callout {
  background: rgba(13, 22, 49, 0.7);
  border-left: 4px solid var(--tech-purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 24px;
  margin: 28px 0;
}

.article-callout h4 {
  font-size: 1.05rem;
  color: #C4B5FD;
  margin-bottom: 8px;
}

.article-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Article Table Styling */
.article-table-wrap {
  overflow-x: auto;
  margin: 30px 0;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: rgba(7, 11, 24, 0.5);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
}

.article-table th, .article-table td {
  padding: 14px 18px;
  border: 1px solid rgba(37, 99, 235, 0.15);
  text-align: left;
}

.article-table th {
  background: rgba(37, 99, 235, 0.12);
  color: var(--text-main);
  font-weight: 700;
}

.article-table td {
  color: #CBD5E1;
}

/* Article Internal FAQ */
.article-faq-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.article-faq-section h2 {
  border-bottom: none;
  margin-top: 0;
}

.article-faq-section h2::before {
  display: none;
}

.article-faq-item {
  background: rgba(13, 22, 49, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  padding: 20px 24px;
}

.article-faq-item h3 {
  font-size: 1.12rem;
  color: var(--text-main);
  margin-top: 0;
  margin-bottom: 10px;
}

.article-faq-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Related Internal Articles Linking */
.related-articles-section {
  margin-top: 54px;
  padding-top: 36px;
  border-top: 1px solid rgba(37, 99, 235, 0.2);
}

.related-articles-title {
  font-size: 1.35rem;
  margin-bottom: 22px;
  color: var(--text-main);
}

.related-articles-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.related-card {
  background: rgba(13, 22, 49, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
  text-decoration: none !important;
}

.related-card:hover {
  border-color: var(--cyan-glow);
  transform: translateY(-3px);
  background: rgba(22, 34, 72, 0.7);
}

.related-card h4 {
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-card:hover h4 {
  color: var(--cyan-glow);
}

.related-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

/* Sidebar Widgets */
.article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.sidebar-widget-title {
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-plan-card {
  text-align: center;
}

.sidebar-plan-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  background: var(--cyan-gradient);
  color: #070B18;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.sidebar-plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.sidebar-plan-price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: normal;
}

.sidebar-plan-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toc-list a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: block;
  padding: 4px 0;
}

.toc-list a:hover {
  color: var(--cyan-glow);
  transform: translateX(4px);
  text-decoration: none;
}

@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .article-main {
    padding: 32px 22px;
  }
  .related-articles-list {
    grid-template-columns: 1fr;
  }
  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .article-page {
    padding-top: 88px;
    padding-bottom: 60px;
  }

  .reading-progress-bar {
    top: 66px;
  }

  .article-main {
    padding: 24px 18px;
    border-radius: var(--radius-md);
  }

  .article-title {
    font-size: clamp(1.45rem, 5vw, 1.85rem);
    line-height: 1.35;
    margin-bottom: 16px;
  }

  .article-meta-info {
    gap: 12px;
    font-size: 0.82rem;
  }

  .geo-quick-answer {
    padding: 16px 18px;
    margin-bottom: 28px;
  }

  .geo-answer-text {
    font-size: 0.95rem;
    line-height: 1.75;
  }

  .article-body {
    font-size: 1rem;
    line-height: 1.8;
  }

  .article-body h2 {
    font-size: 1.32rem;
    margin-top: 36px;
    margin-bottom: 14px;
  }

  .article-body h3 {
    font-size: 1.12rem;
    margin-top: 24px;
    margin-bottom: 10px;
  }

  .article-table-wrap {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }

  .article-table {
    min-width: 480px;
    font-size: 0.88rem;
  }

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

  .article-faq-item {
    padding: 16px 18px;
  }

  .article-faq-item h3 {
    font-size: 1.05rem;
  }

  .article-faq-item p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .article-main {
    padding: 20px 14px;
  }

  .article-tags {
    gap: 6px;
  }

  .article-tag {
    padding: 3px 10px;
    font-size: 0.75rem;
  }

  .breadcrumbs {
    font-size: 0.82rem;
    margin-bottom: 20px;
  }
}
