/* Imprint - Clean Design System Implementation */
/* Self-contained CSS following Yugen design principles */
/* Only includes styles actually used by Imprint HTML */

/* ===== FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Bebas+Neue&display=swap');

/* ===== DESIGN SYSTEM VARIABLES ===== */
/* Only variables actually used by Imprint */
:root {
  /* TIER 1: Brand DNA - Core Yugen Brand */
  --yugen-emerald: #4a7c59;              /* Sacred brand color */
  
  /* Typography */
  --font-header: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  
  /* Font Sizes - Only used sizes */
  --text-sm: 0.875rem;     /* 14px - status text */
  --text-base: 1rem;       /* 16px - body text */
  --text-lg: 1.125rem;     /* 18px - icons */
  --text-xl: 1.25rem;      /* 20px - nav logo */
  --text-2xl: 1.5rem;      /* 24px - mobile title */
  --text-3xl: 1.875rem;    /* 30px - chat title */
  
  /* Spacing - Only used spacing */
  --space-sm: 0.5rem;      /* 8px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  
  /* Animation Timing */
  --transition-standard: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  
  /* Responsive Breakpoints */
  --breakpoint-mobile: 768px;
  
  /* TIER 2: Light Theme Colors (Imprint Default) */
  --bg-primary: #f5f5f5;              /* Main background */
  --bg-secondary: #f8f9fa;            /* Cards, footer */
  --text-primary: #2d2d2d;            /* Main text */
  --text-secondary: #495057;          /* Secondary text */
  --text-tertiary: #6c757d;           /* Muted text */
  --border-primary: #dee2e6;          /* Borders */
  
  /* TIER 3: Imprint-Specific Glassmorphism */
  --glass-bg: rgba(250, 250, 250, 0.85);
  --glass-bg-strong: rgba(250, 250, 250, 0.9);
  --glass-border: rgba(74, 124, 89, 0.15);
  --glass-shadow: 0 8px 32px rgba(74, 124, 89, 0.08);
  --glass-shadow-hover: 0 12px 40px rgba(74, 124, 89, 0.12);
  --glass-navbar: rgba(255, 255, 255, 0.95);
  
  /* Message Colors */
  --sent-msg-bg: var(--yugen-emerald);
  --sent-msg-text: #ffffff;
  --received-msg-bg: rgba(255, 255, 255, 0.7);
  --received-msg-text: var(--text-primary);
  --welcome-msg-bg: rgba(248, 249, 250, 0.8);
  
  /* Interactive States */
  --hover-bg: rgba(0, 0, 0, 0.05);
  --active-bg: rgba(0, 0, 0, 0.1);
  --focus-ring: rgba(74, 124, 89, 0.3);
  
  /* Shadow Effects */
  --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.15);
  
  /* Gradients */
  --gradient-footer: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f5f5f5 100%);
  
  /* Status Colors */
  --success: #28a745;
  --error: #dc3545;
}

/* Dark Theme Override */
[data-theme="dark"] {
  --bg-primary: #0a0a0a;              /* Dark background */
  --bg-secondary: #1a1a1a;            /* Dark cards, footer */
  --text-primary: #ffffff;             /* White text */
  --text-secondary: #cccccc;           /* Light gray text */
  --text-tertiary: #999999;            /* Muted text */
  --border-primary: #333333;           /* Dark borders */
  
  /* Dark Glassmorphism */
  --glass-bg: rgba(26, 26, 26, 0.8);
  --glass-bg-strong: rgba(26, 26, 26, 0.9);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-navbar: rgba(10, 10, 10, 0.95);
  --received-msg-bg: rgba(255, 255, 255, 0.1);
  --received-msg-text: var(--text-primary);
  --welcome-msg-bg: rgba(42, 42, 42, 0.8);
  
  /* Dark Interactive States */
  --hover-bg: rgba(255, 255, 255, 0.05);
  --active-bg: rgba(255, 255, 255, 0.1);
  --shadow-small: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.3);
  --shadow-large: 0 15px 35px rgba(0, 0, 0, 0.4);
  
  /* Dark Gradients */
  --gradient-footer: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, #0a0a0a 100%);
}

/* ===== BASE RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color var(--transition-standard), 
              color var(--transition-standard), 
              border-color var(--transition-standard);
}

html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  line-height: 1.4;
  position: relative;
}

/* Background System */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Default fallback background (low opacity) */
body.has-fallback-bg::before {
  background-image: url('/images/background.webp');
  opacity: 0.15;
}

/* Custom URL background */
body.has-custom-bg::before {
  opacity: 1;
}

/* Dark theme adjustments for background */
[data-theme="dark"] body.has-fallback-bg::before {
  opacity: 0.1;
}

[data-theme="dark"] body.has-custom-bg::before {
  opacity: 0.8;
}

/* ===== LOGIN PAGE STYLES ===== */
.login-page .container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 88px; /* Account for fixed navbar height */
}

.login-page .main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 2rem;
}

