/* File: assets/css/ejs-hero-slide.css */

.ejs-hero-slide-container {
    position: relative;
	aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Background Video */
.ejs-hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ejs-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ejs-hero-video.loaded {
    opacity: 1;
}

.ejs-hero-fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #333;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ejs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.6) 25%,
        rgba(0, 0, 0, 0.4) 60%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Featured Game Content */
.ejs-hero-featured {
    position: relative;
    z-index: 10;
    padding: 40px 25px;
    color: white;
    flex: 1;
    display: flex;
    transition: all 0.3s ease;
}

.ejs-hero-featured-content {
    max-width: 600px;
}

.ejs-hero-rating {
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.ejs-hero-rating .fas.fa-star {
    color: #ffd700;
    font-size: 18px;
    margin-right: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: color 0.3s ease;
}

.ejs-hero-rating .fas.fa-star:not(.active) {
    color: rgba(255, 255, 255, 0.3);
}

.ejs-hero-genre {
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.ejs-genre-tag,
.ejs-system-tag {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    transition: all 0.3s ease;
}

.ejs-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.1;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.ejs-hero-cta {
    display: inline-flex;
    align-items: center;
    background: #1a9fff;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.4);
    border: 2px solid transparent;
}

.ejs-hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 124, 186, 0.6);
    background: #333;
    color: white;
    text-decoration: none;
}

/* Games Slider */
.ejs-hero-games-slider {
    position: relative;
    z-index: 10;
    padding: 0 25px 25px;
}

.ejs-hero-swiper {
    overflow: visible;
    padding-top: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ejs-hero-swiper.loaded {
    opacity: 1;
}

.ejs-hero-swiper .swiper-slide {
    height: auto;
    transition: transform 0.3s ease;
}

/* Game Cards - Completely redesigned to match reference */
.ejs-game-card {
    position: relative;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.3s ease;
    cursor: pointer;
    height: auto;
}

.ejs-hero-games-slider .ejs-game-card:hover {
    transform: translateY(-4px);
}

/* Square thumbnail container with border only on active */
.ejs-hero-games-slider .ejs-game-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #f0f0f133;
    transition: all 0.3s ease;
}

/* Only show border on thumbnail when active */
.ejs-game-card.active .ejs-game-thumbnail {
    border: 3px solid #ffd700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.3);
}

.ejs-game-card.active:hover .ejs-game-thumbnail {
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.ejs-hero-games-slider .ejs-game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.ejs-hero-games-slider .ejs-game-card:hover .ejs-game-thumbnail img {
    transform: scale(1.05);
}

.ejs-hero-games-slider .ejs-game-info {
	margin-bottom: 0;
    padding: 8px 0 0 0;
    color: white;
    text-align: center;
}

.ejs-game-title-small {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Hide genre and system tags */
.ejs-game-meta-small {
    display: none;
}

.ejs-game-genre-small,
.ejs-game-system-small {
    display: none;
}

/* Navigation - Hidden */
.ejs-hero-next,
.ejs-hero-prev {
    display: none !important;
}

/* Pagination - Hidden by default */
.ejs-hero-pagination {
    bottom: 20px !important;
    text-align: center;
    display: none;
}

.ejs-hero-pagination.show {
    display: block;
}

.ejs-hero-pagination .swiper-pagination-bullet {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 1 !important;
    transition: all 0.3s ease;
}

.ejs-hero-pagination .swiper-pagination-bullet-active {
    background: #ffd700 !important;
    border-color: #ffd700;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Error State */
.ejs-hero-error {
    padding: 60px 40px;
    text-align: center;
    color: white;
    background: #333);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 500;
}

/* Animation classes */
.ejs-hero-fade-in {
    animation: heroFadeIn 0.5s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .ejs-hero-featured {
        padding: 40px 20px 20px;
    }

    .ejs-hero-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        margin-bottom: 20px;
    }

    .ejs-hero-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .ejs-hero-games-slider {
        padding: 0 20px 20px;
    }

    .ejs-hero-swiper {
        padding-top: 8px;
    }

    .ejs-hero-next,
    .ejs-hero-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }

    .ejs-hero-next i,
    .ejs-hero-prev i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
	.ejs-hero-slide-container {
		aspect-ratio: 9 / 14;
	}
    .ejs-hero-featured {
        padding: 30px 15px 15px;
    }

    .ejs-hero-games-slider {
        padding: 0 15px 15px;
    }

    .ejs-hero-swiper {
        padding-top: 5px;
    }
}