/* Theme Variables for Flicker Web App */
:root {
  /* Colors */
  --color-primary: #ec4899;
  --color-secondary: #f43f5e;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-primary: #1f2937;
  --color-text-secondary: #6b7280;
  --color-error: #ef4444;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  --color-overlay: rgba(0, 0, 0, 0.7);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  
  --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;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
}

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

html {
  height: 100%;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  /* Use CSS custom property set by JavaScript as fallback */
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  position: fixed;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text-primary);
  background: var(--gradient-primary);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
  height: 100dvh; /* Dynamic viewport height for mobile browsers */
  /* Use CSS custom property set by JavaScript as fallback */
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
  position: fixed;
  width: 100%;
  -webkit-overflow-scrolling: touch;
}

/* Allow temporary scrolling on mobile to trigger browser header hide */
@media (max-width: 768px) {
  html.hiding-header,
  body.hiding-header {
    overflow: auto !important;
    position: relative !important;
    height: auto !important;
  }
  
  html.hiding-header {
    min-height: 101vh; /* Slightly taller to allow scroll */
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea {
  font-family: inherit;
}

