﻿/* === Admin Page Styles ===*/
.sidebar .nav-link {
    padding: 10px;
    font-size: 18px;
    border-bottom: 1px solid white;
    border-top: 1px solid white;
}

    .sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }

.card {
    border-radius: 15px;
    transition: transform 0.2s ease-in-out;
}

    .card:hover {
        transform: scale(1.05);
    }


/* === Game Card Styles === */
.game-card {
    position: relative;
    width: 264px;
    height: 364px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    .game-card:hover {
        transform: scale(1.03);
    }

    .game-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }

/* === Game Info Overlay === */
.game-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    text-align: center;
    padding: 10px;
    transition: bottom 0.3s ease-in-out;
    border-radius: 0 0 10px 10px;
}

.game-card:hover .game-info {
    bottom: 0;
}

.game-info h6, .game-info p {
    margin: 0;
    font-size: 14px;
}

/* === Game Image === */
.game-image {
    width: 460px;
    height: 640px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* === Game Details === */
.game-details h2 {
    font-weight: bold;
}

.game-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: black;
}

.platform-badge {
    display: inline-block;
    background-color: #ececec;
    color: black;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 5px;
    font-size: 14px;
}

/* === Buttons === */
.btn-custom {
    transition: transform 0.2s ease-in-out;
}

    .btn-custom:hover {
        transform: scale(1.05);
    }

.nav-btn {
    border: 2px solid white;
    background: transparent;
    color: white;
    font-weight: bold;
    padding: 6px 16px;
    cursor: pointer;
}

    .nav-btn:hover {
        background: white;
        color: black;
    }

    .nav-btn::after {
        display: none !important;
    }

/* === Game Cover Header === */
.game-cover-header {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.overlay {
    height: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* === Navbar Styles === */
.navbar {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1050;
    min-width: 150px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown-menu-center {
    left: 50% !important;
    transform: translateX(-50%);
}

.dropdown-item {
    padding: 10px;
    font-weight: bold;
}

.dropdown-toggle::after {
    display: none !important;
}


/* === Swiper Styles === */
.mySwiper {
    position: relative;
    padding-bottom: 60px;
    overflow: hidden;
}

.swiper-slide {
    flex: 0 0 auto;
    width: auto;
}

/* === Miscellaneous === */
.fav-item, .btn {
    border-width: 2px;
}

.feedback-trix {
    height: 350px;
}

.discount-badge, .ribbon {
    position: absolute;
    padding: 5px 10px;
    font-weight: bold;
    border-radius: 5px;
    color: white;
}

.discount-badge {
    top: 10px;
    left: 10px;
    background: red;
}

.filter-box, .search-box, .sorting-box {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    opacity: 1;
    visibility: visible;
}

    .filter-box.d-none, .search-box.d-none, .sorting-box.d-none {
        opacity: 0;
        visibility: hidden;
    }

.ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 25px;
    background-color: #dc3545;
    color: white;
    text-align: center;
    line-height: 25px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    transform-origin: top right;
    z-index: 10;
}

.badge {
    background-color: #f8f9fa;
    color: black;
    transition: all 0.3s ease;
}

    .badge:hover {
        background-color: black;
        color: white;
        cursor: pointer;
    }

.table-responsive {
    overflow-x: auto;
}

#cardPaymentFields {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
}

.form-control {
    border-radius: 8px;
}

/* === Responsive Design === */
@media (max-width: 991px) {
    .navbar-nav {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

        .navbar-nav .nav-item {
            width: 100%;
            text-align: center;
        }

    .nav-item.dropdown {
        width: 100%;
    }

    .nav-item .dropdown-menu {
        text-align: center;
    }

    .nav-ctrl-btns {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

        .nav-ctrl-btns .nav-item {
            width: 30%;
            text-align: center;
        }

    .navbar-toggler {
        border: none;
        outline: none;
    }

    .navbar-collapse {
        padding: 10px;
    }

    .nav-btn, .btn-group {
        width: 100%;
        margin-top: 5px;
        text-align: center;
    }

        .btn-group .dropdown-menu {
            text-align: center;
        }

    .fav-item {
        width: 100%;
        text-align: center;
        display: block;
    }

    .game-cover-header {
        background-size: cover;
        background-position: center;
        height: 200px;
    }

        .game-cover-header .overlay {
            background: rgba(0, 0, 0, 0.5);
        }

    .nav-loginned-btn {
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .game-details {
        text-align: center;
        padding-top: 15px;
    }

    .game-image {
        width: 100%;
        height: auto;
        max-height: 320px;
        object-fit: contain;
    }

    .platform-badge {
        display: inline-block;
        font-size: 12px;
        padding: 4px 8px;
        margin: 2px;
    }

    .btn-lg {
        font-size: 1rem;
        padding: 8px 12px;
        margin-bottom: 5px;
    }

    .game-price {
        font-size: 1.5rem;
    }

    .game-cover-header {
        height: 200px;
    }

    .bg-dark.py-5 {
        padding: 1.5rem 0;
    }

    .display-4 {
        font-size: 1.8rem;
    }

    .lead {
        font-size: 1rem;
    }

    .table {
        font-size: 0.9rem;
    }

        .table th, .table td {
            padding: 0.5rem;
        }

        .table thead {
            font-size: 1rem;
        }

    .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}


@media (max-width: 576px) {
    .game-details h2 {
        font-size: 1.4rem;
    }

    .game-price {
        font-size: 1.3rem;
    }

    .btn-lg {
        font-size: 0.9rem;
        padding: 6px 10px;
    }

    .game-card {
        width: 100%;
        height: 200px;
    }

    .filter-box, .search-box, .sorting-box {
        padding: 10px;
        font-size: 14px;
    }

    .table-responsive {
        border: 0;
    }

    .table thead {
        display: none;
    }

    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        padding: 10px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .table td {
        display: block;
        text-align: right;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        border-bottom: 1px solid #eee;
    }

        .table td:last-child {
            border-bottom: 0;
        }

        .table td::before {
            content: attr(data-label);
            font-weight: bold;
            float: left;
            text-transform: uppercase;
            font-size: 0.85rem;
            color: #555;
        }
}

@media (max-width: 480px) {
    .game-cover-header {
        height: 150px;
    }

    .bg-dark.py-5 {
        padding: 1rem 0;
    }

    .display-4 {
        font-size: 1.5rem;
    }

    .lead {
        font-size: 0.9rem;
    }
}