/* ============================================================================
   🎙️ DMDG(당목담글) 보이스 (마음잇기) — Unified Taegeuk Light & Hanji Peach Theme
   초기 감성 한지·피치 라이트 톤 통일 (데스크탑 2단 + 모바일 PWA 반응형 공통)
   ============================================================================ */

:root {
  --theme-primary: #CD2E3A;
  --theme-primary-dark: #a82230;
  --theme-secondary: #0047A0;
  --theme-secondary-dark: #003580;
  --theme-accent: #e8532b;
  --theme-text-body: #1A1A1A;
  --theme-text-muted: #475569;
  --theme-bg-circle1: rgba(205, 46, 58, 0.12);
  --theme-bg-circle2: rgba(0, 71, 160, 0.10);
  --theme-glow: rgba(205, 46, 58, 0.28);
}

*, *::before, *::after {
  box-sizing: border-box;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.2s ease;
}

body.voice-aurora-body {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #f6efe9;
  background-image:
    radial-gradient(ellipse 75% 55% at 18% 10%, rgba(205, 46, 58, 0.11) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 85% 90%, rgba(0, 71, 160, 0.09) 0%, transparent 62%);
  background-attachment: fixed;
  color: #1A1A1A;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
}

.font-warm    { font-family: 'Gowun Batang', 'Pretendard', serif; }
.font-comfort { font-family: 'Comfortaa', 'Pretendard', cursive; }
.font-cute    { font-family: 'Gaegu', 'Pretendard', cursive; }

.bg-theme-grad {
  background: linear-gradient(135deg, #CD2E3A 0%, #e8532b 100%) !important;
  color: #ffffff !important;
}

.bg-secondary-grad {
  background: linear-gradient(135deg, #0047A0 0%, #1a6bd4 100%) !important;
  color: #ffffff !important;
}

.glow-theme {
  box-shadow: 0 0 28px var(--theme-glow) !important;
}

.touch-target { touch-action: manipulation; }
.touch-target:active { transform: scale(0.96); }

/* Crisp Hanji White Glass Card */
.glass-card {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(205, 46, 58, 0.15) !important;
  box-shadow: 0 10px 28px rgba(139, 92, 60, 0.08) !important;
  color: #1A1A1A !important;
}

body.voice-aurora-body svg.lucide {
  stroke: currentColor;
  flex-shrink: 0;
}

/* Light card typography readability across all viewports */
body.voice-aurora-body .text-white,
body.voice-aurora-body .text-slate-100,
body.voice-aurora-body .text-slate-200,
body.voice-aurora-body [class*="text-orange-950"],
body.voice-aurora-body [class*="text-orange-900"],
body.voice-aurora-body [class*="text-orange-850"],
body.voice-aurora-body [class*="text-orange-800"] {
  color: #1A1A1A !important;
}

body.voice-aurora-body .text-slate-300,
body.voice-aurora-body .text-slate-400,
body.voice-aurora-body .text-slate-500 {
  color: #475569 !important;
}

body.voice-aurora-body [class*="text-orange-700"],
body.voice-aurora-body [class*="text-orange-600"],
body.voice-aurora-body .text-amber-300,
body.voice-aurora-body .text-amber-400 {
  color: #b91c1c !important;
}

body.voice-aurora-body .text-emerald-300 {
  color: #047857 !important;
}

body.voice-aurora-body .text-pink-200,
body.voice-aurora-body .text-pink-300,
body.voice-aurora-body [class*="text-rose-800"],
body.voice-aurora-body [class*="text-rose-700"],
body.voice-aurora-body [class*="text-rose-600"],
body.voice-aurora-body .text-sky-200,
body.voice-aurora-body .text-sky-300 {
  color: #0047A0 !important;
}

/* Preserve white text inside gradient CTA buttons */
body.voice-aurora-body .bg-theme-grad,
body.voice-aurora-body .bg-theme-grad *,
body.voice-aurora-body #action-btn,
body.voice-aurora-body #action-btn *,
body.voice-aurora-body .bg-secondary-grad,
body.voice-aurora-body .bg-secondary-grad * {
  color: #ffffff !important;
}

body.voice-aurora-body .bg-slate-900\/50,
body.voice-aurora-body .bg-slate-900\/70,
body.voice-aurora-body .bg-slate-900\/80,
body.voice-aurora-body .bg-white\/5,
body.voice-aurora-body .bg-white\/10 {
  background: rgba(255, 250, 245, 0.90) !important;
  border-color: rgba(205, 46, 58, 0.16) !important;
}

body.voice-aurora-body #relay-count {
  background: rgba(205, 46, 58, 0.10) !important;
  color: #b91c1c !important;
  border-color: rgba(205, 46, 58, 0.25) !important;
}

body.voice-aurora-body select,
body.voice-aurora-body input {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #1A1A1A !important;
  border: 1px solid rgba(205, 46, 58, 0.24) !important;
}

body.voice-aurora-body select option {
  background: #ffffff;
  color: #1A1A1A;
}

/* Relay list action circles & badges */
body.voice-aurora-body #relay-list .bg-orange-100\/80 {
  background: rgba(0, 71, 160, 0.10) !important;
  color: #0047A0 !important;
  border: 1px solid rgba(0, 71, 160, 0.25) !important;
}

body.voice-aurora-body #relay-list .bg-rose-50\/50 {
  background: rgba(205, 46, 58, 0.08) !important;
  color: #CD2E3A !important;
  border: 1px solid rgba(205, 46, 58, 0.22) !important;
}

body.voice-aurora-body #relay-list .bg-orange-100\/60,
body.voice-aurora-body #relay-list .bg-rose-100\/60,
body.voice-aurora-body #relay-list .bg-amber-100\/60 {
  background: rgba(205, 46, 58, 0.10) !important;
  color: #CD2E3A !important;
  border: 1px solid rgba(205, 46, 58, 0.22) !important;
}

/* Language dropdown & modals */
#lang-dropdown {
  background: #ffffff !important;
  border: 1px solid rgba(205, 46, 58, 0.22) !important;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18) !important;
  z-index: 9999 !important;
}

#lang-dropdown button {
  color: #1A1A1A !important;
}

#lang-dropdown button:hover {
  background: rgba(205, 46, 58, 0.08) !important;
}

#audio-popup-modal,
#ai-evaluation-modal,
#paywall-modal,
#settings-modal,
#benefit-modal,
#donate-modal {
  background: rgba(15, 23, 42, 0.45) !important;
}

#audio-popup-modal .glass-card,
#ai-evaluation-modal .glass-card,
#paywall-modal .glass-card,
#settings-modal .glass-card,
#benefit-modal .glass-card,
#donate-modal .glass-card {
  background: #ffffff !important;
  color: #1A1A1A !important;
  border: 1px solid rgba(205, 46, 58, 0.2) !important;
}

#evaluation-feedback-wrapper {
  max-height: 280px !important;
  overflow-y: auto !important;
  padding-right: 4px;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(205, 46, 58, 0.22);
  border-radius: 9999px;
}

/* Country Motifs */
body[data-motif="tricolor"] header::before {
  content: "";
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, #0055A4 33%, #ffffff 33% 66%, #EF4135 66%);
  opacity: 0.7;
  pointer-events: none;
  z-index: 100;
}

body[data-motif="grid"] header::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #222222 33%, #DD0000 33% 66%, #FFCE00 66%);
  opacity: 0.75;
  pointer-events: none;
  z-index: 100;
}
