/**
 * QEDU Interactive Live Activity - Common Stylesheet
 */
:root {
  --primary-navy: #0B192C;
  --navy-dark: #070F1E;
  --navy-surface: #132238;
  --navy-card: #182B48;
  --emerald: #10B981;
  --emerald-dark: #059669;
  --emerald-light: #34D399;
  --gold: #F59E0B;
  --gold-light: #FCD34D;
  --coral: #EF4444;
  --cyan: #06B6D4;
  --purple: #8B5CF6;
  --pink: #EC4899;

  /* Kahoot Style Color Palette */
  --quiz-red: #E21B3C;
  --quiz-blue: #1368CE;
  --quiz-yellow: #D89E00;
  --quiz-green: #26890C;
  --quiz-purple: #864CBF;
  --quiz-orange: #E66415;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dark: #0F172A;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow-emerald: 0 0 25px rgba(16, 185, 129, 0.35);
  --shadow-glow-gold: 0 0 25px rgba(245, 158, 11, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, .brand-font {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Background Gradients & Mesh */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #070F1E 0%, #0B192C 100%);
  background-attachment: fixed;
}

/* Utility Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px -3px rgba(16, 185, 129, 0.45);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-light) 0%, var(--emerald) 100%);
  box-shadow: var(--shadow-glow-emerald);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%);
  color: #FFFFFF;
  box-shadow: 0 6px 20px -3px rgba(245, 158, 11, 0.45);
}

.btn-gold:hover {
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-danger {
  background: linear-gradient(135deg, #EF4444 0%, #B91C1C 100%);
  color: #FFFFFF;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 18px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* Glass Cards */
.glass-card {
  background: rgba(19, 34, 56, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-light);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #C4B5FD;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

/* Audio Control Float */
.audio-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  background: rgba(19, 34, 56, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.2s ease;
}

.audio-toggle-btn:hover {
  transform: scale(1.1);
  background: var(--navy-surface);
}

/* App Header */
.game-header {
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 15, 30, 0.7);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 50;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: #FFFFFF;
}

.brand-logo-text span {
  color: var(--emerald-light);
}

/* Toast Alerts */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
  color: #FFF;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s ease;
}
