/* mobile-responsive.css - Responsive design and mobile optimization styles */

/* CSS Custom Properties for responsive design */
:root {
    --touch-target-size: 48px;
    --current-breakpoint: 'sm';
    --current-orientation: 'portrait';
    --animation-duration: 0.3s;
    
    /* Responsive spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Responsive font sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
}

/* Base responsive styles */
* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
}

/* Touch target optimization */
.touch-target,
button,
a,
input[type="button"],
input[type="submit"],
input[type="checkbox"],
input[type="radio"],
.clickable {
    min-height: var(--touch-target-size);
    min-width: var(--touch-target-size);
    position: relative;
}

.touch-optimized {
    padding: 8px !important;
    margin: 4px;
}

/* Ensure adequate spacing between touch targets */
.touch-target + .touch-target,
button + button,
a + a {
    margin-left: 8px;
}

/* Enhanced responsive breakpoints with device-specific optimizations */
@media (max-width: 320px) {
    :root {
        --current-breakpoint: 'xs';
        --touch-target-size: 56px; /* Larger for very small screens */
        --spacing-md: 0.75rem;
        --font-base: 0.875rem;
    }
    
    /* Ultra-small screen optimizations */
    .responsive-container {
        padding: 0 0.5rem;
    }
    
    .mobile-card {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
}

@media (min-width: 321px) and (max-width: 375px) {
    :root {
        --current-breakpoint: 'sm';
        --touch-target-size: 48px;
    }
    
    /* Standard mobile optimizations */
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 376px) and (max-width: 414px) {
    :root {
        --current-breakpoint: 'md';
        --touch-target-size: 44px;
    }
    
    /* Large mobile optimizations */
    .grid-responsive.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 415px) and (max-width: 768px) {
    :root {
        --current-breakpoint: 'lg';
        --touch-target-size: 44px;
        --spacing-md: 1.25rem;
    }
    
    /* Small tablet optimizations */
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-responsive.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    :root {
        --current-breakpoint: 'xl';
        --touch-target-size: 40px;
        --spacing-md: 1.5rem;
    }
    
    /* Tablet optimizations */
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .mobile-nav {
        display: none; /* Hide mobile nav on tablets */
    }
}

@media (min-width: 1025px) {
    :root {
        --current-breakpoint: 'xxl';
        --touch-target-size: 36px;
        --spacing-md: 2rem;
    }
    
    /* Desktop optimizations */
    .grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .step-indicator,
    .mobile-nav {
        display: none; /* Hide mobile UI on desktop */
    }
}

/* Orientation-specific styles */
.orientation-portrait {
    --header-height: 4rem;
    --footer-height: 5rem;
}

.orientation-landscape {
    --header-height: 3rem;
    --footer-height: 4rem;
}

/* Enhanced orientation-specific optimizations */
@media (orientation: landscape) and (max-height: 500px) {
    :root {
        --current-orientation: 'landscape';
        --spacing-md: 0.5rem;
        --font-base: 0.875rem;
        --header-height: 2.5rem;
        --footer-height: 3.5rem;
    }
    
    .step-indicator {
        padding: 0.5rem 1rem !important;
        height: var(--header-height);
    }
    
    .mobile-nav {
        padding: 0.5rem !important;
        height: var(--footer-height);
    }
    
    #appContainer {
        padding-top: var(--header-height) !important;
        padding-bottom: var(--footer-height) !important;
    }
    
    /* Optimize content for landscape */
    .mobile-card {
        padding: 0.75rem 1rem;
        margin-bottom: 0.5rem;
    }
    
    .demo-section {
        padding: 1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Compact form elements in landscape */
    input, textarea, select {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .btn-mobile {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (orientation: landscape) and (min-height: 501px) {
    :root {
        --current-orientation: 'landscape';
        --header-height: 3.5rem;
        --footer-height: 4.5rem;
    }
    
    /* Standard landscape optimizations for larger screens */
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (orientation: portrait) {
    :root {
        --current-orientation: 'portrait';
        --header-height: 4rem;
        --footer-height: 5rem;
    }
    
    /* Portrait-specific optimizations */
    .grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    /* Larger touch targets in portrait for easier one-handed use */
    .touch-target {
        min-height: calc(var(--touch-target-size) + 4px);
    }
}

/* Performance optimizations */
.reduced-motion * {
    animation-duration: 0.1s !important;
    transition-duration: 0.1s !important;
}

.slow-network img {
    filter: blur(1px);
    transition: filter 0.3s ease;
}

.slow-network img.loaded {
    filter: none;
}

.minimal-animations * {
    animation: none !important;
    transition: none !important;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive grid system */
.grid-responsive {
    display: grid;
    gap: var(--spacing-md);
}

@media (max-width: 414px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
    
    .grid-responsive.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 415px) and (max-width: 768px) {
    .grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-responsive.cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 769px) {
    .grid-responsive {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .grid-responsive.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive typography */
.text-responsive {
    font-size: var(--font-base);
    line-height: 1.5;
}

.text-responsive.text-sm {
    font-size: var(--font-sm);
}

.text-responsive.text-lg {
    font-size: var(--font-lg);
}

.text-responsive.text-xl {
    font-size: var(--font-xl);
}

.text-responsive.text-2xl {
    font-size: var(--font-2xl);
}

.text-responsive.text-3xl {
    font-size: var(--font-3xl);
}

/* Responsive spacing utilities */
.p-responsive {
    padding: var(--spacing-md);
}

.px-responsive {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.py-responsive {
    padding-top: var(--spacing-md);
    padding-bottom: var(--spacing-md);
}

.m-responsive {
    margin: var(--spacing-md);
}

.mx-responsive {
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
}

.my-responsive {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* Form optimizations for mobile */
input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
    -webkit-appearance: none;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #d1d5db;
    background-color: white;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Auto-expanding textarea */
.auto-expand {
    resize: none;
    overflow: hidden;
    min-height: 44px;
}

/* Mobile-optimized buttons */
.btn-mobile {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all var(--animation-duration) ease;
    min-height: var(--touch-target-size);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-mobile:active {
    transform: scale(0.98);
}

.btn-mobile:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Primary button */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Secondary button */
.btn-secondary {
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover:not(:disabled) {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* Danger button */
.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

/* Mobile-specific utilities */
.hide-on-mobile {
    display: none;
}

@media (min-width: 769px) {
    .hide-on-mobile {
        display: block;
    }
    
    .show-on-mobile {
        display: none;
    }
}

.show-on-mobile {
    display: block;
}

/* Landscape-specific utilities */
@media (orientation: landscape) {
    .hide-on-landscape {
        display: none;
    }
}

@media (orientation: portrait) {
    .hide-on-portrait {
        display: none;
    }
}

/* Safe area handling for devices with notches */
.safe-area-top {
    padding-top: env(safe-area-inset-top);
}

.safe-area-bottom {
    padding-bottom: env(safe-area-inset-bottom);
}

.safe-area-left {
    padding-left: env(safe-area-inset-left);
}

.safe-area-right {
    padding-right: env(safe-area-inset-right);
}

/* Scroll optimization */
.scroll-smooth {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Prevent horizontal scroll */
.no-horizontal-scroll {
    overflow-x: hidden;
    max-width: 100vw;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-color: #000000;
        --bg-color: #ffffff;
        --border-color: #000000;
    }
    
    body {
        color: var(--text-color);
        background-color: var(--bg-color);
    }
    
    button, input, textarea, select {
        border: 2px solid var(--border-color);
    }
}

/* Enhanced accessibility styles */
.touch-active {
    transform: scale(0.98);
    opacity: 0.8;
    transition: all 0.1s ease;
}

/* Voice input styles */
.voice-input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.voice-input-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    min-height: 32px;
    min-width: 32px;
    z-index: 10;
}

.voice-input-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.voice-input-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.voice-input-btn.voice-listening {
    color: #ef4444;
    animation: voicePulse 1s infinite;
}

@keyframes voicePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Required field indicators */
.required-indicator {
    color: #ef4444;
    font-weight: bold;
    margin-left: 2px;
}

/* Accessibility menu styles */
.accessibility-toggle-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.accessibility-toggle-btn:hover {
    background: #2563eb;
    transform: scale(1.05);
}

.accessibility-toggle-btn:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.accessibility-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    min-width: 200px;
}

.accessibility-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.accessibility-toggle {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: all 0.2s ease;
}

.accessibility-toggle:hover {
    background: #f3f4f6;
}

.accessibility-toggle:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.accessibility-toggle:last-child {
    margin-bottom: 0;
}

/* Enhanced focus indicators */
.focus-visible,
*:focus-visible {
    outline: 2px solid #3b82f6 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2) !important;
}

.focus-within {
    outline: 1px solid #3b82f6;
    outline-offset: 1px;
}

/* Skip links */
.skip-links {
    position: absolute;
    top: -100px;
    left: 0;
    z-index: 9999;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.skip-link:focus {
    top: 6px;
}

/* ARIA live regions */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* High contrast mode overrides */
.high-contrast-mode {
    --text-color: #000000 !important;
    --bg-color: #ffffff !important;
    --border-color: #000000 !important;
    --link-color: #0000ff !important;
    --button-bg: #ffffff !important;
    --button-text: #000000 !important;
    --button-border: #000000 !important;
}

.high-contrast-mode * {
    color: var(--text-color) !important;
    background-color: var(--bg-color) !important;
    border-color: var(--border-color) !important;
}

.high-contrast-mode button,
.high-contrast-mode input,
.high-contrast-mode select,
.high-contrast-mode textarea {
    background-color: var(--button-bg) !important;
    color: var(--button-text) !important;
    border: 2px solid var(--button-border) !important;
}

.high-contrast-mode a {
    color: var(--link-color) !important;
    text-decoration: underline !important;
}

.high-contrast-mode .gradient,
.high-contrast-mode [class*="gradient"] {
    background: var(--bg-color) !important;
}

.high-contrast-mode .accessibility-toggle-btn {
    background: var(--button-text) !important;
    color: var(--button-bg) !important;
    border: 2px solid var(--button-border) !important;
}

/* Touch target enhancements */
.touch-optimized {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 8px !important;
    margin: 4px !important;
    position: relative;
}

.touch-spacing {
    margin: 8px 4px !important;
}

.touch-target-enhanced::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    z-index: -1;
}

/* Reduced motion support */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.reduced-motion .voicePulse {
    animation: none !important;
}

.reduced-motion .accessibility-toggle-btn:hover {
    transform: none !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --border-color: #4b5563;
    }
    
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .bg-white {
        background-color: var(--bg-secondary) !important;
    }
    
    .text-gray-600 {
        color: var(--text-secondary) !important;
    }
    
    .border-gray-200 {
        border-color: var(--border-color) !important;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .step-indicator,
    .mobile-nav {
        display: none !important;
    }
}

/* Focus management for accessibility */
.focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3b82f6;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only content */
.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;
}

/* Animation classes */
.fade-in {
    animation: fadeIn var(--animation-duration) ease-in-out;
}

.slide-in-up {
    animation: slideInUp var(--animation-duration) ease-out;
}

.slide-in-right {
    animation: slideInRight var(--animation-duration) ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility classes for responsive behavior */
.responsive-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.responsive-grid {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.responsive-flex {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.responsive-flex > * {
    flex: 1;
    min-width: 280px;
}

/* Mobile-specific component styles */
.mobile-card {
    background: white;
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: var(--spacing-md);
}

.mobile-section {
    margin-bottom: var(--spacing-xl);
}

.mobile-section:last-child {
    margin-bottom: 0;
}

.mobile-divider {
    height: 1px;
    background: #e5e7eb;
    margin: var(--spacing-lg) 0;
}

/* Performance optimization classes */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Enhanced performance optimizations for slower devices */
.performance-optimized {
    contain: layout style paint;
    content-visibility: auto;
}

.performance-optimized img {
    content-visibility: auto;
    contain-intrinsic-size: 200px 150px;
}

/* Battery saving mode */
.battery-saver * {
    animation-play-state: paused !important;
    transition: none !important;
}

.battery-saver .gpu-accelerated {
    transform: none !important;
    will-change: auto !important;
}

/* Memory optimization */
.memory-optimized {
    contain: strict;
}

.memory-optimized img {
    loading: lazy;
    decoding: async;
}

/* Network-aware optimizations */
.slow-connection .lazy-load {
    background-image: none !important;
}

.slow-connection video {
    preload: none;
}

.slow-connection .non-critical {
    display: none;
}

/* 
============================================
   Browser Recommendation Banner
   ============================================ */

.browser-recommendation-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.banner-text strong {
    font-weight: 600;
}

.banner-text p {
    margin: 4px 0 0 0;
    opacity: 0.95;
}

.banner-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.banner-close:hover {
    background: rgba(255,255,255,0.3);
}

.banner-close:active {
    transform: scale(0.95);
}

/* Adjust app container when banner is visible */
body:has(.browser-recommendation-banner:not([style*="display: none"])) #appContainer {
    padding-top: 80px;
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .browser-recommendation-banner {
        padding: 10px 12px;
    }
    
    .banner-text {
        font-size: 13px;
    }
    
    .banner-icon {
        font-size: 20px;
    }
    
    body:has(.browser-recommendation-banner:not([style*="display: none"])) #appContainer {
        padding-top: 70px;
    }
}

/* ============================================
   Floating Action Buttons (FAB)
   ============================================ */

.fab-button {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.fab-button:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.fab-button:active {
    transform: translateY(0) scale(0.95);
}

/* ============================================
   Slide Up Animation
   ============================================ */

.animate-slide-up {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   iOS Safari Fixes
   ============================================ */

/* Fix 100vh issue on iOS */
:root {
    --app-height: 100vh;
}

@supports (-webkit-touch-callout: none) {
    :root {
        --app-height: -webkit-fill-available;
    }
}

.min-h-screen {
    min-height: var(--app-height);
}

/* Prevent zoom on input focus (iOS) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    font-size: 16px !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Touch target minimum size */
.touch-target {
    min-height: 44px;
    min-width: 44px;
}
