/**
 * mobile-fix.css - Poprawki specyficzne dla urządzeń mobilnych
 */

/* Zapobieganie zoom przy podwójnym tap */
* {
    touch-action: manipulation;
}

button, a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

/* Poprawki dla iOS Safari */
@supports (-webkit-touch-callout: none) {
    button, .btn, .nav-link {
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }
    
    input, textarea, p, h1, h2, h3, h4, h5, h6 {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Zapobieganie przewijaniu poziomemu */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Poprawki dla viewport na mobile */
@media screen and (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Zapobieganie przewijaniu podczas otwartego menu */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    /* Poprawki dla przycisków na mobile */
    button, .btn {
        min-height: 44px; /* Minimalna wysokość dla łatwego kliknięcia */
        min-width: 44px;
    }
    
    /* Poprawki dla linków */
    a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* Poprawki dla bardzo małych ekranów */
@media screen and (max-width: 360px) {
    .header-container {
        padding: 0.5rem;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .site-tagline {
        font-size: 0.75rem;
    }
}

/* Poprawki dla landscape na mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .main-navigation.nav-open {
        padding-top: 60px;
    }
}

