/* ============================================================
   HUKEI MEDIA — STYLESHEET (Dark brand theme)
   Bảng màu lấy từ logo: nền tối + gradient mint → xanh dương → tím.
   Đổi màu thương hiệu ở phần :root.
   ============================================================ */

:root {
  /* Nền tối */
  --bg: #070b12;
  --bg-soft: #0d131d;
  --bg-card: #121a26;
  --bg-card-2: #161f2e;

  /* Chữ */
  --text: #eaf0f8;
  --text-soft: #9fb0c7;
  --text-mute: #6c7d93;

  /* Màu thương hiệu (logo) */
  --mint: #5eead4;
  --teal: #2dd4bf;
  --blue: #38bdf8;
  --purple: #a78bfa;
  --grad: linear-gradient(120deg, #5eead4 0%, #38bdf8 50%, #a78bfa 100%);
  --grad-soft: linear-gradient(120deg, rgba(94,234,212,.18), rgba(56,189,248,.16), rgba(167,139,250,.18));

  --border: rgba(94, 234, 212, 0.16);
  --border-strong: rgba(94, 234, 212, 0.4);

  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 0 1px rgba(94,234,212,.25), 0 18px 50px rgba(45, 212, 191, 0.18);
  --container: 1240px;
  --header-h: 76px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 600px at 12% -5%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(900px 600px at 92% 4%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(56, 189, 248, 0.10), transparent 60%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-title {
  font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--grad); color: #06121a;
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(56, 189, 248, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(94, 234, 212, 0.12); border-color: var(--mint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 14px; z-index: 100;
  padding: 0 16px; margin-bottom: -90px;
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 18px;
  padding: 0 18px 0 14px;
  background: rgba(13, 19, 29, 0.72);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; flex-shrink: 0; }
.logo-img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px var(--border-strong); }
.logo-mark {
  width: 42px; height: 42px; display: none; place-items: center;
  background: var(--grad); color: #06121a; border-radius: 12px;
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
}
.logo-mark.show { display: grid; }
.logo-text { font-size: 1.2rem; letter-spacing: 0.02em; }
.logo-accent { color: var(--mint); font-weight: 500; }

/* Marquee tính năng (như thanh chạy chữ ở mẫu) */
.marquee {
  flex: 1; min-width: 0; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: inline-flex; white-space: nowrap; gap: 40px;
  animation: marquee 22s linear infinite;
  color: var(--text-soft); font-size: 0.92rem; font-weight: 500;
}
.marquee-track span { color: var(--text-soft); }
.marquee-track b { color: var(--mint); font-weight: 700; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.lang-toggle {
  border: 1px solid var(--border-strong); background: rgba(255,255,255,.04);
  border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 0.8rem;
  cursor: pointer; color: var(--text-soft); transition: border-color .2s ease;
}
.lang-toggle:hover { border-color: var(--mint); }
.lang-toggle .active { color: var(--mint); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero promo banner (combo) ---------- */
.promo { padding-top: 118px; }
.promo-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center;
  padding: 30px 36px;
  background:
    linear-gradient(120deg, rgba(94,234,212,.10), rgba(167,139,250,.10)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-glow);
}
.promo-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promo-icons .ic {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 800; color: #06121a; font-size: 1.4rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.promo-icons .ic:nth-child(1) { background: linear-gradient(135deg, #5eead4, #2dd4bf); }
.promo-icons .ic:nth-child(2) { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.promo-icons .ic:nth-child(3) { background: linear-gradient(135deg, #a78bfa, #ec4899); }
.promo-icons .ic:nth-child(4) { background: linear-gradient(135deg, #f59e0b, #ef4444); }

.promo-body h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.promo-body ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.promo-body li { color: var(--text-soft); font-size: 0.96rem; padding-left: 4px; }
.promo-body li b { color: var(--text); }
.promo-body .hl { color: var(--mint); }
.promo-body a { color: var(--blue); font-weight: 700; }
.promo-art {
  width: 150px; height: 130px; border-radius: 18px;
  background: radial-gradient(circle at 50% 30%, rgba(94,234,212,.5), transparent 60%), var(--grad);
  display: grid; place-items: center; font-size: 3.4rem;
  box-shadow: 0 12px 30px rgba(45,212,191,.35);
}

/* ---------- Showcase (3 thẻ) ---------- */
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.show-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s;
}
.show-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.show-thumb {
  position: relative; aspect-ratio: 16/10; display: grid; place-items: center;
  color: #fff; font-size: 2.4rem;
}
.show-thumb .play {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35);
}
.show-thumb .tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(7,11,18,.7); color: var(--mint);
  font-size: .72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.show-card h3 { padding: 18px 20px 6px; font-size: 1.05rem; font-weight: 700; }
.show-card p { padding: 0 20px 22px; color: var(--text-soft); font-size: 0.92rem; }

/* ---------- FAQ ---------- */
.faq { background: rgba(13,19,29,.5); }
.faq-title { text-align: center; margin-bottom: 36px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px; color: var(--text); font-size: 1rem; font-weight: 700;
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  font-family: inherit;
}
.faq-q .chevron { color: var(--mint); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q .chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-soft); font-size: 0.94rem; }
.faq-item.open .faq-a { max-height: 320px; }

/* ---------- Section head + filters (blog) ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn {
  border: 1px solid var(--border); background: rgba(255,255,255,.03);
  border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 600;
  color: var(--text-soft); cursor: pointer; transition: all .18s;
}
.filter-btn:hover { border-color: var(--mint); color: var(--mint); }
.filter-btn.active { background: var(--grad); border-color: transparent; color: #06121a; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-glow); border-color: var(--border-strong); }
.card-cover { position: relative; aspect-ratio: 16/10; display: block; }
.card-cat {
  position: absolute; top: 14px; left: 14px;
  background: rgba(7,11,18,.75); color: var(--mint);
  font-size: 0.74rem; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--border-strong);
}
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 0.8rem; color: var(--text-mute); margin-bottom: 10px; }
.card-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 10px; }
.card-title a:hover { color: var(--mint); }
.card-excerpt { color: var(--text-soft); font-size: 0.92rem; margin-bottom: 16px; flex: 1; }
.card-link { color: var(--mint); font-weight: 700; font-size: 0.9rem; }
.card-link:hover { color: var(--blue); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; }
.newsletter-inner {
  max-width: 720px; margin: 0 auto; padding: 48px 32px;
  background: linear-gradient(120deg, rgba(94,234,212,.08), rgba(167,139,250,.08)), var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
.newsletter h2 { font-size: 1.8rem; margin-bottom: 10px; }
.newsletter p { color: var(--text-soft); margin-bottom: 26px; }
.newsletter-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 18px; border-radius: 999px; font-size: 0.95rem; font-family: inherit;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-strong); color: var(--text);
}
.newsletter-form input::placeholder { color: var(--text-mute); }
.newsletter-form input:focus { outline: none; border-color: var(--mint); }
.newsletter-msg { margin-top: 16px; color: var(--mint); font-weight: 600; min-height: 1.2em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 44px 0 30px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer-brand p { font-size: 0.85rem; color: var(--text-mute); margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-soft); font-size: 0.92rem; transition: color .2s; }
.footer-links a:hover { color: var(--mint); }
.footer-copy { width: 100%; text-align: center; font-size: 0.82rem; color: var(--text-mute); border-top: 1px solid var(--border); padding-top: 22px; }

/* ---------- Page hero (about) ---------- */
.page-hero { padding: 130px 0 50px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 14px; letter-spacing: -.02em; }
.page-hero p { color: var(--text-soft); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.about-text h2 { font-size: 1.5rem; margin: 28px 0 12px; }
.about-text h2:first-child { margin-top: 0; }
.about-text p { color: var(--text-soft); margin-bottom: 14px; }
.about-list { list-style: none; }
.about-list li { padding: 12px 0 12px 28px; position: relative; border-bottom: 1px solid var(--border); color: var(--text-soft); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.about-stats { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 2.4rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { color: var(--text-soft); font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; margin-top: 24px; }
.contact-info p { margin-bottom: 18px; color: var(--text-soft); }
.contact-info strong { color: var(--text); }
.contact-info a { color: var(--mint); }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 13px 16px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; background: rgba(255,255,255,.05); color: var(--text); resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-mute); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--mint); }

/* ---------- Article ---------- */
.article-hero { height: 340px; width: 100%; margin-top: 90px; }
.article-body { max-width: 760px; padding-top: 36px; padding-bottom: 40px; }
.article-back { color: var(--text-soft); font-size: 0.9rem; display: inline-block; margin-bottom: 20px; }
.article-back:hover { color: var(--mint); }
.article-cat { display: inline-block; color: var(--mint); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; margin-bottom: 12px; }
.article-title { font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 14px; }
.article-meta { color: var(--text-mute); font-size: 0.9rem; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.article-content p { margin-bottom: 22px; font-size: 1.08rem; color: #c9d6e8; }
.article-content h2 { font-size: 1.6rem; margin: 36px 0 16px; }
.article-content blockquote {
  margin: 32px 0; padding: 20px 28px; border-left: 4px solid var(--mint);
  background: var(--bg-card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--text);
}
.notfound { font-size: 1.2rem; color: var(--text-soft); margin: 120px 0 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .showcase-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: auto 1fr; }
  .promo-art { display: none; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .marquee { display: none; }
}
@media (max-width: 680px) {
  .showcase-grid, .post-grid { grid-template-columns: 1fr; }
  .promo-card { grid-template-columns: 1fr; text-align: left; }
  .promo-icons { grid-template-columns: repeat(4, 1fr); max-width: 280px; }
  .header-actions .label-full { display: none; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-radius: var(--radius-sm); }
  .footer-inner { flex-direction: column; text-align: center; }
  .nav-toggle { display: flex; }
}
