/* Secret Santa Drawer — Christmas premium theme (v1.0)
 * Palette: cranberry red, pine green, cream, champagne gold.
 * Works with the site's light/dark theme variables where possible.
 */

.santa-wrap {
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 0 4px;
}

.santa-hero .eyebrow {
  background: linear-gradient(135deg, #c41e3a, #7a1f2b);
  color: #fff8ee;
  border: none;
}

.santa-panel {
  background: #fffdf8;
  border: 1px solid #ecd9b0;
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 10px 40px rgba(122, 31, 43, 0.10), 0 2px 8px rgba(122, 31, 43, 0.06);
  position: relative;
  overflow: hidden;
}

.santa-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #c41e3a 0%, #c41e3a 25%, #2d6a4f 25%, #2d6a4f 50%, #d4af37 50%, #d4af37 75%, #c41e3a 75%, #c41e3a 100%);
}

.santa-panel h2 {
  margin: 6px 0 8px;
  font-size: 1.6rem;
  color: #7a1f2b;
  letter-spacing: -0.01em;
}

.santa-hint {
  color: #6b5d4f;
  margin: 0 0 16px;
  line-height: 1.55;
}

.santa-label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2d6a4f;
  margin: 16px 0 8px;
}

.santa-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #e5d3a8;
  border-radius: 12px;
  padding: 14px;
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
  background: #fffefb;
  color: #2b2118;
  resize: vertical;
  min-height: 150px;
}

.santa-textarea:focus {
  outline: none;
  border-color: #c41e3a;
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.santa-count {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #2d6a4f;
  font-weight: 600;
}

.santa-error {
  margin-top: 12px;
  background: #fdeeee;
  border: 1px solid #f0b4b4;
  color: #a01830;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.92rem;
}

.santa-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.santa-secondary {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px dashed #e5d3a8;
}

.santa-btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 14px;
  padding: 14px 22px;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px; /* iPhone-friendly tap target */
}

.santa-btn:active { transform: scale(0.98); }

.santa-btn-primary {
  background: linear-gradient(135deg, #c41e3a, #a01830);
  color: #fff8ee;
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.35);
  flex: 1 1 200px;
}

.santa-btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 26px rgba(196, 30, 58, 0.45);
}

.santa-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.santa-btn-ghost {
  background: transparent;
  color: #7a1f2b;
  border: 2px solid #e5d3a8;
  flex: 0 1 auto;
}

.santa-btn-ghost:hover { border-color: #c41e3a; }

.santa-btn-danger { color: #a01830; }

/* Drawn panel */
.santa-progress {
  display: inline-block;
  background: #2d6a4f;
  color: #fff8ee;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 6px;
}

.santa-select {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #e5d3a8;
  border-radius: 12px;
  padding: 14px;
  font-size: 1.05rem;
  font-family: inherit;
  background: #fffefb;
  color: #2b2118;
  min-height: 52px;
}

.santa-select:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.15);
}

/* Reveal card */
.santa-reveal {
  margin-top: 22px;
  background: linear-gradient(160deg, #7a1f2b 0%, #a01830 60%, #c41e3a 100%);
  border-radius: 18px;
  padding: 30px 22px;
  text-align: center;
  color: #fff8ee;
  box-shadow: 0 12px 36px rgba(122, 31, 43, 0.35);
  border: 2px solid #d4af37;
}

.santa-gift {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 12px;
  display: inline-block;
}

.santa-gift-open {
  animation: santa-gift-shake 0.65s ease;
}

@keyframes santa-gift-shake {
  0% { transform: scale(1) rotate(0); }
  20% { transform: scale(1.15) rotate(-8deg); }
  40% { transform: scale(1.15) rotate(8deg); }
  60% { transform: scale(1.25) rotate(-5deg); }
  80% { transform: scale(1.25) rotate(5deg); }
  100% { transform: scale(1.3) rotate(0); }
}

.santa-reveal-label {
  color: #f3e2b8;
  font-size: 0.95rem;
  margin: 0 0 8px;
}

.santa-recipient {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffe9a8;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  word-break: break-word;
}

.santa-reveal-note {
  color: #f3e2b8;
  font-size: 0.88rem;
  font-style: italic;
  margin: 0 0 16px;
}

.santa-reveal .santa-btn-primary {
  background: linear-gradient(135deg, #d4af37, #b8860b);
  color: #3a2a00;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Reduce motion: kill the gift animation */
@media (prefers-reduced-motion: reduce) {
  .santa-gift-open { animation: none; }
  .santa-btn { transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Dark theme adjustments */
[data-theme="dark"] .santa-panel {
  background: #241a16;
  border-color: #5a4632;
}

[data-theme="dark"] .santa-panel h2 { color: #f3d9a8; }
[data-theme="dark"] .santa-hint { color: #cbb99f; }
[data-theme="dark"] .santa-label { color: #8fd0a8; }
[data-theme="dark"] .santa-textarea,
[data-theme="dark"] .santa-select {
  background: #171009;
  border-color: #5a4632;
  color: #f5ead6;
}
[data-theme="dark"] .santa-count { color: #8fd0a8; }
[data-theme="dark"] .santa-btn-ghost { color: #f3d9a8; border-color: #5a4632; }
[data-theme="dark"] .santa-secondary { border-top-color: #5a4632; }

/* Small phones */
@media (max-width: 480px) {
  .santa-panel { padding: 22px 16px; border-radius: 16px; }
  .santa-panel h2 { font-size: 1.35rem; }
  .santa-recipient { font-size: 1.8rem; }
  .santa-btn { width: 100%; }
  .santa-actions { flex-direction: column; }
  .santa-secondary .santa-actions { flex-direction: column; }
}
