/* Spritzerwertung Common Styles & Design System */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Premium High-Contrast Light Theme Palette (Optimized for Outdoor Visibility) */
  --bg-primary: #f8fafc; /* Slate 50 */
  --bg-secondary: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.92); /* Solid, crisp white cards */
  --border-color: rgba(15, 23, 42, 0.12); /* Slate 900 border with opacity */
  --border-glow: rgba(255, 102, 0, 0.6); /* High contrast ASV Orange */
  
  /* Neon Accents adapted for light mode text and boundary contrast */
  --accent-violet: #e65c00; /* Replaced with darker ASV Logo Orange */
  --accent-orange: #e65c00;
  --accent-cyan: #0891b2; /* Darker Cyan */
  --accent-pink: #db2777; /* Darker Pink */
  --accent-amber: #d97706; /* Darker Amber */
  --accent-green: #059669; /* Darker Green */
  --accent-red: #dc2626; /* Darker Red */

  /* Typography Colors */
  --text-primary: #0f172a; /* Slate 900 */
  --text-secondary: #334155; /* Slate 700 */
  --text-muted: #64748b; /* Slate 500 */
  
  /* Fonts */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Shadow & Glassmorphism Blur */
  --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 0 20px rgba(255, 102, 0, 0.25);
  --glass-blur: blur(8px);
}

[data-theme="dark"] {
  /* Premium Dark Theme Palette (Matching ASV St. Martin Orange & Black) */
  --bg-primary: #0a090e;
  --bg-secondary: rgba(20, 18, 25, 0.85);
  --bg-card: rgba(28, 25, 36, 0.45);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(255, 102, 0, 0.35);
  
  /* Neon Accents for Dark Mode */
  --accent-violet: #ff6600;
  --accent-orange: #ff6600;
  --accent-cyan: #06b6d4;
  --accent-pink: #ec4899;
  --accent-amber: #f59e0b;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Shadow & Glassmorphism Blur */
  --shadow-lg: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(255, 102, 0, 0.18);
  --glass-blur: blur(12px);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.03) 0%, transparent 40%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Glassmorphism Card base class */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* Neon Text Glows - Refined for High Contrast Light Mode */
.text-glow-violet {
  color: var(--accent-orange);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.text-glow-cyan {
  color: var(--accent-cyan);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}
.text-glow-gold {
  color: var(--accent-amber);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.05);
}

/* Language Switcher Component */
.lang-switcher-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 30px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.lang-select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  padding-right: 4px;
}

.lang-select option {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Global button styling */
.btn {
  font-family: var(--font-main);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange) 0%, #cc5200 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 102, 0, 0.5);
}

.btn-danger {
  background: linear-gradient(135deg, var(--accent-red) 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

/* Keyframes for common animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: var(--shadow-lg), 0 0 10px rgba(255, 102, 0, 0.2);
  }
  50% {
    box-shadow: var(--shadow-lg), 0 0 25px rgba(255, 102, 0, 0.5);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes popIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-pop-in {
  animation: popIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Screen layout elements */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
}

@media (max-width: 768px) {
  header {
    padding: 15px 20px;
    flex-direction: column;
    gap: 15px;
  }
}

/* Utility to hide controls on digital signage / TV views */
.hide-on-tv {
  display: none !important;
}

[data-theme="dark"] body {
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(255, 102, 0, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%);
}

[data-theme="dark"] .text-glow-violet {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(255, 102, 0, 0.6);
}

[data-theme="dark"] .text-glow-cyan {
  color: var(--text-primary);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}

[data-theme="dark"] .text-glow-gold {
  color: var(--text-primary);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
}

