/* Insight Nexus Strategy — Article Page Styles */
/* Extends the main styles.css for long-form article reading */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&family=DM+Serif+Display&display=swap');

:root {
  --bg: #080c16;
  --bg-soft: #0e1525;
  --bg-soft-2: #141d30;
  --bg-card: rgba(16, 23, 42, 0.65);
  --bg-card-hover: rgba(22, 31, 56, 0.8);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-border-hover: rgba(255, 255, 255, 0.12);
  --text: #e8ecf4;
  --text-bright: #ffffff;
  --muted: #8394b0;
  --muted-light: #5e6f8a;
  --accent: #d4a54a;
  --accent-glow: rgba(212, 165, 74, 0.15);
  --accent-soft: rgba(212, 165, 74, 0.08);
  --accent-2: #e8c170;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat; background-size: 200px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; display: block; }

/* === Article Header === */
.article-header {
  position: sticky; top: 0; z-index: 80;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(8, 12, 22, 0.82);
  border-bottom: 1px solid var(--glass-border);
  padding: 0.85rem 0;
}
.article-header .container {
  max-width: 1220px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
}
.article-header .brand {
  display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: inherit;
}
.article-header .brand-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #b8862e);
  color: var(--bg); display: grid; place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800; font-size: 0.85rem;
}
.article-header .brand-text {
  font-family: 'Sora', sans-serif; font-weight: 600;
  font-size: 0.9rem; color: var(--text-bright);
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  transition: all 0.25s var(--ease);
}
.back-link:hover {
  color: var(--accent); border-color: rgba(212, 165, 74, 0.2);
  background: var(--accent-soft);
}

/* === Article Hero === */
.article-hero {
  padding: 4rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 20% 30%, rgba(212, 165, 74, 0.06), transparent),
    radial-gradient(ellipse 50% 50% at 80% 20%, rgba(59, 130, 246, 0.04), transparent);
}
.article-hero .container {
  max-width: 820px; margin: 0 auto; padding: 0 1.25rem;
  position: relative;
}
.article-meta {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.article-meta .tag {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(212, 165, 74, 0.15);
  border-radius: 999px; padding: 0.22rem 0.6rem;
  font-size: 0.72rem; font-weight: 600;
  font-family: 'Sora', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.article-meta .date {
  font-size: 0.82rem; color: var(--muted-light);
  font-family: 'Sora', sans-serif;
}
.article-meta .reading-time {
  font-size: 0.82rem; color: var(--muted-light);
  display: flex; align-items: center; gap: 0.3rem;
}
.article-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700; line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  margin: 0 0 0.75rem;
}
.article-hero .lead {
  font-size: 1.15rem; color: var(--muted);
  line-height: 1.65; max-width: 65ch;
}

/* Decorative divider */
.article-divider {
  width: 60px; height: 3px; border: none;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 2rem 0;
  border-radius: 2px;
}

/* === Article Body === */
.article-body {
  max-width: 820px; margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.article-body h2 {
  font-family: 'Sora', sans-serif;
  font-size: 1.55rem; font-weight: 700;
  color: var(--text-bright);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
  padding-left: 0.85rem;
  border-left: 3px solid var(--accent);
}
.article-body h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  color: var(--text-bright);
  margin: 2rem 0 0.6rem;
}
.article-body p {
  margin: 0 0 1.25rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text);
}
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.5rem;
  color: var(--text);
}
.article-body li {
  margin: 0.4rem 0;
  line-height: 1.65;
}
.article-body li::marker {
  color: var(--accent);
}
.article-body strong { color: var(--text-bright); }
.article-body em { color: var(--muted); font-style: italic; }

