📱 anasayfa.css - Full Mobile Responsive Update

/* Mobile-First Approach - Base styles for mobile */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: manipulation;
}

/* Prevent iOS zoom on input focus */
input, select, textarea {
    font-size: 16px !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hero Section Mobile First */
.hero-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #0f4c75 50%, #3282b8 75%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    display: flex;
    align-items: center;
    padding: 1rem;
}

/* Mobile Search Form Container */
.modern-search-form {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.3);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

/* Mobile SEO Headers */
#slogan {
    font-size: clamp(1.75rem, 5vw, 4rem) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    padding: 0 0.5rem !important;
    word-wrap: break-word !important;
    background: linear-gradient(135deg, #ffffff 0%, #fbbf24 25%, #ffffff 50%, #60a5fa 75%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s ease-in-out infinite;
}

#subslogan {
    font-size: clamp(1rem, 3vw, 1.75rem) !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto 1.5rem !important;
    line-height: 1.4 !important;
    padding: 0 1rem !important;
    word-wrap: break-word !important;
}

/* Trip Type Toggle Mobile */
.trip-type-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    width: 100%;
    position: relative;
}

.trip-type-option {
    flex: 1;
    position: relative;
}

.trip-type-option label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border-radius: 8px;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile Form Grid */
.modern-form-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.modern-form-group {
    width: 100%;
    position: relative;
}

.modern-form-control,
.passenger-display,
.date-display {
    width: 100%;
    padding: 14px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px !important; /* Prevent zoom on iOS */
    background: white;
    color: #1f2937;
    min-height: 52px;
    -webkit-appearance: none;
    touch-action: manipulation;
}

/* Mobile Passenger Dropdown */
.passenger-dropdown-content {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-height: 70vh !important;
    background: white;
    border-radius: 20px 20px 0 0 !important;
    padding: 1rem !important;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2) !important;
    z-index: 9999 !important;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.passenger-dropdown-content.show {
    transform: translateY(0);
}

/* Add close handle for mobile */
.passenger-dropdown-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

/* Mobile Calendar Modal */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.calendar-modal.show {
    display: flex;
}

.calendar-content {
    background: white;
    backdrop-filter: blur(24px);
    border-radius: 24px 24px 0 0;
    padding: 1.5rem 1rem;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    animation: slideUpMobile 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile Calendar Grid */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    padding: 0.5rem 0;
}

.calendar-day {
    aspect-ratio: 1;
    min-height: 44px;
    font-size: 0.875rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid transparent;
    position: relative;
}

/* Mobile Touch-Friendly Buttons */
.counter-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
    font-weight: bold;
    color: #374151;
    touch-action: manipulation;
}

.counter-btn:active:not(:disabled) {
    transform: scale(0.95);
    background: #f1f5f9;
}

/* Mobile Search Button */
.modern-search-btn {
    width: 100%;
    height: 56px;
    min-height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 0 24px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    touch-action: manipulation;
    margin-top: 1rem;
}

.modern-search-btn:active {
    transform: scale(0.98);
}

/* Mobile Route Suggestions */
.route-suggestions {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(147, 51, 234, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.route-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.route-item {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    touch-action: manipulation;
}

.route-item:active {
    transform: scale(0.95);
    background: #f0f9ff;
}

/* Mobile Cards */
.destination-card-modern,
.feature-card-modern,
.step-card-modern {
    width: 100%;
    margin-bottom: 1rem;
    touch-action: manipulation;
}

/* Mobile Grids */
.modern-grid-2,
.modern-grid-3,
.modern-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

/* Section Padding Mobile */
.section-padding {
    padding: 2rem 1rem;
}

.container {
    padding: 0 1rem;
    width: 100%;
}

/* Hide floating elements on mobile for performance */
.floating-elements {
    display: none;
}

/* Responsive breakpoints - Tablet */
@media (min-width: 640px) {
    .modern-search-form {
        padding: 2rem;
    }
    
    .modern-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
    
    .route-list {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .floating-elements {
        display: block;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .hero-gradient {
        min-height: 100vh;
        padding: 2rem;
    }
    
    .modern-search-form {
        max-width: 1200px;
        padding: 2.5rem;
        border-radius: 20px;
    }
    
    .modern-form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1.5rem;
    }
    
    .modern-form-grid > *:last-child {
        grid-column: span 3;
    }
    
    .passenger-dropdown-content {
        position: absolute !important;
        bottom: auto !important;
        top: calc(100% + 8px) !important;
        left: 0 !important;
        right: 0 !important;
        width: auto !important;
        max-height: none !important;
        border-radius: 16px !important;
        transform: none;
        box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
    }
    
    .calendar-modal {
        align-items: center;
    }
    
    .calendar-content {
        border-radius: 28px;
        max-width: 480px;
        max-height: none;
        animation: slideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
    
    .modern-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .modern-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #slogan {
        font-size: 3rem !important;
    }
    
    #subslogan {
        font-size: 1.5rem !important;
        max-width: 1000px !important;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .modern-form-grid {
        grid-template-columns: repeat(5, 1fr) auto;
        gap: 1.5rem;
    }
    
    .modern-form-grid > *:last-child {
        grid-column: auto;
    }
    
    .modern-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .modern-search-btn {
        width: auto;
        min-width: 140px;
        margin-top: 0;
    }
    
    #slogan {
        font-size: 4rem !important;
    }
    
    #subslogan {
        font-size: 1.75rem !important;
    }
    
    .route-list {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* PWA Support */
@media (display-mode: standalone) {
    .hero-gradient {
        padding-top: env(safe-area-inset-top);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .calendar-content,
    .passenger-dropdown-content {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
    .modern-form-control,
    .passenger-display,
    .date-display {
        -webkit-appearance: none;
        font-size: 16px !important;
    }
    
    input[type="date"] {
        min-height: 52px;
        font-size: 16px !important;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Loading State Mobile */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States Mobile */
.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    padding: 0.5rem;
    background: #fef2f2;
    border-radius: 8px;
    display: none;
}

.error-message.show {
    display: block;
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Accessibility Improvements */
:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 2px;
}

.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;
}

/* Performance Optimizations */
.will-transform {
    will-change: transform;
}

.gpu-accelerated {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-search-form {
        background: rgba(30, 41, 59, 0.98);
        border-color: rgba(75, 85, 99, 0.3);
    }
    
    .modern-form-control,
    .passenger-display,
    .date-display {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }
    
    .calendar-content,
    .passenger-dropdown-content {
        background: #1e293b;
        color: #e2e8f0;
    }
}

/* Print Styles */
@media print {
    .hero-gradient {
        min-height: auto;
        background: none;
    }
    
    .floating-elements,
    .modern-search-btn,
    .route-suggestions {
        display: none;
    }
}