/* mobile.css - Teljes oldali optimalizálás */

@media (max-width: 768px) {
    /* 1. NAVIGÁCIÓ (Navbar) javítása */
    nav, .navbar, header {
        flex-wrap: wrap !important;
        height: auto !important;
        padding: 10px !important;
        justify-content: center !important;
    }

    /* A menüpontok ne egymás mellett, hanem egymás alatt/kisebb csoportban legyenek */
    .nav-links, .menu {
        display: flex !important;
        overflow-x: auto !important; /* Görgethető legyen, ha nem fér el */
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 10px 0 !important;
        gap: 15px !important;
        -webkit-overflow-scrolling: touch;
    }

    .nav-item, .nav-links a {
        font-size: 0.8rem !important;
        white-space: nowrap !important; /* Ne törje szét a szavakat */
    }

    /* 2. MODAL / ÚJ PIAC ABLAK javítása */
    /* Ez az, ami a képeden el van csúszva */
    .modal-content, .modal-body, .create-market-form {
        width: 95% !important;
        max-width: none !important;
        margin: 10px auto !important;
        padding: 15px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        position: relative !important;
    }

    /* Bemeneti mezők (inputok) mobilon */
    input, select, textarea {
        width: 100% !important;
        font-size: 16px !important; /* Megakadályozza az iOS automatikus zoomolását */
        box-sizing: border-box !important;
    }

    /* 3. GRID ÉS KÁRTYÁK */
    .market-grid, .container {
        display: block !important; /* Egymás alá kerülnek */
        width: 100% !important;
        padding: 10px !important;
    }

    .card, .market-item {
        width: 100% !important;
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 4. GOMBOK */
    .btn, button {
        width: 100% !important; /* Mobilon kényelmesebb a teljes szélességű gomb */
        margin-bottom: 10px !important;
    }

    /* 5. FOGADÓSZELVÉNY (amit az előbb írtunk) */
    #bet-slip {
        width: 100% !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        position: fixed !important;
    }
}
