/* ============================================================
   WaveBlue Aurora 2099 - CSS Custom Properties & Base Styles
   Helles Social-App-Fundament, dunkle Media-Flaechen.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

/* ── Aurora 2099 (Default) ── */
:root,
[data-theme="dark"] {
  color-scheme: light;
  --bg:            #F6F9FF;
  --bg2:           #FFFFFF;
  --bg3:           #EEF5FF;
  --surface:       #FFFFFF;
  --surface-1:     #FFFFFF;
  --surface-2:     #F8FBFF;
  --surface-3:     #EEF5FF;
  --surface-glass: rgba(255, 255, 255, 0.82);
  --border:        #DCE8F7;
  --fg:            #0D1728;
  --text:          #0D1728;
  --muted:         #5F6F86;
  --text2:         #5F6F86;
  --accent:        #1677FF;
  --accent-hover:  #0B62D8;
  --accent2:       #18C7D4;
  --accent-rgb:    22, 119, 255;
  --accent-glow:   rgba(22, 119, 255, 0.22);
  --accent-subtle: rgba(22, 119, 255, 0.10);
  --own-bubble:    #1677FF;
  --own-bubble-text: #ffffff;
  --online:        #1EBD72;
  --online-glow:   rgba(34, 197, 94, 0.4);
  --away:          #F59E0B;
  --warning:       #F59E0B;
  --offline:       #8EA0B7;
  --danger:        #EF3B5D;
  --danger-glow:   rgba(239, 59, 93, 0.28);
  --live:          #EF3B5D;
  --gift:          #FFD166;
  --gold:          #FFD166;
  --success:       #1EBD72;
  --host-color:    #1677FF;
  --primary:       #1677FF;
  --guest-color:   #18C7D4;
  --media-bg:      #050814;
  --media-surface: rgba(8, 13, 28, 0.84);
  --shadow-md:     0 14px 38px rgba(22, 64, 120, 0.14);
  --shadow-lg:     0 24px 70px rgba(22, 64, 120, 0.18);
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius:        10px;
  --radius-full:   999px;
}

/* ── Light Mode ── */
[data-theme="light"] {
  --bg:        #F6F9FF;
  --surface-1: #ffffff;
  --surface-2: #F8FBFF;
  --surface-3: #EEF5FF;
  --border:    #DCE8F7;
  --fg:        #0D1728;
  --muted:     #5F6F86;
  --shadow-md: 0 14px 38px rgba(22, 64, 120, 0.14);
  --shadow-lg: 0 24px 70px rgba(22, 64, 120, 0.18);
}

/* ── Full CSS Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 19px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  height: 100%;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--accent-hover);
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

code,
kbd,
samp,
pre,
.mono,
.technical,
[data-mono="true"] {
  font-family: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--fg);
}

p {
  color: var(--muted);
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* ── Custom Scrollbar ── */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: var(--radius-full);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* ── Utility ── */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skeleton Shimmer ── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--surface-3) 50%,
    var(--surface-2) 75%
  );
  background-size: 400px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Animations ── */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-5px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes livePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--online-glow);
  }
  50% {
    box-shadow: 0 0 0 4px var(--online-glow);
  }
}

@keyframes shimmer {
  from {
    background-position: -400px 0;
  }
  to {
    background-position: 400px 0;
  }
}

@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(3deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
