/**
 * daily-popup.css — Phase 2 個人化 popup UI（麥迪頭像 + 暱稱 + 雙按鈕）
 * 載入後給 daily-popups-personalized.js 用
 */

.dpo-popup-overlay {
  position: fixed; inset: 0; z-index: 10600;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; transition: opacity 0.25s ease;
}
.dpo-popup-overlay.open { opacity: 1; }

.dpo-popup-box {
  position: relative;
  max-width: 400px; width: 100%;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(244,196,48,0.10) 0%, transparent 60%),
    linear-gradient(180deg, #14172c 0%, #0f1224 100%);
  border: 1px solid rgba(244, 196, 48, 0.32);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.03) inset,
    0 0 36px rgba(244,196,48,0.08);
  padding: 22px 22px 18px;
  color: #fff;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.dpo-popup-overlay.open .dpo-popup-box {
  transform: translateY(0) scale(1);
}

.dpo-popup-close {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.06);
  border: none; color: rgba(255,255,255,0.7);
  border-radius: 50%; cursor: pointer;
  font-size: 16px; line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.dpo-popup-close:hover { background: rgba(255,255,255,0.12); }

.dpo-popup-head {
  display: flex; align-items: center; gap: 11px;
  margin-bottom: 14px;
}
.dpo-popup-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: rgba(244,196,48,0.12);
  border: 1.5px solid rgba(244,196,48,0.40);
  object-fit: cover;
}
.dpo-popup-greet {
  flex: 1; min-width: 0;
  font-size: 14px; color: rgba(255,255,255,0.78);
  font-weight: 600;
  letter-spacing: 0.2px;
}
.dpo-popup-greet b { color: #FFD54F; font-weight: 900; }

.dpo-popup-title {
  font-size: 16.5px; font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}
.dpo-popup-title b { color: #FFD54F; font-weight: 900; }

.dpo-popup-body {
  font-size: 13.5px; color: rgba(255,255,255,0.80);
  line-height: 1.75;
  margin-bottom: 18px;
}
.dpo-popup-body b {
  color: #FFD54F;
  font-weight: 700;  /* 不要太粗、避免文字段落變成黃色牆 */
}

/* 用於文章預覽 / 比賽預覽等「卡片內容」、跟一般敘述文字區隔 */
.dpo-popup-card {
  margin: 4px 0 12px;
  padding: 13px 14px;
  background: rgba(244, 196, 48, 0.06);
  border: 1px solid rgba(244, 196, 48, 0.18);
  border-radius: 12px;
}
.dpo-popup-card-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFD54F;
  line-height: 1.5;
  margin-bottom: 6px;
}
.dpo-popup-card-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.62);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dpo-popup-meta {
  font-size: 11.5px;
  color: rgba(255,255,255,0.50);
  margin-top: -4px;
  margin-bottom: 12px;
}
.dpo-popup-meta b { color: #FFD54F; font-weight: 800; }

.dpo-popup-actions {
  display: flex; gap: 9px;
  margin-top: 4px;
}
.dpo-popup-yes, .dpo-popup-no {
  flex: 1;
  padding: 12px 14px;
  border: none; border-radius: 11px;
  font-size: 14px; font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: 0.3px;
}
.dpo-popup-yes {
  background: linear-gradient(135deg, #FFD54F, #d9a829);
  color: #1a1a1a;
  flex: 2;
  box-shadow: 0 4px 14px rgba(244,196,48,0.25);
}
.dpo-popup-yes:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(244,196,48,0.35);
}
.dpo-popup-no {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.06);
}
.dpo-popup-no:hover { opacity: 0.7; }

@media (max-width: 480px) {
  .dpo-popup-box { padding: 18px 18px 16px; }
  .dpo-popup-title { font-size: 16px; }
  .dpo-popup-body { font-size: 12.5px; }
}
