/* Custom Styles for MMGameHub */

.hero-slider {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 3rem;
}

.swiper-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
}

.slide-content {
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.swiper-button-next,
.swiper-button-prev {
    color: #0d6efd !important;
}

.swiper-pagination-bullet-active {
    background: #0d6efd !important;
}

.hero-slider .swiper-slide.intro-slide {
    background-image: url('../images/lpg-play-banner.webp');
    background-size: cover;
    background-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-slider {
        height: 350px;
    }
}

/* Base Overrides for Dark Theme */
.card.bg-dark {
    background-color: #111 !important;
    border-color: #333 !important;
}

.premium-label {
    color: #4da3ff;
    /* Bright Cyan-Blue for visibility */
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(77, 163, 255, 0.3);
    margin-bottom: 2px;
}

#emulator-container {
    background: #000;
    margin-top: 2rem;
    position: relative;
}

#emulator-container #game-canvas,
#emulator-container .ejs_parent {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: #111;
}

.rom-description {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content.bg-black {
    background-color: #000 !important;
    border: 1px solid #333;
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.4);
}

/* Utilities */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-width: 1px;
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #0d6efd !important;
    box-shadow: 0 10px 30px rgba(13, 110, 253, 0.3) !important;
    z-index: 5;
}

.hover-lift .card-img-container img {
    transition: transform 0.5s ease;
}

.hover-lift:hover .card-img-container img {
    transform: scale(1.1);
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.25;
    height: 2.5em;
    /* Guarantee 2 lines of space */
}

/* Image Utilities */
.object-fit-cover {
    object-fit: cover;
}

.object-fit-contain {
    object-fit: contain;
}

.card-img-container {
    height: 180px;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* overflow: hidden; */
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.card-img-container img {
    max-width: 100%;
    max-height: 100%;
}

/* 5 Column Grid Utility */
@media (min-width: 1200px) {
    .row-cols-xl-5>* {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Native Bootstrap Pagination Color Overrides */
.page-link {
    background-color: #111 !important;
    border-color: #333 !important;
    color: #fff !important;
}

.page-link:hover {
    background-color: #222 !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
}

.page-item.active .page-link {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

.page-item.disabled .page-link {
    background-color: #0a0a0a !important;
    border-color: #222 !important;
    color: #444 !important;
}

.dropdown-item {
    color: #fff !important;
}

.dropdown-item:hover {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* Home Page */
.home h5.card-title {
    margin-bottom: 25px;
    color: #ff9300;
}