/*
 * VoiceStok — Liquid Glass & 3-Theme Design System (Trava 1 & Trava 6)
 * Temas:
 *   1. dark  -> Escuro Atmosférico (Liquid Glass Obsidian)
 *   2. light -> Claro Editorial (Frosted Pearl Liquid Glass)
 *   3. ruby  -> Ruby Elétrico (Vidro Lapidado & Lâmina)
 */

.safe-bottom-dock {
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}

/* ==========================================================================
   1. TEMA ESCURO (Liquid Glass Obsidian — Default)
   ========================================================================== */
html[data-theme="dark"] body {
  background-color: #07090C;
  color: #F4F6F8;
}

html[data-theme="dark"] .bg-\[\#10141B\] {
  background: linear-gradient(145deg, rgba(22, 29, 39, 0.76) 0%, rgba(14, 18, 25, 0.84) 100%) !important;
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border-color: rgba(255, 255, 255, 0.13) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 0 rgba(16, 185, 129, 0.08),
    0 14px 34px -10px rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] main .bg-\[\#07090C\] {
  background-color: rgba(7, 9, 12, 0.68) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .text-\[\#8B95A5\] {
  color: #9BA6B8 !important;
}

/* ==========================================================================
   2. TEMA CLARO EDITORIAL (Frosted Pearl Liquid Glass — High Contrast)
   ========================================================================== */
html[data-theme="light"] body {
  background: linear-gradient(160deg, #F1F5F9 0%, #E2E8F0 100%) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .bg-\[\#10141B\] {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.90) 0%, rgba(248, 250, 252, 0.84) 100%) !important;
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-color: rgba(15, 23, 42, 0.12) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, 0.98),
    0 12px 28px -8px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] header.fixed,
html[data-theme="light"] aside#voice_recorder_dock {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(15, 23, 42, 0.12) !important;
}

html[data-theme="light"] main .bg-\[\#07090C\] {
  background-color: #F8FAFC !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  color: #0F172A !important;
}

html[data-theme="light"] .border-white\/\[0\.08\],
html[data-theme="light"] .border-white\/\[0\.12\],
html[data-theme="light"] .border-white\/\[0\.06\] {
  border-color: rgba(15, 23, 42, 0.14) !important;
}

html[data-theme="light"] .text-\[\#F4F6F8\],
html[data-theme="light"] .text-\[\#F4F6F8\]\/90,
html[data-theme="light"] .text-\[\#F4F6F8\]\/80 {
  color: #0F172A !important;
}

html[data-theme="light"] .text-\[\#8B95A5\] {
  color: #475569 !important;
}

html[data-theme="light"] .text-\[\#10B981\] {
  color: #047857 !important;
}

html[data-theme="light"] .text-\[\#0EA5E9\] {
  color: #0369A1 !important;
}

html[data-theme="light"] .text-\[\#F59E0B\] {
  color: #B45309 !important;
}

html[data-theme="light"] .text-\[\#F43F5E\] {
  color: #BE123C !important;
}

html[data-theme="light"] .bg-\[\#10B981\] {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.35);
}

html[data-theme="light"] .placeholder-\[\#8B95A5\]\/50::placeholder,
html[data-theme="light"] .placeholder-\[\#8B95A5\]\/60::placeholder {
  color: #64748B !important;
}

/* ==========================================================================
   3. TEMA RUBY ELÉTRICO (Vidro Lapidado & Lâmina — Electric Ruby Blade)
   ========================================================================== */
html[data-theme="ruby"] body {
  background:
    radial-gradient(ellipse at 16% 10%, rgba(255, 30, 86, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 86% 88%, rgba(225, 29, 72, 0.22) 0%, transparent 55%),
    linear-gradient(145deg, #0B0205 0%, #18040B 52%, #080104 100%) !important;
  color: #FFF1F2 !important;
}

html[data-theme="ruby"] .bg-\[\#10141B\] {
  background: linear-gradient(
    135deg,
    rgba(56, 10, 26, 0.78) 0%,
    rgba(24, 5, 12, 0.88) 48%,
    rgba(82, 12, 37, 0.74) 100%
  ) !important;
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-color: rgba(255, 77, 121, 0.36) !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 205, 218, 0.42),
    inset 1px 0 0 0 rgba(255, 30, 86, 0.26),
    0 16px 38px -10px rgba(225, 29, 72, 0.34);
}

html[data-theme="ruby"] header.fixed,
html[data-theme="ruby"] aside#voice_recorder_dock {
  background: linear-gradient(90deg, rgba(20, 4, 10, 0.90) 0%, rgba(42, 7, 19, 0.88) 50%, rgba(20, 4, 10, 0.90) 100%) !important;
  backdrop-filter: blur(22px) saturate(190%);
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  border-color: rgba(255, 77, 121, 0.32) !important;
}

html[data-theme="ruby"] main .bg-\[\#07090C\] {
  background-color: rgba(16, 3, 8, 0.82) !important;
  border-color: rgba(255, 77, 121, 0.28) !important;
  color: #FFF1F2 !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.60);
}

html[data-theme="ruby"] .border-white\/\[0\.08\],
html[data-theme="ruby"] .border-white\/\[0\.12\],
html[data-theme="ruby"] .border-white\/\[0\.06\] {
  border-color: rgba(255, 92, 133, 0.26) !important;
}

html[data-theme="ruby"] .text-\[\#F4F6F8\],
html[data-theme="ruby"] .text-\[\#F4F6F8\]\/90,
html[data-theme="ruby"] .text-\[\#F4F6F8\]\/80 {
  color: #FFF1F2 !important;
}

html[data-theme="ruby"] .text-\[\#8B95A5\] {
  color: #FECDD3 !important;
}

html[data-theme="ruby"] .text-\[\#10B981\] {
  color: #FF4D79 !important;
}

html[data-theme="ruby"] .border-\[\#10B981\]\/30,
html[data-theme="ruby"] .border-\[\#10B981\]\/40,
html[data-theme="ruby"] .border-\[\#10B981\]\/50 {
  border-color: rgba(255, 77, 121, 0.50) !important;
}

html[data-theme="ruby"] .bg-\[\#10B981\] {
  background: linear-gradient(135deg, #FF1E56 0%, #E11D48 52%, #9F1239 100%) !important;
  color: #FFF1F2 !important;
  box-shadow:
    inset 0 1px 0 0 rgba(255, 228, 230, 0.48),
    0 8px 22px -4px rgba(255, 30, 86, 0.52);
}

html[data-theme="ruby"] .placeholder-\[\#8B95A5\]\/50::placeholder,
html[data-theme="ruby"] .placeholder-\[\#8B95A5\]\/60::placeholder {
  color: rgba(254, 205, 211, 0.55) !important;
}
