/* Chu de theo mua — Dai Duong (2026-11-08).
   Chi kich hoat khi the html co data-theme. Che do Mac dinh khong co data-theme nen giao dien goc giu nguyen. */
html[data-theme] {
  --theme-1: #114e91;
  --theme-2: #f4a825;
  --theme-wash: rgba(17, 78, 145, .10);
}

html[data-theme="tet-am-lich"] { --blue: #C0392B; --deep: #7B241C; --theme-1: #C0392B; --theme-2: #F1C40F; --theme-wash: rgba(192, 57, 43, .10); }
html[data-theme="noel"] { --blue: #1E7A34; --deep: #145A27; --theme-1: #1E7A34; --theme-2: #C0392B; --theme-wash: rgba(30, 122, 52, .10); }
html[data-theme="tet-duong-lich"] { --blue: #1B2A4A; --deep: #101B30; --theme-1: #1B2A4A; --theme-2: #D4AF37; --theme-wash: rgba(27, 42, 74, .12); }
html[data-theme="trung-thu"] { --blue: #E67E22; --deep: #B95E0E; --theme-1: #E67E22; --theme-2: #F5C542; --theme-wash: rgba(230, 126, 34, .10); }
html[data-theme="ngay-nha-giao"] { --blue: #8E44AD; --deep: #6C3483; --theme-1: #8E44AD; --theme-2: #F5D76E; --theme-wash: rgba(142, 68, 173, .10); }
html[data-theme="quoc-te-phu-nu"] { --blue: #E91E63; --deep: #AD1457; --theme-1: #E91E63; --theme-2: #F8BBD0; --theme-wash: rgba(233, 30, 99, .10); }
html[data-theme="giai-phong"] { --blue: #DA251D; --deep: #A01A15; --theme-1: #DA251D; --theme-2: #FFDE00; --theme-wash: rgba(218, 37, 29, .10); }
html[data-theme="quoc-khanh"] { --blue: #DA251D; --deep: #A01A15; --theme-1: #DA251D; --theme-2: #FFDE00; --theme-wash: rgba(218, 37, 29, .10); }
html[data-theme="phu-nu-viet-nam"] { --blue: #E91E63; --deep: #AD1457; --theme-1: #E91E63; --theme-2: #F39C12; --theme-wash: rgba(233, 30, 99, .10); }

/* Vien mau tren hero + tieu de hero doi theo chu de */
html[data-theme] .hero { box-shadow: inset 0 6px 0 var(--theme-1); }
html[data-theme] .hero h1 { color: var(--theme-1); }
html[data-theme] .hero h2 { color: var(--theme-1); }
html[data-theme] .hero .eyebrow { color: var(--theme-1); }

/* Dai chuc mung mong duoi header */
.dd-theme-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--theme-1);
  border-bottom: 3px solid var(--theme-2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  padding: 9px 46px 9px 16px;
  text-align: center;
  position: relative;
  z-index: 20;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.dd-theme-banner-text { max-width: 1100px; }
.dd-theme-banner-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, .28);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.dd-theme-banner-close:hover { background: rgba(255, 255, 255, .45); }

/* Hoa tiet bay: nhe, khong chan noi dung, khong bat su kien chuot */
.dd-theme-fx {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 15;
}
.dd-theme-fx span {
  position: absolute;
  top: -8vh;
  font-size: 22px;
  line-height: 1;
  opacity: 0;
  animation: dd-theme-fall linear infinite;
  will-change: transform;
}
.dd-theme-fx span:nth-child(1) { left: 3%; animation-duration: 13s; animation-delay: 0s; font-size: 20px; }
.dd-theme-fx span:nth-child(2) { left: 12%; animation-duration: 11s; animation-delay: 2s; font-size: 26px; }
.dd-theme-fx span:nth-child(3) { left: 22%; animation-duration: 15s; animation-delay: 1s; font-size: 18px; }
.dd-theme-fx span:nth-child(4) { left: 33%; animation-duration: 12s; animation-delay: 4s; font-size: 24px; }
.dd-theme-fx span:nth-child(5) { left: 44%; animation-duration: 14s; animation-delay: 0.5s; font-size: 20px; }
.dd-theme-fx span:nth-child(6) { left: 55%; animation-duration: 10s; animation-delay: 3s; font-size: 26px; }
.dd-theme-fx span:nth-child(7) { left: 66%; animation-duration: 16s; animation-delay: 1.5s; font-size: 18px; }
.dd-theme-fx span:nth-child(8) { left: 76%; animation-duration: 12s; animation-delay: 5s; font-size: 24px; }
.dd-theme-fx span:nth-child(9) { left: 86%; animation-duration: 14s; animation-delay: 2.5s; font-size: 20px; }
.dd-theme-fx span:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 6s; font-size: 26px; }
@keyframes dd-theme-fall {
  0% { transform: translate3d(0, -8vh, 0) rotate(0deg); opacity: 0; }
  10% { opacity: .55; }
  88% { opacity: .55; }
  100% { transform: translate3d(0, 112vh, 0) rotate(320deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dd-theme-fx span { animation: none; opacity: .3; top: 12vh; }
}