/* Callout / Tip box */
.callout {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.callout .callout-label {
  font-family: 'Sora', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.callout p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Key Takeaway Card */
.takeaway-card {
  background: linear-gradient(135deg, rgba(212, 165, 74, 0.06), rgba(16, 23, 42, 0.8));
  border: 1px solid rgba(212, 165, 74, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
}
.takeaway-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1rem; font-weight: 700;
  color: var(--accent); margin: 0 0 0.6rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.takeaway-card ul {
  margin: 0; padding-left: 1.2rem;
}
.takeaway-card li {
  margin: 0.35rem 0; color: var(--text);
}

/* Table styling */
.article-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}
.article-table th, .article-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.article-table th {
  font-family: 'Sora', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(212, 165, 74, 0.04);
}
.article-table td { color: var(--text); }
.article-table tr:hover td { background: rgba(255, 255, 255, 0.02); }

/* === CTA Section at bottom === */
.article-cta {
  max-width: 820px; margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.cta-card h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--text-bright); margin: 0 0 0.5rem;
}
.cta-card p { color: var(--muted); margin: 0 0 1.25rem; }
.cta-card .btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 0.8rem 1.6rem;
  cursor: pointer; font-weight: 600; font-size: 0.92rem;
  transition: all 0.3s var(--ease); text-decoration: none;
  background: linear-gradient(135deg, var(--accent), #b8862e);
  color: var(--bg); border: none;
  font-family: 'Sora', sans-serif;
  box-shadow: 0 4px 20px rgba(212, 165, 74, 0.2);
}
.cta-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 165, 74, 0.35);
}

/* === Related Articles === */
.related-section {
  max-width: 820px; margin: 0 auto;
  padding: 0 1.25rem 4rem;
}
.related-section h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-bright); margin: 0 0 1rem;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  display: block;
}
.related-card:hover {
  border-color: var(--glass-border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}
.related-card .r-tag {
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase;
  font-family: 'Sora', sans-serif; letter-spacing: 0.06em;
}
.related-card h4 {
  font-family: 'Sora', sans-serif;
  font-size: 0.92rem; font-weight: 600;
  color: var(--text-bright); margin: 0.3rem 0 0.2rem;
}
.related-card p {
  font-size: 0.82rem; color: var(--muted);
  margin: 0; line-height: 1.5;
}

/* === Footer === */
.article-footer {
  border-top: 1px solid var(--glass-border);
  background: rgba(8, 12, 22, 0.9);
  padding: 1.5rem 0 2rem;
}
.article-footer .container {
  max-width: 1220px; margin: 0 auto; padding: 0 1.25rem;
  display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start;
}
.article-footer strong { font-family: 'Sora', sans-serif; color: var(--text-bright); }
.article-footer p { margin: 0.35rem 0 0; color: var(--muted); font-size: 0.88rem; }
.article-footer .footer-meta {
  display: flex; flex-direction: column; gap: 0.3rem;
  color: var(--muted-light); font-size: 0.88rem; text-align: right;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-soft-2); border-radius: 4px; }
::selection { background: rgba(212, 165, 74, 0.25); color: var(--text-bright); }

/* Lang switch in article header */
.lang-switch-article {
  display: flex; gap: 0.2rem;
  border: 1px solid var(--glass-border); border-radius: var(--radius-sm);
  padding: 0.15rem; background: rgba(255, 255, 255, 0.03);
}
.lang-switch-article button {
  border: none; background: transparent; cursor: pointer;
  border-radius: 7px; padding: 0.3rem 0.5rem;
  font-weight: 600; font-size: 0.78rem; color: var(--muted);
  font-family: 'Sora', sans-serif;
  transition: all 0.25s var(--ease);
}
.lang-switch-article button.active {
  background: var(--accent); color: var(--bg);
}
.lang-switch-article button:not(.active):hover {
  color: var(--text-bright); background: rgba(255, 255, 255, 0.06);
}

/* === Responsive === */
@media (max-width: 820px) {
  .article-hero { padding: 2.5rem 0 1.5rem; }
  .article-hero h1 { font-size: 1.6rem; }
  .article-body h2 { font-size: 1.3rem; }
  .article-footer .container { flex-direction: column; }
  .article-footer .footer-meta { text-align: left; }
}
@media (max-width: 480px) {
  .article-header .brand-text { display: none; }
  .related-grid { grid-template-columns: 1fr; }
}
