/* ========================================
   SEO shell pages (tin-tuc, gioi-thieu, legal…)
   Palette LOCKED: gold on dark burgundy
   ======================================== */

:root {
  --gold: #ffdf79;
  --gold-soft: #ffe5b7;
  --bg: #150100;
  --panel: rgba(32, 4, 3, 0.88);
  --border: rgba(255, 218, 112, 0.28);
  --max: 1080px;
}

* {
  box-sizing: border-box;
}

.seo-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--gold);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
}

.seo-skip-link:focus {
  left: 12px;
  top: 12px;
  width: auto;
  height: auto;
  overflow: visible;
}

  margin: 0;
  font-family: "SF Pro Display", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(ellipse 100% 50% at 50% -5%, rgba(255, 213, 111, 0.1), transparent 50%),
    var(--bg);
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.75;
  min-height: 100vh;
}

.seo-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(18, 3, 3, 0.97), rgba(12, 2, 2, 0.94));
  border-bottom: 1px solid rgba(255, 218, 112, 0.22);
}

.seo-topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.seo-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--gold);
  font-weight: 700;
}

.seo-topbar-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.seo-topbar-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.seo-topbar-links a {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
}

.seo-topbar-links a:hover {
  border-color: var(--border);
  background: rgba(255, 213, 111, 0.08);
}

.seo-topbar-links a.is-cta {
  border-color: rgba(255, 218, 112, 0.45);
  background: rgba(255, 213, 111, 0.14);
  color: var(--gold);
}

.seo-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.seo-panel {
  padding: clamp(22px, 3vw, 40px);
  background: var(--panel);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.seo-shell h1 {
  color: var(--gold);
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.25;
}

.seo-shell h2 {
  color: var(--gold);
  font-size: 21px;
  margin: 28px 0 12px;
  border-bottom: 1px solid rgba(255, 218, 112, 0.2);
  padding-bottom: 8px;
}

.seo-shell p,
.seo-shell li {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.92);
}

.seo-shell a {
  color: var(--gold);
}

.seo-shell .meta {
  text-align: center;
  color: rgba(255, 241, 204, 0.72);
  font-style: italic;
  margin-bottom: 20px;
}

.seo-breadcrumb {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(255, 241, 204, 0.8);
}

.seo-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}

.seo-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

/* Article card grid for tin-tuc hub */
.seo-articles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 8px;
}

.seo-article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(36, 9, 8, 0.95), rgba(20, 5, 4, 0.96));
  transition: transform 0.2s ease, border-color 0.2s ease;
  min-height: 100%;
}

.seo-article-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 218, 112, 0.55);
}

.seo-article-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 213, 111, 0.18), rgba(80, 10, 10, 0.4)),
    #2a0a0a;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-article-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.seo-article-card:hover .seo-article-card-media img {
  transform: scale(1.05);
}

.seo-article-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(10, 2, 2, 0.7));
  pointer-events: none;
}

.seo-article-card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 5, 4, 0.85);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.seo-article-card-body {
  padding: 14px;
  display: grid;
  gap: 6px;
  flex: 1;
}

.seo-article-card-body h3 {
  margin: 0;
  color: var(--gold);
  font-size: 16px;
  line-height: 1.35;
  border: 0;
  padding: 0;
}

.seo-article-card-body p {
  margin: 0;
  color: rgba(255, 229, 183, 0.9);
  font-size: 13.5px;
  line-height: 1.5;
}

.seo-article-card-more {
  margin-top: auto;
  padding-top: 8px;
  color: #fff2cb;
  font-size: 13px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}

.nav-links a {
  padding: 8px 14px;
  border: 1px solid rgba(255, 218, 112, 0.3);
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  color: var(--gold);
}

.seo-related-links {
  margin: 28px 0 0;
  padding: 18px;
  border: 1px solid rgba(255, 218, 112, 0.25);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
}

.seo-related-links h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.seo-related-links ul {
  columns: 2;
  gap: 24px;
  list-style: disc inside;
  margin: 0;
  padding: 0;
}

.seo-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 16px 32px;
  text-align: center;
  color: rgba(255, 229, 183, 0.7);
  font-size: 13px;
}

.seo-footer a {
  color: var(--gold);
  margin: 0 8px;
  text-decoration: none;
}

@media (max-width: 900px) {
  .seo-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .seo-articles-grid {
    grid-template-columns: 1fr;
  }
  .seo-related-links ul {
    columns: 1;
  }
  .seo-topbar-brand span {
    display: none;
  }
}

/* ============================================================
   PREMIUM POLISH v3 — match the home page's luxury framing
   ============================================================ */

.seo-panel {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(38, 10, 8, 0.97) 0%, rgba(19, 5, 4, 0.98) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 213, 111, 0.5) 0%, rgba(255, 213, 111, 0.12) 55%, rgba(255, 213, 111, 0.10) 100%) border-box;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 236, 190, 0.10);
}

.seo-shell h1 {
  background: linear-gradient(180deg, #fff3cf 0%, #ffd56f 55%, #e8a93f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.seo-topbar {
  border-bottom: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(18, 3, 3, 0.97), rgba(12, 2, 2, 0.94)) padding-box,
    linear-gradient(90deg, rgba(255, 213, 111, 0.05), rgba(255, 213, 111, 0.45), rgba(255, 213, 111, 0.05)) border-box;
}

.seo-article-card:hover,
.nav-links a:hover {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 213, 111, 0.35),
    0 6px 22px rgba(255, 190, 80, 0.10);
}

.nav-links a {
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links a:hover {
  background: rgba(255, 213, 111, 0.1);
}

/* Final refinement: micro-UX details */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.seo-shell ::selection {
  background: rgba(255, 213, 111, 0.85);
  color: #1c0402;
}

body.seo-shell [id] {
  scroll-margin-top: 70px;
}

body.seo-shell a:focus-visible {
  outline: 2px solid rgba(255, 213, 111, 0.75);
  outline-offset: 2px;
}

body.seo-shell::-webkit-scrollbar {
  width: 10px;
}

body.seo-shell::-webkit-scrollbar-thumb {
  background: rgba(255, 213, 111, 0.28);
  border-radius: 8px;
}

body.seo-shell::-webkit-scrollbar-track {
  background: #120202;
}

/* SEO Ultra: TOC + hub cluster */
.seo-toc a:hover,
.seo-hub-cluster a:hover {
  color: #fff3cf !important;
  text-decoration: underline !important;
}

.seo-toc ol li {
  margin: 4px 0;
}

.seo-hub-cluster {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
