/* Nha Khoa An Nhiên - trang trí theo mùa (Noel / Tết)
   Chỉ dùng transform + opacity cho chuyển động. Không ảnh, không JS. */

/* ---------- dải ưu đãi ---------- */
.season-ribbon {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .005em;
  border-bottom: 1px solid rgba(195, 160, 92, .34);
}

.season-ribbon-in {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding-block: 7px;
}

.season-ribbon-icon {
  display: inline-flex;
  flex: none;
  color: var(--gold);
}

.season-ribbon-text {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(250, 246, 238, .92);
}

.season-ribbon-days {
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(195, 160, 92, .45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.season-ribbon-link {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.season-ribbon-link:hover { color: var(--cream); }
.season-ribbon-link svg { transition: transform .2s var(--ease); }
.season-ribbon-link:hover svg { transform: translateX(2px); }

.season-ribbon--tet .season-ribbon-icon { color: #e6b23c; }

/* ---------- lớp trang trí ---------- */
.season-fx {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.season-fx .fx-svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* tuyết */
.season-fx .snow { position: absolute; inset: 0; }

.season-fx .snow span {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: var(--sz, 4px);
  height: var(--sz, 4px);
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 0 0 1px rgba(28, 79, 67, .3), 0 0 5px rgba(28, 79, 67, .1);
  opacity: 0;
  animation: season-fall var(--dur, 10s) linear var(--dl, 0s) infinite;
}

@keyframes season-fall {
  0%   { transform: translate3d(0, -6vh, 0); opacity: 0; }
  12%  { opacity: .85; }
  86%  { opacity: .7; }
  100% { transform: translate3d(22px, 104vh, 0); opacity: 0; }
}

/* cành góc */
.season-fx .fx-branch {
  position: absolute;
  opacity: .9;
}

.season-fx .fx-branch--tr {
  top: 122px;
  right: 0;
  width: 165px;
  height: 165px;
}

.season-fx .fx-branch--bl {
  bottom: 0;
  left: 0;
  width: 160px;
  height: 136px;
  opacity: .95;
}


/* đồ trang trí Tết */
.season-fx .fx-orn { position: absolute; }
.season-fx .fx-orn--lantern-a { top: 196px; left: 16px; width: 52px; height: 78px; opacity: .92; }

/* chuyển động rất nhẹ, chỉ transform */
@keyframes season-sway {
  0%, 100% { transform: rotate(-.4deg); }
  50%      { transform: rotate(.55deg); }
}
.season-fx .fx-branch--tr { transform-origin: 100% 0; animation: season-sway 11s ease-in-out infinite; }
.season-fx .fx-orn--lantern-a { transform-origin: 50% 0; animation: season-sway 7.5s ease-in-out infinite; }
.season-fx .fx-branch--bl { transform-origin: 0 100%; animation: season-sway 13s ease-in-out infinite reverse; }

/* Hẹp hơn thì bỏ hết đồ trang trí để không đè nội dung */
@media (max-width: 1379px) {
  .season-fx .fx-branch,
  .season-fx .fx-orn { display: none; }
}

/* ---------- gọn lại trên mobile: chỉ giữ ribbon ---------- */
@media (max-width: 720px) {
  .season-ribbon { font-size: 12px; }
  .season-ribbon-in { gap: 8px; min-height: 38px; padding-block: 6px; align-items: center; }
  .season-ribbon-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
  }
  .season-ribbon-days { display: none; }
  .season-ribbon-link { font-size: 12px; padding-left: 8px; }

  .season-fx .snow,
  .season-fx .fx-branch,
  .season-fx .fx-orn { display: none; }
}

/* ---------- tôn trọng giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  .season-fx .snow { display: none; }
  .season-fx *,
  .season-ribbon,
  .season-ribbon * { animation: none !important; transition: none !important; }
}

/* ---------- An Nhiên: Noel sage + kem + vàng nhạt ----------
   Màu hình vẽ nằm trong SVG của seasonal.php (không sửa file đó),
   nên đổi tông bằng CSS: thuộc tính fill/stroke khai báo trong SVG
   luôn thấp hơn khai báo CSS cùng thuộc tính. */
.season-ribbon--noel {
  background: linear-gradient(100deg, #2c3a31 0%, #3f5848 60%, #4e6b57 100%);
  border-bottom-color: rgba(227, 201, 143, .4);
}
.season-ribbon--noel .season-ribbon-icon { color: var(--sand, #e3c98f); }
.season-ribbon--noel .season-ribbon-days { border-color: rgba(227, 201, 143, .5); color: var(--sand, #e3c98f); }
.season-ribbon--noel .season-ribbon-link { color: var(--sand, #e3c98f); }
.season-ribbon--noel .season-ribbon-link:hover { color: #fffdf8; }

.season-fx--noel [fill="#b23a2f"] { fill: #c9744f; }
.season-fx--noel [fill="#e08b80"] { fill: #e3c98f; }
.season-fx--noel [fill="#c3a05c"] { fill: #e3c98f; }
.season-fx--noel .snow span {
  background: rgba(255, 253, 248, .95);
  box-shadow: 0 0 0 1px rgba(78, 107, 87, .22), 0 0 6px rgba(78, 107, 87, .12);
}

/* ---------- An Nhiên: Tết dịu hơn, mai vàng nhạt ---------- */
.season-ribbon--tet {
  background: linear-gradient(100deg, #2c3a31 0%, #34463a 66%, #3f5848 100%);
  border-bottom-color: rgba(227, 201, 143, .34);
}
.season-ribbon--tet .season-ribbon-icon { color: var(--sand, #e3c98f); }
.season-ribbon--tet .season-ribbon-days { border-color: rgba(227, 201, 143, .42); color: var(--sand, #e3c98f); }
.season-ribbon--tet .season-ribbon-link { color: var(--sand, #e3c98f); }

.season-fx--tet [fill="#e6b23c"] { fill: #e3c98f; }
.season-fx--tet [stroke="#e6b23c"] { stroke: #d9be86; }
.season-fx--tet [fill="#b23a2f"] { fill: #b9744f; }
.season-fx--tet [stroke="#b23a2f"] { stroke: #b9744f; }
.season-fx--tet [fill="#3f6b4a"] { fill: #5c7a63; }
.season-fx--tet [stroke="#0a2a2b"] { stroke: #33443a; }
