/* UAI Link - Technical SEO & GEO Article Theme */
:root {
  --bg-dark: #0A0F17;
  --bg-card: #111827;
  --bg-surface: #1E293B;
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --brand-cyan: #0EA5E9;
  --brand-emerald: #10B981;
  --brand-amber: #F59E0B;
  --brand-red: #EF4444;
  --border: #334155;
  --border-light: #1E293B;
  --code-bg: #030712;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-cyan); text-decoration: none; transition: color 0.2s; }
a:hover { color: #38BDF8; text-decoration: underline; }

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
header.site-header {
  background: rgba(10, 15, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: #FFF;
}
.brand-badge {
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  color: #FFF;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
}
.header-nav a { color: var(--text-muted); font-weight: 500; }
.header-nav a:hover { color: #FFF; text-decoration: none; }
.lang-switch {
  display: flex;
  gap: 6px;
  background: var(--bg-surface);
  padding: 3px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.lang-btn {
  font-size: 0.8rem;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}
.lang-btn.active {
  background: var(--brand-cyan);
  color: #FFF;
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  margin: 25px 0 15px;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb span.sep { margin: 0 8px; }

/* Article Header */
.article-header {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--border);
}
.pill-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.pill-1 { background: rgba(14, 165, 233, 0.15); color: #38BDF8; border: 1px solid rgba(14, 165, 233, 0.3); }
.pill-2 { background: rgba(245, 158, 11, 0.15); color: #FBBF24; border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-3 { background: rgba(16, 185, 129, 0.15); color: #34D399; border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-4 { background: rgba(239, 68, 68, 0.15); color: #F87171; border: 1px solid rgba(239, 68, 68, 0.3); }

h1.article-title {
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
  color: #FFF;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* TLDR Callout */
.tldr-callout {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(16, 185, 129, 0.05));
  border-left: 4px solid var(--brand-cyan);
  border-radius: 0 12px 12px 0;
  padding: 20px 24px;
  margin: 25px 0 35px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.tldr-callout strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--brand-cyan);
  margin-bottom: 6px;
}
.tldr-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: #F1F5F9;
  line-height: 1.5;
}

/* Article Sections */
.article-section {
  margin: 35px 0;
}
.article-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.article-section p {
  color: #CBD5E1;
  font-size: 1.02rem;
  margin-bottom: 16px;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
table.tech-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}
table.tech-table th {
  background: var(--bg-surface);
  color: #FFF;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}
table.tech-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: #CBD5E1;
}
table.tech-table tr:last-child td { border-bottom: none; }
table.tech-table code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38BDF8;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Steps List */
ol.step-guide {
  list-style: none;
  counter-reset: step-counter;
  margin: 20px 0;
}
ol.step-guide li {
  counter-increment: step-counter;
  position: relative;
  padding-left: 48px;
  margin-bottom: 18px;
  color: #CBD5E1;
  font-size: 1.02rem;
}
ol.step-guide li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  background: var(--bg-surface);
  border: 2px solid var(--brand-cyan);
  color: #FFF;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Code Blocks */
.code-box {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 20px 0;
  overflow: hidden;
}
.code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.code-lang-tabs {
  display: flex;
  gap: 8px;
}
.code-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.8rem;
}
.code-tab.active {
  background: rgba(14, 165, 233, 0.2);
  color: #38BDF8;
}
.copy-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.78rem;
}
.copy-btn:hover { color: #FFF; border-color: #94A3B8; }
pre.code-content {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.5;
  color: #E2E8F0;
}

/* Conversion CTA Card */
.cta-banner {
  background: linear-gradient(135deg, #111827 0%, #1E293B 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 35px;
  margin: 45px 0;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.cta-banner h3 {
  font-size: 1.7rem;
  color: #FFF;
  margin-bottom: 10px;
}
.cta-banner p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #0EA5E9, #10B981);
  color: #FFF;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
  text-decoration: none;
}

/* Footer */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: #080C14;
  padding: 40px 0;
  margin-top: 60px;
  font-size: 0.88rem;
  color: var(--text-dim);
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Hub Filter Styles */
.hub-hero {
  text-align: center;
  padding: 50px 0 30px;
}
.hub-hero h1 {
  font-size: 2.8rem;
  color: #FFF;
  margin-bottom: 14px;
  font-weight: 900;
}
.hub-hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 30px;
}
.search-bar-wrap {
  position: relative;
  max-width: 650px;
  margin: 0 auto 30px;
}
.search-input {
  width: 100%;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px 16px 50px;
  color: #FFF;
  font-size: 1.05rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--brand-cyan); }
.search-icon {
  position: absolute;
  left: 18px;
  top: 18px;
  color: var(--text-dim);
  font-size: 1.2rem;
}
.filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}
.tab-filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-filter-btn:hover { border-color: var(--text-muted); color: #FFF; }
.tab-filter-btn.active {
  background: var(--brand-cyan);
  border-color: var(--brand-cyan);
  color: #FFF;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s;
}
.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-cyan);
}
.article-card h3 {
  font-size: 1.15rem;
  color: #FFF;
  margin: 10px 0 12px;
  line-height: 1.4;
}
.article-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  flex-grow: 1;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

@media(max-width: 768px) {
  h1.article-title { font-size: 1.7rem; }
  .hub-hero h1 { font-size: 2.1rem; }
  .article-grid { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; align-items: flex-start; }
}
