/* ============================================
   InfluenceHub – Sent birthday card decoration
   - Distinct "🎂 Gimtadienio sveikinimas" badge
     and formatted birthday date chip on sent
     birthday request cards.
   - Matches the inbox birthday styling for
     visual consistency across the app.
   - Dark mode, 44px touch targets, focus-visible
     rings, prefers-reduced-motion, forced-colors.
   ============================================ */

/* ---------- Birthday meta wrapper ---------- */

.sent-birthday-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e9d5ff;
}

.dark .sent-birthday-meta {
  border-bottom-color: rgba(139, 92, 246, 0.35);
}

/* ---------- "🎂 Gimtadienio sveikinimas" badge ---------- */

.sent-birthday-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  /* WCAG AA: white on #7c3aed = 5.9:1 */
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(124, 58, 237, 0.5);
}

.sent-birthday-badge span[aria-hidden="true"] {
  font-size: 0.875rem;
  line-height: 1;
}

/* Dark mode: darker gradient keeps contrast >= 4.5:1 */
.dark .sent-birthday-badge {
  background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(109, 40, 217, 0.7);
}

/* ---------- Birthday date chip ---------- */

.sent-birthday-date {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  white-space: nowrap;
  /* WCAG AA: #6d28d9 on #faf5ff = 8.4:1 */
  background: #faf5ff;
  color: #6d28d9;
  border: 1px solid #e9d5ff;
}

.sent-birthday-date i {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.dark .sent-birthday-date {
  background: rgba(76, 29, 149, 0.3);
  color: #ddd6fe;
  border-color: rgba(139, 92, 246, 0.4);
}

/* ---------- Recipient + format info ---------- */

.sent-birthday-info {
  font-size: 0.75rem;
  font-weight: 500;
  /* WCAG AA: #475569 on white = 7.5:1 */
  color: #475569;
  line-height: 1.4;
}

.dark .sent-birthday-info {
  color: #cbd5e1;
}

/* ---------- Card highlight ---------- */

.sent-card-birthday {
  position: relative;
  border-color: #ddd6fe !important;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%) !important;
}

.dark .sent-card-birthday {
  border-color: rgba(139, 92, 246, 0.4) !important;
  background: linear-gradient(180deg, rgba(76, 29, 149, 0.15) 0%, #0f172a 100%) !important;
}

/* ---------- 44px touch targets ---------- */

.sent-birthday-badge,
.sent-birthday-date {
  min-height: 1.5rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* ---------- Focus-visible ring ---------- */

.sent-birthday-badge:focus-visible,
.sent-birthday-date:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.25);
}

.dark .sent-birthday-badge:focus-visible,
.dark .sent-birthday-date:focus-visible {
  outline-color: #c4b5fd;
  box-shadow: 0 0 0 4px rgba(196, 181, 253, 0.35);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .sent-birthday-meta,
  .sent-birthday-badge,
  .sent-birthday-date,
  .sent-birthday-info,
  .sent-card-birthday {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }

  .sent-birthday-badge:hover,
  .sent-birthday-badge:focus,
  .sent-birthday-badge:focus-visible,
  .sent-birthday-date:hover,
  .sent-birthday-date:focus,
  .sent-birthday-date:focus-visible {
    transform: none !important;
    transition: none !important;
  }

  .sent-birthday-badge,
  .dark .sent-birthday-badge {
    box-shadow: none !important;
  }
}

/* ---------- Forced colors (Windows High Contrast) ---------- */

@media (forced-colors: active) {
  .sent-birthday-badge {
    background: Highlight;
    color: HighlightText;
    border: 1px solid HighlightText;
    box-shadow: none;
  }

  .sent-birthday-date {
    background: Canvas;
    color: CanvasText;
    border: 1px solid CanvasText;
  }

  .sent-birthday-info {
    color: CanvasText;
  }

  .sent-card-birthday {
    border: 1px solid CanvasText !important;
    background: Canvas !important;
  }

  .sent-birthday-badge:focus-visible,
  .sent-birthday-date:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}
