/* ─── Daily Claim Widget for Pink Slips Page ──────────────────────────────
 * Owns: styling for dc-* components (claim button, animation, onboarding).
 * Does NOT own: balance card, transaction history, page layout.
 */

/* ── Claim card ───────────────────────────────────────────────────────── */
.dc-card {
  background: linear-gradient(135deg, rgba(255,105,180,0.12) 0%, rgba(255,105,180,0.03) 100%);
  border: 1px solid rgba(255,105,180,0.25);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  overflow: visible;
}

/* ── Glow ring around ticket icon when claimable ──────────────────────── */
.dc-glow-ring {
  display: inline-block;
  padding: 6px;
  border-radius: 50%;
  animation: dc-glow-pulse 2s ease-in-out infinite;
  margin-bottom: 8px;
}
@keyframes dc-glow-pulse {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(255,105,180,0.3), 0 0 24px 6px rgba(255,105,180,0.1); }
  50%      { box-shadow: 0 0 16px 6px rgba(255,105,180,0.5), 0 0 40px 12px rgba(255,105,180,0.2); }
}

.dc-icon-wrap {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,105,180,0.1);
}
.dc-icon-wrap.dc-claimed {
  position: relative;
}
.dc-ticket-icon { font-size: 1.6rem; }
.dc-check {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: #10b981;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141518;
}

.dc-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #f0f2f5;
  margin-bottom: 4px;
}
.dc-title-claimed { color: #10b981; }

.dc-streak {
  font-size: 0.82rem;
  color: #f5a623;
  font-weight: 600;
  margin-bottom: 12px;
}

.dc-countdown {
  font-size: 0.82rem;
  color: #8c91a0;
  margin-top: 8px;
}
#dc-cd-val { color: #ff69b4; font-weight: 700; }

/* ── Claim button ─────────────────────────────────────────────────────── */
.dc-claim-btn {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #ff69b4, #ff3d87);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: transform 0.12s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(255,105,180,0.35);
  position: relative;
  overflow: hidden;
}
.dc-claim-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(255,105,180,0.5);
}
.dc-claim-btn:active { transform: scale(0.97); }
.dc-claim-btn:disabled {
  background: rgba(255,255,255,0.08);
  color: #4f5566;
  cursor: not-allowed;
  box-shadow: none;
}
/* Shimmer effect on the claim button */
.dc-claim-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
  animation: dc-shimmer 2.5s ease-in-out infinite;
}
@keyframes dc-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.dc-btn-inner { position: relative; z-index: 1; }

/* ── Animation layer ──────────────────────────────────────────────────── */
.dc-anim-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  display: none;
}
.dc-flying-ticket {
  position: fixed;
  font-size: 1.5rem;
  z-index: 10000;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(255,105,180,0.5));
}

/* ── Balance bump animation ───────────────────────────────────────────── */
.dc-balance-bump {
  animation: dc-bump 0.25s ease-out;
}
@keyframes dc-bump {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

/* ── Card flash on tickets landing ────────────────────────────────────── */
.dc-card-flash {
  animation: dc-flash 0.5s ease-out;
}
@keyframes dc-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255,105,180,0.5); }
  50%  { box-shadow: 0 0 20px 8px rgba(255,105,180,0.3); }
  100% { box-shadow: none; }
}

/* ── Particle burst ───────────────────────────────────────────────────── */
.dc-particle {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10001;
  animation: dc-particle-fly 0.6s ease-out forwards;
}
@keyframes dc-particle-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.2); }
}

/* ── Onboarding funnel ────────────────────────────────────────────────── */
.dc-onboarding {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s;
  margin-top: 8px;
}
.dc-onboarding.dc-ob-visible {
  opacity: 1;
  transform: translateY(0);
}

.dc-ob-card {
  background: var(--surface-2, #1a1b1e);
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: 16px;
  padding: 24px 20px;
}

.dc-ob-header {
  font-size: 1.05rem;
  font-weight: 800;
  color: #f0f2f5;
  margin-bottom: 16px;
  text-align: center;
}

.dc-ob-explain {
  margin-bottom: 20px;
}
.dc-ob-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.88rem;
  color: #b0b5c0;
  line-height: 1.4;
}
.dc-ob-row strong { color: #f0f2f5; }
.dc-ob-icon { font-size: 1.2rem; flex-shrink: 0; width: 28px; text-align: center; }

.dc-ob-cta-section { text-align: center; }
.dc-ob-cta-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ff69b4;
  margin-bottom: 12px;
}

.dc-ob-games {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}
.dc-ob-game-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 8px;
  background: rgba(255,105,180,0.08);
  border: 1px solid rgba(255,105,180,0.2);
  border-radius: 12px;
  color: #f0f2f5;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.15s;
}
.dc-ob-game-btn:hover {
  background: rgba(255,105,180,0.16);
  border-color: rgba(255,105,180,0.4);
  transform: translateY(-1px);
}
.dc-ob-game-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8c91a0;
}
.dc-ob-game-all {
  background: rgba(0,232,122,0.08);
  border-color: rgba(0,232,122,0.2);
}
.dc-ob-game-all:hover {
  background: rgba(0,232,122,0.16);
  border-color: rgba(0,232,122,0.4);
}

.dc-ob-dismiss {
  background: none;
  border: none;
  color: #4f5566;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.15s;
}
.dc-ob-dismiss:hover { color: #8c91a0; }

@media (max-width: 480px) {
  .dc-card { padding: 20px 16px; }
  .dc-claim-btn { padding: 12px 28px; font-size: 0.95rem; }
  .dc-ob-games { grid-template-columns: 1fr 1fr; }
  .dc-ob-game-all { grid-column: span 2; }
}
