/* CSS Variables and Base Styles */
:root {
    --primary-color: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --primary-glow: rgba(16, 185, 129, 0.4);
    --secondary-color: #3B82F6;
    --accent-color: #8B5CF6;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --background-primary: #FFFFFF;
    --background-secondary: #F9FAFB;
    --background-tertiary: #F3F4F6;
    --surface-primary: rgba(255, 255, 255, 0.85);
    --surface-secondary: rgba(255, 255, 255, 0.92);
    --surface-tertiary: rgba(255, 255, 255, 0.97);
    --text-primary: #111827;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(16, 185, 129, 0.3);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-light: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-heavy: 0 30px 80px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 60px rgba(16, 185, 129, 0.2);
    --shadow-glow-strong: 0 0 80px rgba(16, 185, 129, 0.35);
    --blur-light: blur(16px);
    --blur-medium: blur(32px);
    --blur-heavy: blur(48px);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#app {
    min-height: 100vh;
    position: relative;
}

/* Background Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 50% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 30%),
        radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.03) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
    animation: liquidFloat 20s ease-in-out infinite;
}

@keyframes liquidFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-10px, -15px) scale(1.02); }
    50% { transform: translate(10px, -10px) scale(0.98); }
    75% { transform: translate(-5px, 10px) scale(1.01); }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(16, 185, 129, 0.02) 0%, transparent 25%),
        linear-gradient(225deg, rgba(59, 130, 246, 0.015) 0%, transparent 25%),
        linear-gradient(315deg, rgba(139, 92, 246, 0.015) 0%, transparent 25%);
    pointer-events: none;
    z-index: 0;
    animation: liquidShimmer 15s linear infinite;
}

@keyframes liquidShimmer {
    0% { opacity: 0.2; transform: translateX(-100%) translateY(-100%); }
    50% { opacity: 0.4; transform: translateX(0%) translateY(0%); }
    100% { opacity: 0.2; transform: translateX(100%) translateY(100%); }
}

/* Screens */
.screen {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glass Cards */
.glass-card {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.85) 50%, 
        rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: var(--blur-medium);
    -webkit-backdrop-filter: var(--blur-medium);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 24px;
    box-shadow: 
        var(--shadow-light),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.8),
        0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(16, 185, 129, 0.08) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        var(--shadow-heavy),
        var(--shadow-glow-strong),
        inset 0 1px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.9),
        0 4px 20px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.25);
}
