/* AI 求婚专属卡片 — 仪式感设计 */

@keyframes ai-proposal-glow {
  0%, 100% { box-shadow: 0 8px 24px rgba(232, 60, 90, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.55) inset; }
  50%      { box-shadow: 0 12px 32px rgba(232, 60, 90, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.7) inset, 0 0 24px rgba(255, 200, 215, 0.35); }
}

@keyframes ai-proposal-ring-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-4px) rotate(3deg); }
}

@keyframes ai-proposal-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ai-proposal-pop-in {
  0%   { opacity: 0; transform: translateY(8px) scale(0.96); }
  100% { opacity: 1; transform: translateY(0)   scale(1);    }
}

.ai-proposal-card-wrapper {
  display: flex;
  width: 100%;
  margin: 12px 0;
  box-sizing: border-box;
  padding: 0 12px;
}
.ai-proposal-card-wrapper.left  { justify-content: flex-start; }
.ai-proposal-card-wrapper.right { justify-content: flex-end; }

.ai-proposal-card {
  position: relative;
  width: 280px;
  max-width: 80%;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 0%,  rgba(255, 255, 255, 0.55), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(255, 220, 230, 0.45), transparent 60%),
    linear-gradient(135deg, #ff6f88 0%, #d63a5b 55%, #b3274a 100%);
  color: #fff;
  text-align: center;
  overflow: hidden;
  animation:
    ai-proposal-pop-in 0.45s ease-out,
    ai-proposal-glow   3.2s ease-in-out infinite;
  box-sizing: border-box;
}

/* 顶部金色细光带 */
.ai-proposal-card::before {
  content: "";
  position: absolute;
  top: 0; left: -50%;
  width: 200%; height: 100%;
  background: linear-gradient(
    100deg,
    transparent 35%,
    rgba(255, 230, 180, 0.18) 48%,
    rgba(255, 245, 220, 0.32) 52%,
    rgba(255, 230, 180, 0.18) 56%,
    transparent 70%
  );
  background-size: 200% 100%;
  animation: ai-proposal-shimmer 5.5s linear infinite;
  pointer-events: none;
}

/* 内框装饰 */
.ai-proposal-card::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.ai-proposal-ring {
  position: relative;
  z-index: 1;
  font-size: 38px;
  line-height: 1;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
  animation: ai-proposal-ring-float 2.6s ease-in-out infinite;
}

.ai-proposal-title {
  position: relative;
  z-index: 1;
  font-size: 12px;
  letter-spacing: 4px;
  margin-bottom: 10px;
  opacity: 0.85;
  font-weight: 500;
  text-transform: uppercase;
}

.ai-proposal-text {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.7;
  color: #fffafc;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  word-break: break-word;
  white-space: pre-wrap;
  margin-bottom: 14px;
  padding: 0 2px;
}

.ai-proposal-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.ai-proposal-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-family: inherit;
}

.ai-proposal-btn:active { transform: scale(0.96); }

.ai-proposal-decline {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.ai-proposal-decline:hover { background: rgba(255, 255, 255, 0.28); }

.ai-proposal-accept {
  background: linear-gradient(135deg, #fff7c8 0%, #ffd88a 50%, #f4b860 100%);
  color: #8a2236;
  box-shadow: 0 4px 12px rgba(255, 200, 120, 0.35);
}
.ai-proposal-accept:hover {
  box-shadow: 0 6px 18px rgba(255, 200, 120, 0.55);
  filter: brightness(1.05);
}

.ai-proposal-status {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 1px;
}

.ai-proposal-status.accepted { color: #fff7d0; }
.ai-proposal-status.declined {
  color: #ffe6ec;
  background: rgba(40, 18, 26, 0.32);
  border-color: rgba(255, 255, 255, 0.18);
}

/* 玩家发起的求婚回应行 */
.proposal-response-line {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 8px 0;
}
.proposal-response-line .pr-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  background: rgba(214, 58, 91, 0.1);
  color: #c62556;
  border: 1px solid rgba(214, 58, 91, 0.18);
}
.proposal-response-line.declined .pr-pill {
  background: rgba(120, 120, 120, 0.08);
  color: #777;
  border-color: rgba(120, 120, 120, 0.18);
}

/* 暗色主题适配 */
@media (prefers-color-scheme: dark) {
  .ai-proposal-card {
    background:
      radial-gradient(circle at 20% 0%,  rgba(255, 255, 255, 0.32), transparent 55%),
      radial-gradient(circle at 80% 100%, rgba(255, 180, 210, 0.32), transparent 60%),
      linear-gradient(135deg, #d65a76 0%, #b32d4e 55%, #851b3b 100%);
  }
}
