/* =========================================================
   customCelebration.css — Banner + modal cho "Sự kiện chúc mừng" do
   admin tự cấu hình (Cài đặt > Sự kiện chúc mừng) — ngày lễ toàn công
   ty hoặc chúc mừng riêng. Khác birthday.css/anniversary.css (2 file
   đó ứng với đúng 1 màu cố định): số lượng sự kiện và màu sắc đều động
   theo cấu hình admin, nên dùng CSS custom properties để 1 bộ khung
   dùng chung cho cả 4 tông màu (đổi màu bằng cách thêm class
   `cc-theme-*`), thay vì viết lặp lại như 2 file kia.
   ========================================================= */

.cc-banner {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  --cc-bg1: #ffe9f1; --cc-bg2: #ffd6e6; --cc-border: #ffb6c1;
  --cc-blob1: #ffc1da; --cc-blob2: #ffd8e6;
  --cc-title: #c2185b; --cc-text: #7a3b52; --cc-from: #a64d79;
  --cc-btn: #e91e63; --cc-btn-shadow: rgba(233, 30, 99, 0.35);

  background: linear-gradient(135deg, var(--cc-bg1), var(--cc-bg2));
  border: 1px solid var(--cc-border);
  border-radius: 18px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  animation: ccPopIn 0.5s ease-out;
  margin-bottom: 12px;
}
.cc-banner:last-child { margin-bottom: 0; }

.cc-banner::before,
.cc-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  opacity: 0.35;
}
.cc-banner::before { width: 90px; height: 90px; background: var(--cc-blob1); top: -30px; left: -30px; }
.cc-banner::after { width: 120px; height: 120px; background: var(--cc-blob2); bottom: -50px; right: -40px; }

.cc-banner .cc-emoji {
  font-size: 32px;
  position: relative;
  z-index: 1;
  animation: ccBounce 1.8s infinite;
  display: inline-block;
}

.cc-banner h2 {
  font-size: 18px;
  color: var(--cc-title);
  margin: 8px 0 4px;
  position: relative;
  z-index: 1;
}

.cc-banner p {
  font-size: 14px;
  color: var(--cc-text);
  margin: 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.cc-banner .cc-btn-view {
  margin-top: 12px;
  background: var(--cc-btn);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  cursor: pointer;
  box-shadow: 0 4px 10px var(--cc-btn-shadow);
  font-family: inherit;
}
.cc-banner .cc-btn-view:active { transform: scale(0.97); }

@keyframes ccPopIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes ccBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ---- 4 tông màu (mặc định = hồng, không cần class riêng) ---- */
.cc-theme-vang {
  --cc-bg1: #fff6e0; --cc-bg2: #ffe9b8; --cc-border: #f0c96a;
  --cc-blob1: #ffdb8a; --cc-blob2: #ffe6ab;
  --cc-title: #9a6a00; --cc-text: #7a5a1e; --cc-from: #a3781f;
  --cc-btn: #d99a00; --cc-btn-shadow: rgba(217, 154, 0, 0.35);
}
.cc-theme-xanh {
  --cc-bg1: #e6f4ff; --cc-bg2: #cdeaff; --cc-border: #8fc9f2;
  --cc-blob1: #b8e0ff; --cc-blob2: #d3edff;
  --cc-title: #0d5c8a; --cc-text: #2c5b73; --cc-from: #2e7ea6;
  --cc-btn: #2196c9; --cc-btn-shadow: rgba(33, 150, 201, 0.35);
}
.cc-theme-tim {
  --cc-bg1: #f3e8ff; --cc-bg2: #e6d0ff; --cc-border: #c9a3ec;
  --cc-blob1: #ddb8f7; --cc-blob2: #ecd6ff;
  --cc-title: #6a1b9a; --cc-text: #5a3b73; --cc-from: #7e3fa6;
  --cc-btn: #9c4bd6; --cc-btn-shadow: rgba(156, 75, 214, 0.35);
}

/* ---- Modal (dùng CHUNG 1 khối, JS đổi nội dung + class theme mỗi khi mở) ---- */
.cc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  padding: 20px;
  animation: ccFadeIn 0.25s ease;
}
.cc-modal-backdrop.show { display: flex; }

.cc-modal-box {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
  --cc-title: #c2185b; --cc-btn: #e91e63; --cc-btn2: #ff6090; --cc-btn-shadow: rgba(233, 30, 99, 0.4);
  background: #fff;
  border-radius: 22px;
  padding: 26px 22px;
  width: 100%;
  max-width: 360px;
  text-align: center;
  position: relative;
  animation: ccPopIn 0.35s ease-out;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
.cc-modal-box.cc-theme-vang { --cc-title: #9a6a00; --cc-btn: #d99a00; --cc-btn2: #ffc94d; --cc-btn-shadow: rgba(217, 154, 0, 0.4); }
.cc-modal-box.cc-theme-xanh { --cc-title: #0d5c8a; --cc-btn: #2196c9; --cc-btn2: #6ec9ef; --cc-btn-shadow: rgba(33, 150, 201, 0.4); }
.cc-modal-box.cc-theme-tim { --cc-title: #6a1b9a; --cc-btn: #9c4bd6; --cc-btn2: #cd93f2; --cc-btn-shadow: rgba(156, 75, 214, 0.4); }

.cc-modal-box .cc-big-emoji {
  font-size: 62px;
  display: block;
  animation: ccBounce 1.6s infinite;
}

.cc-modal-box h2 {
  font-size: 22px;
  color: var(--cc-title);
  margin: 10px 0 12px;
}

.cc-modal-box .cc-modal-msg {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cc-modal-box .cc-btn-close {
  background: linear-gradient(135deg, var(--cc-btn), var(--cc-btn2));
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px var(--cc-btn-shadow);
  width: 100%;
  font-family: inherit;
}
.cc-modal-box .cc-btn-close:active { transform: scale(0.97); }

@keyframes ccFadeIn { from { opacity: 0; } to { opacity: 1; } }
