/* ===== Article Page Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@400;600;700&display=swap');

:root {
  --primary: #f5a623;
  --bg-deep: #050a1a;
  --bg-dark: #0a1228;
  --bg-card: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.75);
  --text-muted: rgba(255,255,255,0.45);
  --gold-gradient: linear-gradient(135deg, #f5a623, #ffd700, #f5a623);
  --card-radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans SC', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.7;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* Nav (reuse main) */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,10,26,0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-icon { width: 36px; height: 36px; background: var(--gold-gradient); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.nav-logo .brand { font-size: 15px; font-weight: 700; color: var(--primary); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.back-link:hover { color: var(--primary); }

/* Article Layout */
.article-page {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.article-page h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 40px;
  font-size: 13px;
  color: var(--text-muted);
}

.article-meta-bar span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Article content */
.article-content {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text-secondary);
}

.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--primary);
}

.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 16px 0 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-content li {
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--primary);
  font-weight: 700;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-callout {
  background: rgba(245,166,35,0.06);
  border: 1px solid rgba(245,166,35,0.2);
  border-left: 4px solid var(--primary);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 28px 0;
}

.article-callout p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(245,166,35,0.1), rgba(245,166,35,0.04));
  border: 1px solid rgba(245,166,35,0.3);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin: 48px 0;
}

.article-cta-box h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.article-cta-box p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  color: #1a0e00;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(245,166,35,0.4);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(245,166,35,0.6);
}

/* Sidebar / Related */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.related-link {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--glass-border);
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-link:last-child { border-bottom: none; }

.related-link:hover .related-title { color: var(--primary); }

.related-num {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.related-title {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  transition: color 0.2s;
}

.sidebar-promo {
  background: linear-gradient(135deg, rgba(245,166,35,0.12), rgba(245,166,35,0.04));
  border: 1px solid rgba(245,166,35,0.3);
}

.sidebar-promo .price-badge {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0;
}

.sidebar-promo .price-badge .currency { font-size: 16px; color: var(--primary); }
.sidebar-promo .price-badge .amount { font-size: 36px; font-weight: 900; color: var(--primary); }
.sidebar-promo .price-badge .period { font-size: 13px; color: var(--text-muted); }

.sidebar-promo ul {
  list-style: none;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-promo ul li {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-promo ul li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
}

.btn-sidebar {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--gold-gradient);
  color: #1a0e00;
  padding: 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-sidebar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,166,35,0.5);
}

/* Article list page */
.article-list-hero {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-dark) 100%);
  padding: 100px 20px 60px;
  text-align: center;
}

.article-list-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-list-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--card-radius);
  padding: 28px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.article-list-card:hover {
  transform: translateY(-5px);
  border-color: rgba(245,166,35,0.3);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.alc-emoji { font-size: 40px; margin-bottom: 16px; display: block; }
.alc-cat {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.alc-title { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 10px; line-height: 1.5; }
.alc-excerpt { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.alc-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 14px; }

/* Footer (shared) */
.footer-simple {
  background: var(--bg-deep);
  border-top: 1px solid var(--glass-border);
  padding: 32px 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-simple a { color: var(--primary); text-decoration: none; }

@media (max-width: 960px) {
  .article-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .navbar { padding: 12px 16px; }
  .sidebar { grid-template-columns: 1fr; }
  .article-list-grid { grid-template-columns: 1fr; }
}
