/* === Diecast Hub — article.css (blog + guides) === */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Inter:wght@300..700&display=swap");

:root {
  --bg: #131318;
  --surface: #1f1f25;
  --surface2: #2a292f;
  --border: rgba(90, 65, 54, 0.42);
  --orange: #ff6b00;
  --orange-light: #ffb693;
  --text: #e4e1e9;
  --text-muted: #8888a0;
  --radius: 14px;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.8;
}
a {
  color: var(--orange);
  text-decoration: none;
}
a:hover {
  color: var(--orange-light);
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  height: 64px;
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
}
.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nav-logo-text {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(90deg, #ffb693, #ff6b00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lang-menu {
  position: relative;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.lang-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #0e0e13;
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 148px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  z-index: 200;
}
.lang-menu.open .lang-dropdown {
  display: block;
}
.lang-dropdown a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.lang-dropdown a:hover {
  background: rgba(255, 255, 255, 0.07);
}
.lang-dropdown a.active {
  color: #ffb693;
  font-weight: 700;
}
.nav-cta {
  background: linear-gradient(135deg, #ff6b00, #ffb693);
  color: #fff;
  border: none;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  white-space: nowrap;
}
.nav-cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #fff;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--orange);
}
.breadcrumb span {
  margin: 0 6px;
}

/* ── ARTICLE WRAP ── */
.article-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.article-header {
  padding: 32px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.article-label {
  display: inline-block;
  background: rgba(255, 107, 0, 0.12);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 107, 0, 0.25);
  margin-bottom: 16px;
}
.article-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.article-header h1 span {
  color: var(--orange);
}
.article-meta {
  display: flex;
  gap: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  margin-top: 12px;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.85rem;
  margin-top: 20px;
  color: var(--text-muted);
}
.lang-switch a {
  color: var(--orange);
  font-weight: 700;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}
h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text);
  margin: 40px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
}
h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange-light);
  margin: 28px 0 12px;
}
p {
  color: #c8c8e0;
  margin-bottom: 16px;
}
strong {
  color: var(--text);
}

/* ── COMPONENTS ── */
.highlight-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.highlight-box p {
  margin: 0;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.comparison-table th {
  background: rgba(255, 107, 0, 0.15);
  color: var(--orange);
  font-weight: 700;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 13px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(42, 42, 58, 0.6);
  color: #c8c8e0;
}
.comparison-table tr:nth-child(even) td {
  background: rgba(18, 18, 26, 0.5);
}
.comparison-table tr:last-child td {
  border-bottom: none;
}

.tips-list {
  list-style: none;
  margin: 16px 0;
}
.tips-list li {
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid rgba(42, 42, 58, 0.5);
  color: #c8c8e0;
  font-size: 0.95rem;
  position: relative;
}
.tips-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
.tips-list li:last-child {
  border-bottom: none;
}

.cta-box {
  background: linear-gradient(
    135deg,
    rgba(255, 107, 0, 0.12),
    rgba(255, 107, 0, 0.04)
  );
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  margin: 48px 0;
  text-align: center;
}
.cta-box h3 {
  color: var(--text);
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.cta-box p {
  margin-bottom: 20px;
}
.cta-btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  transition:
    background 0.2s,
    transform 0.15s;
}
.cta-btn:hover {
  background: var(--orange-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ── BLOG LISTING ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.blog-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--orange);
}
.blog-card h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  border: none;
  padding: 0;
  margin: 0;
  line-height: 1.35;
}
.blog-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.blog-card-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.blog-card-link {
  margin-top: auto;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer a {
  color: var(--text-muted);
  margin: 0 12px;
}
footer a:hover {
  color: var(--orange);
}

@media (max-width: 1280px) {
  .nav-hide-md {
    display: none !important;
  }
}

@media (max-width: 600px) {
  .nav-links {
    display: none;
  }
  .article-header h1 {
    font-size: 1.6rem;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
