/* Vườn Cưới An Nhiên - dải ưu đãi và lớp trang trí mùa.
   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;
  overflow: hidden;
  background: var(--olive);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: .005em;
  border-bottom: 1px solid rgba(194, 161, 92, .34);
}
.season-ribbon > * { position: relative; z-index: 1; }

.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: #e3c98f;
}

.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(227, 201, 143, .45);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #e3c98f;
  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: #e3c98f;
  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); }

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

/* Noel: dây đèn ấm trên đầu trang */
.season-fx .fx-lights {
  position: absolute;
  inset: 0 0 auto;
  height: 46px;
}
.season-fx .fx-lights::before {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  top: 6px;
  height: 16px;
  border-bottom: 1px solid rgba(63, 74, 55, .28);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}
.season-fx .fx-lights span {
  position: absolute;
  top: 14px;
  left: var(--x, 50%);
  width: 7px;
  height: 9px;
  margin-left: -3.5px;
  border-radius: 50% 50% 46% 46%;
  background: #f2d79a;
  box-shadow: 0 0 10px 2px rgba(242, 215, 154, .55), 0 14px 22px -6px rgba(242, 215, 154, .35);
  opacity: .55;
  animation: season-glow 3.8s ease-in-out var(--dl, 0s) infinite;
}

/* Noel: tuyết mỏng, không bão tuyết */
.season-fx .fx-snow { position: absolute; inset: 0; }
.season-fx .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, 253, 248, .95);
  box-shadow: 0 0 0 1px rgba(63, 74, 55, .16);
  opacity: 0;
  animation: season-fall var(--dur, 10s) linear var(--dl, 0s) infinite;
}

/* Tết: đèn lồng phát sáng, hạt mai bay nhẹ */
.season-fx .fx-lanterns {
  position: absolute;
  inset: 0 0 auto;
  height: 120px;
}
.season-fx .fx-lanterns span {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: 18px;
  height: 24px;
  margin-left: -9px;
  border-radius: 46% 46% 50% 50% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 40% 34%, #f7d69a, #cf8a4a 70%);
  box-shadow: 0 0 26px 6px rgba(232, 160, 91, .34);
  animation: season-sway 7s ease-in-out var(--dl, 0s) infinite;
}
.season-fx .fx-lanterns span::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 1px;
  height: 46px;
  background: rgba(63, 74, 55, .3);
}

.season-fx .fx-petals { position: absolute; inset: 0; }
.season-fx .fx-petals span {
  position: absolute;
  top: 0;
  left: var(--x, 50%);
  width: var(--sz, 6px);
  height: calc(var(--sz, 6px) * .7);
  border-radius: 60% 40% 55% 45%;
  background: #e8a05b;
  opacity: 0;
  animation: season-petal var(--dur, 12s) linear var(--dl, 0s) infinite;
}

@keyframes season-fall {
  0%   { transform: translate3d(0, -6vh, 0); opacity: 0; }
  12%  { opacity: .8; }
  86%  { opacity: .6; }
  100% { transform: translate3d(18px, 104vh, 0); opacity: 0; }
}
@keyframes season-petal {
  0%   { transform: translate3d(0, -5vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .85; }
  85%  { opacity: .55; }
  100% { transform: translate3d(34px, 104vh, 0) rotate(220deg); opacity: 0; }
}
@keyframes season-glow {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}
@keyframes season-sway {
  0%, 100% { transform: rotate(-1.2deg); }
  50%      { transform: rotate(1.2deg); }
}

/* Màn hình hẹp: chỉ giữ dải ưu đãi */
@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 .fx-lights,
  .season-fx .fx-snow,
  .season-fx .fx-lanterns,
  .season-fx .fx-petals { display: none; }
}

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