/* Plik: gamesList.css - Wersja ostateczna z poprawką marginesów */

/* --- Style dla Ekranu Wyboru Gry --- */

.game-card {
    max-width: 450px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.game-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.game-title {
    font-size: 22px;
    color: #ffffff;
    margin: 10px 0;
    margin-top: 10px;
    width: 70%;
    place-self: anchor-center;
    justify-self: center;
    text-align: center;
}



.game-details {
       place-self: anchor-center;
    justify-self: center;
    text-align: center;
}



.game-date,
.game-time,
.game-status {
    font-size: 18px;
    color: #ffffff;
    margin: 5px 0;
}


/**
 * ZMODYFIKOWANY STYL NAWIGACJI
 * Usunięto `justify-content: space-between`.
 * Rozmieszczenie strzałek będzie kontrolowane przez ich marginesy.
 */
.game-navigation {
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 0; /* Usunięto padding boczny */
        top: 40px;
            height: 0px;
}

/**
 * ZMODYFIKOWANE STYLE STRZAŁEK
 * Używamy marginesów, aby precyzyjnie kontrolować ich pozycję.
 */
.navigation-arrow {
    width: 50px;
    height: 50px;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 50px;
}

.navigation-arrow.left {
    margin-right: auto;  /* Automatyczny prawy margines "wypycha" strzałkę w prawo */
    margin-left: 0px;   /* Stały lewy margines odsuwa od krawędzi */
}

.navigation-arrow.right {
    margin-left: auto;   /* Automatyczny lewy margines "wypycha" strzałkę w lewo */
    margin-right: 0px;  /* Stały prawy margines odsuwa od krawędzi */
}


/* --- Pozostałe style (bez zmian) --- */

.game-description {
    font-size: 0.9em;
    color: #fff;
    margin: 10px 20px;
    padding: 0;
    min-height: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    text-align: left; /* Justify to the left */
}

.game-price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    gap: 10px;
}

.cart-icon {
    width: 35px;
    height: 35px;
}

.game-price {
    font-weight: bold;
    color: #ffdd57;
    font-size: 35px;
    margin: 0;
}

.game-purchase-status {
    color: #2ecc71;
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    padding: 5px 10px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 8px;
    border: 1px solid #2ecc71;
}

#gamesList,
#gameFormModal {
    display: none;
}

#mapTitle {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-align: left; /* Justify to the left */
    padding-left: 20px; /* Add padding for alignment */
}

#map {
    height: 180px;
    width: 90%;
    margin: 0 auto;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    z-index: 0; /* Ważne dla poprawnego działania Leaflet */
}

.game-distance {
    font-size: 1em;
    color: #ffdd57; /* Złoty kolor dla wyróżnienia */
    font-weight: bold;
    margin: 10px 0 5px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    min-height: 20px; /* Zapobiega "skakaniu" layoutu */
    text-align: left; /* Justify to the left */
    padding-left: 20px; /* Add padding for alignment */
}

/* New styles for headings and date/time */
.section-title {
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    text-align: left;
    padding-left: 20px;
}

.game-start-end-time,
.game-duration {
    font-size: 0.9em;
    color: #fff;
    margin: 5px 20px;
    padding: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    text-align: left;
}