/* ===================================
   THEME - RED & WHITE (with Dark Mode)
   =================================== */
/* ===================================
   THEME - RED & WHITE (with Dark Mode)
   =================================== */
:root {
  /* ===================================
     BASE PALETTE - Light Mode
     =================================== */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #000000;
  --text-muted: #666666;
  
  /* ===================================
     PRIMARY RED PALETTE
     =================================== */
  --red-50: #FFF5F3;
  --red-500: #F18C8E;  /* Primary brand color */
  --red-600: #DC2626;
  
  /* ===================================
     SEMANTIC COLORS
     =================================== */
  --primary: var(--red-500);
  --primary-hover: var(--red-600);
  --accent: var(--red-500);
  --accent-hover: var(--red-600);
  
  --success: #15803D;
  --success-hover: #166534;
  --warning: #D97706;
  --warning-hover: #B45309;
  --error: var(--red-600);
  --error-hover: var(--red-700);
  --info: #2563EB;
  --info-hover: #1D4ED8;
  
  /* ===================================
     NEUTRAL COLORS
     =================================== */
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  
  /* ===================================
     SYSTEM COLORS
     =================================== */
  --border: var(--gray-200);
  --divider: var(--gray-300);
  --hover: var(--red-50);
  --focus: var(--primary);
  --disabled: var(--gray-400);
  
  /* ===================================
     COMPONENT COLORS
     =================================== */
  --btn-primary-bg: var(--primary);
  --btn-secondary-bg: #F9FAFB;
  --btn-danger-bg: var(--error);
  
  --link: var(--primary);
  --link-hover: var(--primary-hover);
  
  /* ===================================
     OPACITY COLORS
     =================================== */
  --primary-opacity-10: rgba(232, 92, 65, 0.1);
  --primary-opacity-20: rgba(232, 92, 65, 0.2);
  --primary-opacity-30: rgba(232, 92, 65, 0.3);
  
  /* ===================================
     GRADIENTS
     =================================== */
  --gradient-primary: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
  --gradient-accent: linear-gradient(135deg, var(--red-500) 0%, #FF6B5B 100%);
  --gradient-success: linear-gradient(135deg, var(--success) 0%, var(--success-hover) 100%);
  --gradient-warning: linear-gradient(135deg, var(--warning) 0%, var(--warning-hover) 100%);
  --gradient-error: linear-gradient(135deg, var(--error) 0%, var(--error-hover) 100%);
  --gradient-surface: linear-gradient(135deg, var(--bg) 0%, var(--red-50) 100%);
  
  /* ===================================
     SHADOWS - Minimized for Performance
     =================================== */
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-xl: none;
  --shadow-2xl: none;
  --shadow-inner: none;
  --shadow-colored: none;
  
  /* ===================================
     TYPOGRAPHY
     =================================== */
  --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-family-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;
  
  /* ===================================
     SPACING
     =================================== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  
  /* Aliases for convenience */
  --space-xs: var(--space-1);
  --space-sm: var(--space-2);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);
  --space-3xl: var(--space-16);
  
  /* ===================================
     BORDER RADIUS
     =================================== */
  --radius-none: 0;
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;
  
  /* ===================================
     TRANSITIONS - Disabled for Performance
     =================================== */
  --transition-fast: 0s;
  --transition-normal: 0s;
  
  /* Status backgrounds */
  --success-bg: rgba(34, 197, 94, 0.1);
  --warning-bg: rgba(245, 158, 11, 0.1);
  --error-bg: rgba(239, 68, 68, 0.1);
  --info-bg: rgba(59, 130, 246, 0.1);
  
  /* ===================================
     Z-INDEX
     =================================== */
  --z-dropdown: 1020;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-header: 1030;
  --z-footer: 1010;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  --z-maximum: 9999;
  
  /* ===================================
     EFFECTS
     =================================== */
  --focus-ring: 0 0 0 2px var(--primary-opacity-20);
  --header-height: 64px;
  --border-width: 1px;
  
  /* ===================================
     LEGACY MAPPINGS (for backward compatibility)
     =================================== */
  --accent-primary: var(--primary);
  --text-secondary: var(--text-muted);
  --toast-success: var(--success);
  --toast-warning: var(--warning);
  --toast-error: var(--error);
  --toast-info: var(--info);
  
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-success: var(--success);
  --color-success-hover: var(--success-hover);
  --color-warning: var(--warning);
  --color-warning-hover: var(--warning-hover);
  --color-error: var(--error);
  --color-error-hover: var(--error-hover);
  --color-info: var(--info);
  --color-info-hover: var(--info-hover);
  
  --bg-primary: var(--bg);
  --bg-secondary: var(--surface);
  --bg-glass: rgba(255, 255, 255, 0.95);
  --bg-overlay: var(--primary-opacity-10);
  --bg-gradient: var(--gradient-surface);
  --bg-gradient-alt: linear-gradient(135deg, var(--surface) 0%, var(--border) 100%);
  
  --text-primary: var(--text);
  --text-secondary: var(--text-muted);
  --text-inverse: #ffffff;
  --text-disabled: var(--disabled);
  
  --border-color: var(--border);
  --border-focus: var(--focus);
  --border-error: var(--error);
  --border-success: var(--success);
  --border-warning: var(--warning);
}

/* ===================================
   THEME APPLICATION
   =================================== */
body {
  color: var(--text);
}

/* Glass effect - Disabled for Performance */
.glass {
  background: rgba(255, 255, 255, 0.95);
}

.glass-light {
  background: rgba(255, 255, 255, 0.8);
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ===================================
   SCROLLBAR - Simplified
   =================================== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* ===================================
   SCROLLBAR STABILIZER - Prevent layout shift
   =================================== */
html {
  scrollbar-gutter: stable; /* Reserve space for scrollbar */
}

/* Alternative for browsers that don't support scrollbar-gutter */
@supports not (scrollbar-gutter: stable) {
  html {
    margin-left: calc(100vw - 100%);
    margin-right: 0;
  }
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) var(--gray-100);
}

/* ===================================
   FOOTER - Global Styles
   =================================== */
.footer {
  background: #f8f9fa;
  border-top: 2px solid #e5e7eb;
  padding: 1rem 0;
  color: var(--text);
  position: relative;
  z-index: var(--z-footer);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 0 var(--space-5);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-4);
  }
  
  .footer-text {
    flex-direction: column;
    gap: var(--space-2);
  }
  
  .footer-link {
    width: 48px;
    height: 48px;
  }
}

.footer-left {
  flex: 1;
}

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

.footer-links {
  display: flex;
  gap: var(--space-3);
}

.footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
}

.footer-link:hover {
  color: var(--accent-primary);
  background: rgba(241, 140, 142, 0.1);
}

.footer-link:focus {
  outline: none;
  outline-offset: 0;
}

.footer-link i {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-link:hover i {
  color: var(--accent-primary);
}

.footer-text {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--font-weight-medium);
}

.footer-text .fa-heart {
  color: var(--accent-primary);
  font-size: var(--font-size-base);
}

.footer-version {
  color: #6C757D;
  font-size: var(--font-size-xs);
  background: #F8F9FA;
  padding: 4px 10px;
  margin-left: var(--space-3);
  border: 1px solid #E9ECEF;
  border-radius: 0;
  font-weight: 600;
  transition: all 0.2s ease;
}

.footer:hover .footer-version {
  background: var(--red-500);
  color: white;
  border-color: var(--red-500);
}


