/* =========================================================
   GAME SLIDER
   public/css/game_slider.css
   ========================================================= */


/* Slider teljes card */
.game-slider-card {
    overflow: hidden;
    width: 100%;
}


/* Slider + bal/jobb nyíl */
.game-slider-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}


/* Görgethető mérkőzés terület */
.game-slider {
    display: flex;
    flex: 1;

    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-behavior: smooth;

    /* Firefox scrollbar elrejtése */
    scrollbar-width: none;

    /* Internet Explorer / régebbi Edge */
    -ms-overflow-style: none;
}


/* Chrome / Edge / Safari scrollbar elrejtése */
.game-slider::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   EGY MÉRKŐZÉS
   ========================================================= */

.game-slider-item {
    flex: 0 0 230px;
    min-width: 230px;
    max-width: 230px;

    padding: 10px 12px;

    background: #ffffff;

    border-right: 1px solid #dee2e6;

    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}


/* Utolsó mérkőzésnél is maradhat a vonal,
   de ha nem akarod, ezt lehet használni:

.game-slider-item:last-child {
    border-right: 0;
}
*/


/* Kattintható mérkőzés */
.game-slider-clickable {
    cursor: pointer;
}


/* Hover */
.game-slider-clickable:hover {
    background: #f1f5f8;
}


/* =========================================================
   FEJLÉC
   DÁTUM + IDŐ + GAME NO
   ========================================================= */

.game-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    margin-bottom: 8px;

    min-width: 0;
}


/* Dátum + idő */
.game-date-time {
    font-size: 12px;
    line-height: 1.2;

    color: #212529;

    white-space: nowrap;
}


/* Idő bold */
.game-date-time strong {
    font-weight: 700;
}


/* Game number */
.game-no {
    font-size: 10px;
    line-height: 1.2;

    color: #78909c;

    white-space: nowrap;

    flex-shrink: 0;
}


/* =========================================================
   CSAPAT SOR
   ========================================================= */

.game-team {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 8px;

    width: 100%;
    min-width: 0;

    margin-bottom: 5px;
}


/* Logo + csapatnév */
.game-team-name {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;

    flex: 1;
}


/* Csapat logo */
.game-team-logo {
    width: 26px;
    height: 26px;

    object-fit: contain;

    flex-shrink: 0;
}


/* Csapatnév */
.game-team-name span {
    display: block;

    min-width: 0;

    font-size: 12px;
    font-weight: 600;

    line-height: 1.2;

    color: #212529;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   EREDMÉNY
   ========================================================= */

.game-score {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 28px;

    margin-left: 8px;
    padding-left: 8px;

    border-left: 2px solid #adb5bd;

    background: transparent;
    color: #212529;

    border-radius: 0;

    font-size: 18px;
    font-weight: 800;
    line-height: 1;

    flex-shrink: 0;
}


/* =========================================================
   EVENT / CHAMPIONSHIP
   ========================================================= */

.game-slider-footer {
    margin-top: 7px;

    font-size: 10px;
    line-height: 1.2;

    color: #78909c;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* =========================================================
   BAL / JOBB NYÍL
   ========================================================= */

.game-slider-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    min-width: 40px;
    flex: 0 0 40px;

    padding: 0;

    border: 0;
    border-radius: 0;

    background: #f8f9fa;

    color: #607d8b;

    font-size: 30px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 5;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}


/* Nyíl hover */
.game-slider-arrow:hover {
    background: #e9ecef;
    color: #263238;
}


/* Nyíl kattintás */
.game-slider-arrow:active {
    background: #dee2e6;
}


/* Focus keret */
.game-slider-arrow:focus {
    outline: none;
}


/* =========================================================
   RESPONSIVE
   TABLET
   ========================================================= */

@media (max-width: 992px) {

    .game-slider-item {
        flex-basis: 220px;
        min-width: 220px;
        max-width: 220px;
    }

    .game-slider-arrow {
        width: 35px;
        min-width: 35px;
        flex-basis: 35px;

        font-size: 27px;
    }

}


/* =========================================================
   RESPONSIVE
   MOBIL
   ========================================================= */

@media (max-width: 576px) {

    .game-slider-item {
        flex-basis: 205px;
        min-width: 205px;
        max-width: 205px;

        padding: 8px 10px;
    }

    .game-slider-arrow {
        width: 30px;
        min-width: 30px;
        flex-basis: 30px;

        font-size: 24px;
    }

    .game-date-time {
        font-size: 11px;
    }

    .game-no {
        font-size: 9px;
    }

    .game-team-logo {
        width: 23px;
        height: 23px;
    }

    .game-team-name span {
        font-size: 11px;
    }

    .game-score {
        min-width: 23px;
        height: 23px;

        font-size: 13px;
    }

    .game-slider-footer {
        font-size: 9px;
    }

}


/* =========================================================
   GAME SLIDER - MODE SELECTOR
   ========================================================= */

   .game-slider-mode-icons {
        flex: 0 0 44px;
        width: 44px;

        display: flex;
        flex-direction: column;
        justify-content: center;

        gap: 4px;

        padding: 5px;

        background: #f8f9fa;

        border-left: 1px solid #dee2e6;
    }

    .game-slider-mode-icon-btn {
        width: 32px;
        height: 28px;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 0;

        border: 1px solid #dee2e6;
        border-radius: 5px;

        background: #ffffff;
        color: #495057;

        font-size: 14px;

        cursor: pointer;

        transition:
            background-color 0.15s ease,
            border-color 0.15s ease,
            color 0.15s ease;
    }

    .game-slider-mode-icon-btn:hover {
        background: #e9ecef;
    }

    .game-slider-mode-icon-btn.active {
        background: #0d6efd;
        border-color: #0d6efd;
        color: #ffffff;
    }

    .game-slider-mode-icon-btn.active:hover {
        background: #0b5ed7;
        border-color: #0a58ca;
    }