/* Theme variants — anti-fingerprint via distinct fonts + header styles per site.
   Served as static asset (Astro copies public/ verbatim, skipping Vite CSS processing).
   Each site's brand.theme picks one variant via body class. */

/* MODERN — Inter/system sans, flat cards, uppercase nav, dark hero */
body.theme-modern { font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
body.theme-modern h1, body.theme-modern h2, body.theme-modern h3 { font-family: inherit; letter-spacing: -.025em; font-weight: 800; }
body.theme-modern .site-header { background: #fff; border-bottom: 2px solid var(--primary); }
body.theme-modern .nav a { text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; font-weight: 700; }
body.theme-modern .hero { background: var(--primary); }
body.theme-modern .hero h1 { color: #fff; font-size: 2.1rem; }
body.theme-modern .hero .lede { color: rgba(255,255,255,.82); }
body.theme-modern .hero-chip { color: #fff; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.28); }
body.theme-modern .card-post { border-radius: 4px; box-shadow: none; border: 1px solid var(--line); }
body.theme-modern .card-post:hover { border-color: var(--primary); transform: none; }

/* CLASSIC — Serif italic headings, spacious */
body.theme-classic { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 18px; }
body.theme-classic h1, body.theme-classic h2, body.theme-classic h3 { font-family: "Didot", Garamond, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }
body.theme-classic h1 { font-size: 2.2rem; font-style: italic; }
body.theme-classic .site-header { background: #faf7f2; border-bottom: 1px solid #d9cfc0; }
body.theme-classic .nav a { font-family: "Iowan Old Style", Georgia, serif; font-style: italic; font-weight: 500; opacity: .95; }
body.theme-classic .card-post { border-radius: 2px; border: 1px solid #d9cfc0; }
body.theme-classic .card-post h3 { font-family: Didot, Garamond, serif; font-weight: 500; }

/* OUTDOOR — Dark header, bold uppercase H2, chunky shadow cards */
body.theme-outdoor { font-family: "Charter", Cambria, Georgia, serif; }
body.theme-outdoor h1, body.theme-outdoor h2, body.theme-outdoor h3 { font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
body.theme-outdoor h2 { border-bottom: 3px solid var(--accent); padding-bottom: .3rem; display: inline-block; }
body.theme-outdoor .site-header { background: var(--primary); }
body.theme-outdoor .site-header a { color: #fff; }
body.theme-outdoor .nav a { color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 800; font-family: "Helvetica Neue", sans-serif; }
body.theme-outdoor .hero { border-bottom: 4px solid var(--accent); }
body.theme-outdoor .card-post { border-radius: 0; border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--accent); }
body.theme-outdoor .card-post:hover { transform: translate(-3px,-3px); box-shadow: 9px 9px 0 var(--accent); }

/* BOLD — Black header, chunky uppercase, monospace nav */
body.theme-bold { font-family: "Helvetica Neue", Arial, sans-serif; }
body.theme-bold h1, body.theme-bold h2, body.theme-bold h3 { font-family: inherit; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: 1.05; }
body.theme-bold h1 { font-size: 2.2rem; }
body.theme-bold h2 { font-size: 1.7rem; }
body.theme-bold .site-header { background: #000; border-bottom: 0; }
body.theme-bold .site-header a { color: #fff; }
body.theme-bold .nav a { color: #fff; font-family: "SF Mono", Menlo, "Courier New", monospace; font-size: .82rem; font-weight: 600; text-transform: none; }
body.theme-bold .hero { background: #000; }
body.theme-bold .hero h1, body.theme-bold .hero .lede { color: #fff; }
body.theme-bold .hero .lede { opacity: .75; }
body.theme-bold .hero-chip { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); border-radius: 0; }
body.theme-bold .card-post { border-radius: 0; border: 1px solid var(--ink); box-shadow: none; }

/* TECH — Compact sans, subtle nav pills, tighter type */
body.theme-tech { font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 16px; }
body.theme-tech h1, body.theme-tech h2, body.theme-tech h3 { font-family: inherit; font-weight: 700; letter-spacing: -.02em; }
body.theme-tech h1 { font-size: 2rem; }
body.theme-tech .site-header { background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
body.theme-tech .nav a { font-size: .84rem; font-weight: 500; padding: .3rem .7rem; border-radius: 6px; opacity: 1; }
body.theme-tech .nav a:hover { background: #e2e8f0; }
body.theme-tech .card-post { border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06); }

/* ESPRESSO — Warm cream background, double-line header, italic nav */
body.theme-espresso { font-family: "Iowan Old Style", Georgia, serif; background: #fdfaf3; }
body.theme-espresso h1, body.theme-espresso h2, body.theme-espresso h3 { font-family: "Baskerville", "Book Antiqua", Georgia, serif; font-weight: 600; }
body.theme-espresso h1 { font-size: 2.2rem; letter-spacing: -.015em; }
body.theme-espresso h2 { font-style: italic; }
body.theme-espresso .site-header { background: #f5efe1; border-bottom: 3px double #c8a878; }
body.theme-espresso .nav a { font-family: "Baskerville", Georgia, serif; font-style: italic; text-transform: lowercase; font-size: 1rem; }
body.theme-espresso .card-post { border-radius: 3px; background: #fefcf7; border-color: #e7dcc4; }

/* GARDEN — Natural greens, rounded cards */
body.theme-garden { font-family: "Charter", Cambria, Georgia, serif; }
body.theme-garden h1, body.theme-garden h2, body.theme-garden h3 { font-family: inherit; font-weight: 700; letter-spacing: -.01em; }
body.theme-garden .nav a { font-weight: 600; }
body.theme-garden .card-post { border-radius: 18px; background: #fff; }
body.theme-garden .card-post:hover { border-color: var(--primary); }

/* EDC — Modern Editorial Horology (Wirecutter / Hodinkee standard) */
body.theme-edc {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background: #ffffff;
}
body.theme-edc h1, body.theme-edc h2, body.theme-edc h3, body.theme-edc h4 {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* HEADER TRẮNG SẠCH SẼ, ĐẲNG CẤP TẠP CHÍ */
body.theme-edc .site-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
body.theme-edc .site-header .wrap {
  height: 68px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
body.theme-edc .site-header a {
  color: #0f172a;
}
body.theme-edc .site-header .logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.65rem !important;
}
body.theme-edc .site-header .logo__name,
body.theme-edc .site-header .logo__word {
  color: #0f172a !important;
  font-family: 'Newsreader', Georgia, serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  font-size: 1.25rem !important;
}

/* MENU DESKTOP: CÂN ĐỐI, TƯƠNG PHẢN RÕ, HOVER SANG TRỌNG */
body.theme-edc .nav {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
}
body.theme-edc .nav a {
  color: #334155 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.01em !important;
  padding: 0.35rem 0 !important;
  margin-left: 0 !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  transition: all 0.15s ease !important;
  opacity: 1 !important;
  text-decoration: none !important;
}
body.theme-edc .nav a:hover {
  color: #0f172a !important;
  border-bottom-color: #0f172a !important;
  background: transparent !important;
}

/* NÚT CALCULATOR: CTA CHUYÊN DỤNG BO GÓC NHẸ SANG TRỌNG */
body.theme-edc .nav .nav-calc-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 0.45rem 1rem !important;
  border-radius: 7px !important;
  border-bottom: none !important;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.12) !important;
  transition: all 0.15s ease !important;
  margin-left: 0.5rem !important;
}
body.theme-edc .nav .nav-calc-btn:hover {
  background: #d4af37 !important;
  color: #0f172a !important;
  border-bottom: none !important;
  box-shadow: 0 4px 10px rgba(212, 175, 55, 0.35) !important;
}

/* HERO & POST CARDS */
body.theme-edc .hero {
  border-top: none;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-bottom: 1px solid #e2e8f0;
}
body.theme-edc .card-post {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(15,23,42,0.04), 0 10px 24px rgba(15,23,42,0.05);
  transition: all 0.2s ease;
}
body.theme-edc .card-post:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 8px 24px rgba(15,23,42,0.1);
}

/* MOBILE RESPONSIVE POLISH: GỌN GÀNG, KHÔNG CẮT CHỮ */
@media (max-width: 680px) {
  body.theme-edc .site-header {
    background: #ffffff !important;
  }
  body.theme-edc .site-header .wrap {
    height: auto !important;
    min-height: 52px !important;
    padding: 0.4rem 0.75rem !important;
  }
  body.theme-edc .site-header .logo svg {
    width: 24px !important;
    height: 24px !important;
  }
  body.theme-edc .site-header .logo__name {
    font-size: 0.82rem !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  /* Mobile: chỉ hiện Guides và Calc để cực kỳ thoáng */
  body.theme-edc .nav {
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
  }
  body.theme-edc .nav a[href*="about"],
  body.theme-edc .nav a[href*="contact"] {
    display: none !important;
  }
  body.theme-edc .nav a[href*="best"] {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.65rem !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
  }
  body.theme-edc .nav .nav-calc-btn {
    background: #0f172a !important;
    color: #ffffff !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 6px !important;
    margin-left: 0 !important;
  }
}
@media (max-width: 380px) {
  /* Màn hình siêu hẹp: rút gọn logo text thành EDC Watch */
  body.theme-edc .site-header .logo__name {
    display: none !important;
  }
  body.theme-edc .site-header .logo::after {
    content: "EDC Watch";
    font-family: 'Newsreader', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
  }
}
