/* Mobil Optimizasyon CSS */

/* PWA Install Button */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    background: #FFC61A;
    color: #1F1F1F;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mobil Navigasyon */
@media (max-width: 768px) {
    .navbar-header img {
        max-width: 80px !important;
        height: auto;
    }
    
    .dialog {
        padding: 15px;
        margin: 10px;
    }
    
    .dialog h4 {
        font-size: 1.2em;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Rezervasyon Formu Mobil */
@media (max-width: 768px) {
    .reservation-form {
        padding: 15px;
        margin: 10px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .form-section h4 {
        font-size: 1.1em;
    }
    
    .form-check-label {
        font-size: 0.9em;
    }
    
    .btn-group .btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* Admin Panel Mobil */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 10px;
    }
    
    .sidebar a {
        padding: 8px 15px;
        font-size: 14px;
    }
    
    .wrapper {
        padding: 10px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .stats-card {
        padding: 15px;
        margin-bottom: 10px;
    }
    
    .stats-card h4 {
        font-size: 1.5em;
    }
}

/* Touch Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .form-control {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .navbar a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .navbar-header img {
        max-width: 60px !important;
    }
    
    .dialog {
        padding: 10px;
    }
    
    .dialog h4 {
        font-size: 1em;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-header img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .install-button {
        background: #1F1F1F;
        color: #FFC61A;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .install-button {
        animation: none;
    }
    
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .install-button,
    .wtsp,
    .navbar,
    .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}
