/* ==========================================================================
   UOCloud Article & Content Stylesheet (uocloud.homes)
   Pure Native CSS - Ultra Fast Article Reading Experience
   ========================================================================== */

.article-page {
  padding: 50px 0 90px;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  margin-bottom: 30px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  font-size: 0.88rem;
}
.breadcrumb-item a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
  color: var(--primary);
}
.breadcrumb-item.current {
  color: var(--text-muted);
  max-width: 320px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.breadcrumb-separator {
  color: var(--text-dim);
}

/* Article Layout Grid */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

/* Main Article Container */
.article-main {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 44px;
  backdrop-filter: blur(12px);
}

.article-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 26px;
  margin-bottom: 32px;
}
.article-category {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(0, 242, 254, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.article-title {
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
}
.article-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.88rem;
  color: var(--text-muted);
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article Content Typography */
.article-body {
  font-size: 1.05rem;
  line-height: 1.85;
  color: #cbd5e1;
}
.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin: 42px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-body h2::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 28px 0 14px;
}
.article-body p {
  margin-bottom: 20px;
}
.article-body strong {
  color: #ffffff;
  font-weight: 700;
}
.article-body ul, .article-body ol {
  margin: 18px 0 24px 24px;
}
.article-body li {
  margin-bottom: 10px;
}

/* Article Internal Links */
.article-body a.internal-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  font-weight: 600;
  transition: all 0.2s ease;
}
.article-body a.internal-link:hover {
  color: #ffffff;
  background: rgba(0, 242, 254, 0.15);
  padding: 0 4px;
  border-radius: 4px;
}

/* Callout Box */
.article-callout {
  background: rgba(0, 242, 254, 0.06);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 24px;
  margin: 26px 0;
  font-size: 0.98rem;
  color: #e2e8f0;
}
.article-callout.tip {
  border-left-color: var(--success);
  background: rgba(16, 185, 129, 0.07);
}
.article-callout.warning {
  border-left-color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
}

/* Article Key Highlight Box */
.article-highlight-box {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(20, 36, 68, 0.8) 100%);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 30px 0;
}

/* Prev Next Post Navigation */
.article-nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
}
.nav-article-card {
  display: block;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  text-decoration: none;
  transition: var(--transition);
}
.nav-article-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.nav-label {
  display: block;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 6px;
}
.nav-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Article Sidebar */
.article-sidebar {
  position: sticky;
  top: 94px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px;
  backdrop-filter: blur(12px);
}
.widget-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sidebar-plan-card {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08) 0%, rgba(127, 0, 255, 0.12) 100%);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.sidebar-plan-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--primary);
  font-family: var(--font-mono);
  margin: 10px 0;
}
.sidebar-article-list {
  list-style: none;
}
.sidebar-article-item {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-article-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.sidebar-article-item a {
  text-decoration: none;
  display: block;
}
.sidebar-article-item span:first-child {
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s ease;
}
.sidebar-article-item a:hover span:first-child {
  color: var(--primary);
}
.sidebar-article-date {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 992px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .article-main {
    padding: 30px 22px;
  }
  .article-sidebar {
    position: static;
  }
}
@media (max-width: 600px) {
  .article-nav-prev-next {
    grid-template-columns: 1fr;
  }
}