.login-form-container {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--space-xl);
  box-shadow: 
    0 12px 40px rgba(74, 124, 89, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  padding: 2rem;
  margin-top: 2rem;
}

/* Dark theme login container */
[data-theme="dark"] .login-form-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.login-welcome {
  text-align: center;
  margin-bottom: 2rem;
}

.login-welcome h2 {
  font-family: var(--font-header);
  font-size: var(--text-2xl);
  font-weight: var(--weight-light);
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-welcome p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}

.login-error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: var(--space-md);
  padding: 1rem;
  margin-bottom: 1.5rem;
  color: #dc3545;
  text-align: center;
  font-size: var(--text-sm);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-primary);
  border-radius: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  transition: all var(--transition-standard);
  outline: none;
}

.login-input:focus {
  border-color: var(--yugen-emerald);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.login-input::placeholder {
  color: var(--text-tertiary);
}

.login-button {
  width: 100%;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--space-md);
  background-color: var(--yugen-emerald);
  color: white;
  font-family: var(--font-header);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-standard);
  outline: none;
}

.login-button:hover {
  background-color: #3a6c49;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
}

.login-button:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 15px rgba(74, 124, 89, 0.3);
}

.login-button:disabled {
  background-color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== LAYOUT ===== */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: 88px; /* Account for fixed navbar height */
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  background: var(--glass-navbar);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-primary);
  transition: all var(--transition-standard);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-right {
  display: flex;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo {
  height: 40px;
  width: auto;
  transition: var(--transition-standard);
  outline: none;
  border-radius: 4px;
  padding: 4px;
  filter: none; /* Dark mode: keep logo white to match --text-primary */
}

/* Light mode: convert white logo to dark gray to match --text-primary */
[data-theme="light"] .logo {
  filter: brightness(0) saturate(100%) invert(13%) sepia(9%) saturate(1029%) hue-rotate(314deg) brightness(99%) contrast(86%);
}

.logo:hover,
.logo:focus {
  filter: drop-shadow(0 0 8px rgba(74, 124, 89, 0.4));
}

/* Light mode hover - maintain the color inversion plus glow effect */
[data-theme="light"] .logo:hover,
[data-theme="light"] .logo:focus {
  filter: brightness(0) saturate(100%) invert(13%) sepia(9%) saturate(1029%) hue-rotate(314deg) brightness(99%) contrast(86%) drop-shadow(0 0 8px rgba(74, 124, 89, 0.4));
}

.logo-text {
  font-family: var(--font-header);
  font-size: var(--text-xl);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.yugen-logo {
  font-family: var(--font-header);
  font-size: var(--text-xl);
  font-weight: var(--weight-normal);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: all var(--transition-standard);
}

.yugen-logo:hover {
  color: var(--yugen-emerald);
  text-shadow: 0 0 10px rgba(74, 124, 89, 0.3);
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: var(--glass-bg);
  border: 1px solid var(--border-primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-standard);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-secondary);
  outline: none;
}

.theme-toggle:hover {
  background: var(--hover-bg);
  border-color: var(--yugen-emerald);
  color: var(--yugen-emerald);
  transform: translateY(-1px);
  box-shadow: var(--shadow-small);
}

.theme-toggle:focus {
  outline: none;
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.theme-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transition: var(--transition-standard);
}

.theme-toggle:hover .theme-icon {
  transform: scale(1.1);
}

/* Floating theme toggle for desktop */
.floating-theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  display: block;
}

.floating-theme-toggle .theme-toggle {
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-primary);
}

.floating-theme-toggle .theme-toggle:hover {
  box-shadow: var(--shadow-large);
}

