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

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100vh;
    height: -webkit-fill-available;
}

.cursor-ew-resize {
    cursor: ew-resize;
}

#beforeImage {
    clip-path: inset(0 0 0 90%);
}

/* SwiftUI-style gradients */
.gradient-text-black {
    background: linear-gradient(180deg, #000000 0%, #3C3C3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-green {
    background: linear-gradient(180deg, #22C55E 0%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gray {
    background: linear-gradient(180deg, #6B7280 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-bg-green {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.gradient-bg-black {
    background: linear-gradient(135deg, #000000 0%, #3C3C3C 100%);
}

/* Label badges */
.label-badge {
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
    color: white;
    padding: 6px 12px;
    border-radius: 9999px;
    display: inline-block;
}

/* Slider styles */
.shadow-slider {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.08);
}

.slider-handle {
    width: 36px;
    height: 36px;
    background: #F3F4F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
}

.slider-handle:hover {
    transform: scale(1.05);
}

.slider-handle.dragging {
    transform: scale(1.1);
}

/* Text styles matching iOS */
h1 {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
}

p {
    font-weight: 500;
    letter-spacing: -0.01em;
}

.min-h-screen {
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

@supports (-webkit-touch-callout: none) {
    .min-h-screen {
        min-height: -webkit-fill-available;
    }
}

/* Smooth transitions */
* {
    -webkit-tap-highlight-color: transparent;
}

a {
    -webkit-touch-callout: none;
}

/* Mobile optimizations */
@media (max-width: 640px) {
    h1 {
        font-size: 28px;
    }
    
    .label-badge {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    #beforeAfterContainer {
        max-width: 320px;
    }
    
    .slider-handle {
        width: 32px;
        height: 32px;
    }
    
    .slider-handle svg {
        width: 9px;
        height: 9px;
    }
}

/* Prevent pull-to-refresh on mobile */
body {
    overscroll-behavior-y: none;
}

/* Improve touch responsiveness */
#beforeAfterContainer {
    touch-action: pan-y pinch-zoom;
}

#sliderHandle {
    touch-action: none;
}