/* ===== HEADER SECTION ===== */
.header-section {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.chat-title {
  font-family: var(--font-header);
  font-size: var(--text-3xl);
  font-weight: var(--weight-light);
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.imprint-logo-large {
  height: 60px !important;
}

/* Dark mode: invert black logo to white */
[data-theme="dark"] .imprint-logo-large {
  filter: invert(1);
}

/* Light mode: keep original black color */
[data-theme="light"] .imprint-logo-large {
  filter: none;
}

.chat-subtitle {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== CHAT INTERFACE ===== */
.chat-container {
  width: 100%;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(1.8);
  -webkit-backdrop-filter: blur(30px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--space-xl);
  box-shadow: 
    0 12px 40px rgba(74, 124, 89, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all var(--transition-standard);
  position: relative;
}

/* Enhanced glass effect with subtle gradient overlay */
.chat-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  pointer-events: none;
}

/* Dark theme glass adjustments */
[data-theme="dark"] .chat-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

.messages-area {
  height: 400px;
  padding: var(--space-lg);
  overflow-y: auto;
  scroll-behavior: smooth;
  overflow-y: scroll;
}

.messages-area::-webkit-scrollbar {
  width: 6px;
}

.messages-area::-webkit-scrollbar-track {
  background: transparent;
}

.messages-area::-webkit-scrollbar-thumb {
  background: var(--yugen-emerald);
  border-radius: 3px;
  opacity: 0.5;
}

/* ===== MESSAGES ===== */
.message {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.5s ease-out;
}

.message.fade-out {
  animation: fadeOutUp 1s ease-out forwards;
}

.message-bubble {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--space-md);
  max-width: 85%;
  font-size: var(--text-base);
  line-height: 1.4;
}

.message.sent {
  text-align: right;
}

.message.sent .message-bubble {
  background-color: var(--sent-msg-bg);
  color: var(--sent-msg-text);
  margin-left: auto;
  border-bottom-right-radius: var(--space-sm);
}

.message.received .message-bubble {
  background-color: var(--received-msg-bg);
  color: var(--received-msg-text);
  border-bottom-left-radius: var(--space-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.message.welcome .message-bubble {
  background-color: var(--welcome-msg-bg);
  color: var(--text-secondary);
  text-align: center;
  border-radius: var(--space-md);
  font-style: italic;
  margin: 0 auto;
  max-width: 100%;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-size: var(--font-sm);
}

/* ===== INPUT AREA ===== */
.input-area {
  padding: var(--space-lg);
  border-top: 1px solid var(--glass-border);
}

.input-form {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.input-field {
  flex: 1;
  resize: none;
  min-height: 44px;
  max-height: 200px;
  padding: var(--space-md);
  border: 1px solid var(--border-primary);
  border-radius: var(--space-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  transition: all var(--transition-standard);
  outline: none;
  overflow-y: hidden;
}

/* Hide scrollbar for webkit browsers */
.input-field::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for Firefox */
.input-field {
  scrollbar-width: none;
}

.input-field:focus {
  border-color: var(--yugen-emerald);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.input-field::placeholder {
  color: var(--text-tertiary);
}

.submit-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  min-width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--space-md);
  background-color: var(--yugen-emerald);
  color: white;
  font-size: var(--text-base);
  cursor: pointer;
  transition: all var(--transition-standard);
  outline: none;
}

.submit-button:hover {
  background-color: #3a6c49;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 124, 89, 0.2);
}

.submit-button:focus {
  outline: none;
}

.submit-button:active {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 10px rgba(74, 124, 89, 0.3);
  background-color: #2d5a3a;
}

.submit-button:disabled {
  background-color: var(--text-tertiary);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== STATUS INDICATOR ===== */
.status-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--yugen-emerald);
  animation: pulse 1.5s infinite;
}

.status-dot.error {
  background-color: var(--error);
}

.status-dot.submitted {
  background-color: var(--success);
  animation: none; /* Stop pulsing for submitted status */
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gradient-footer);
  border-top: 1px solid var(--border-primary);
  padding: 1.5rem 0 1rem;
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.5px;
}

.footer-copyright a {
  color: var(--yugen-emerald);
  text-decoration: none;
  transition: color var(--transition-standard);
}

.footer-copyright a:hover {
  color: var(--text-secondary);
}

/* ===== INTERFACE DISABLED STATE ===== */
.interface-disabled {
  pointer-events: none;
  opacity: 0.7;
  transition: opacity var(--transition-slow);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOutUp {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .container {
    padding-top: 72px; /* Account for smaller mobile navbar */
  }
  
  .navbar {
    padding: 1rem;
  }
  
  .main-content {
    padding: var(--space-lg) var(--space-md);
  }
  
  .chat-container {
    border-radius: var(--space-lg);
  }
  
  .chat-title {
    font-size: var(--text-2xl);
  }
  
  .imprint-logo-large {
    height: 48px !important;
  }
  
  /* Mobile dark mode inversion */
  [data-theme="dark"] .imprint-logo-large {
    filter: invert(1);
  }
  
  .messages-area {
    height: 300px;
    padding: var(--space-md);
  }
  
  .message-bubble {
    max-width: 90%;
    padding: var(--space-sm) var(--space-md);
  }
  
  .input-area {
    padding: var(--space-md);
  }
  
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
  
  .theme-icon {
    width: 14px;
    height: 14px;
  }
  
  /* Keep theme toggle visible on mobile for Imprint (unlike main site) */
  .floating-theme-toggle {
    top: 15px;
    right: 15px;
  }
}

/* ===== WELCOME OVERLAY ===== */
.welcome-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 2.0s ease;
  pointer-events: auto;
}

.welcome-text {
  font-size: var(--font-2xl);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-family);
  line-height: 1.4;
  max-width: 80%;
  padding: 0 var(--space-md);
  opacity: 0;
  animation: fadeInText 2.0s ease-out forwards;
  animation-delay: 1s;
}

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

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

.welcome-overlay.fade-out {
  opacity: 0;
}

.welcome-text {
  font-size: var(--font-2xl);
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  font-family: var(--font-family);
  line-height: 1.4;
  max-width: 80%;
  padding: 0 var(--space-md);
}

/* Mobile responsiveness for welcome text */
@media (max-width: 768px) {
  .welcome-text {
    font-size: var(--font-xl);
    max-width: 90%;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !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;
}
