/* css/multiproveedores.css - Estilos para la plataforma de 3000+ juegos */

:root {
    --color-original: #00ff9d;
    --color-external: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* 1. Global Partners Marquee */
.partners-marquee-section {
    padding: 40px 0;
    background: transparent; /* Permite que el fondo global se mantenga fluido */
    border: none;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-title-container {
    text-align: center;
    margin-bottom: 20px;
}

.marquee-label {
    font-size: 0.8rem;
    letter-spacing: 5px;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    font-weight: 600;
}

.partners-marquee {
    display: flex;
    white-space: nowrap;
}

.marquee-content {
    display: flex;
    animation: marquee-scroll 60s linear infinite;
}

.partner-logo {
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.partner-logo img {
    height: 84px;
    width: auto;
    max-width: 264px;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, filter;
}

.partner-logo:hover img {
    filter: brightness(1.1);
    transform: scale(1.2);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Iconos de compatibilidad en Cards */
.compatibility-icons {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
    opacity: 0.5;
    vertical-align: middle;
}

.compatibility-icons i {
    font-size: 0.8rem;
    color: var(--color-original);
}

/* 2. Provider Badges */
.provider-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 10;
    backdrop-filter: blur(8px);
}

.provider-badge.original {
    background: linear-gradient(135deg, #00ff9d, #00bb51);
    color: #000;
    font-weight: 800;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}

.provider-badge.external {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* 3. Game Card Enhancements and Actions */
.game-card-enhanced .btn-play-demo-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
}

.game-card-enhanced .btn-play-demo-centered i {
    font-size: 0.9rem;
}

.game-card-enhanced .btn-play-demo-centered.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.game-card-enhanced .btn-play-demo-centered.secondary:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #fff;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
}

/* 4. New Premium Filtering System */
.games-filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

/* Category Chips */
.categories-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.category-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-chip i {
    font-size: 0.8rem;
    color: var(--color-original);
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 255, 157, 0.3);
    transform: translateY(-2px);
}

.category-chip.active {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 255, 157, 0.05));
    border-color: var(--color-original);
    color: var(--color-original);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.15);
}

.chip-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 5px;
}

.category-chip.active .chip-count {
    background: var(--color-original);
    color: #000;
    font-weight: 700;
}

/* 5. Discovery Integrated Master Card */
.discovery-integrated-section {
    padding: 0 0 40px;
    position: relative;
    z-index: 5;
}

.discovery-card-master {
    position: relative;
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.8), rgba(10, 25, 41, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 32px;
    padding: 40px 60px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.discovery-master-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.discovery-master-text {
    text-align: left;
}

.discovery-master-badge {
    display: inline-block;
    color: var(--color-original);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-left: 45px;
}

.discovery-master-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 35px;
    height: 1px;
    background: var(--color-original);
}

.discovery-master-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.discovery-master-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 520px;
}

/* Button Master */
.btn-discovery-master {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: #fff;
    color: #000;
    padding: 20px 40px;
    border-radius: 100px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-discovery-master:hover {
    transform: scale(1.05) translateY(-5px);
    background: var(--color-original);
    box-shadow: 0 20px 40px rgba(0, 255, 157, 0.3);
}

.btn-discovery-master .btn-icon {
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.btn-discovery-master:hover .btn-icon {
    transform: rotate(15deg) scale(1.2);
}

/* Provider Spotlight Showcase (Floating) */
.discovery-master-visual {
    background: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
    height: 400px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.discovery-master-spotlight {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Glowing background behind logo */
.discovery-master-spotlight::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spotlight-img {
    max-width: 90%;
    max-height: 140px;
    object-fit: contain;
    position: absolute;
    opacity: 0;
    transform: scale(0.9) translateY(15px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    filter: brightness(1.2);
}

.spotlight-img.current {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.spotlight-img.prev {
    opacity: 0;
    transform: scale(1.1) translateY(-15px);
}

.spotlight-img.next {
    opacity: 0;
    transform: scale(0.8) translateY(15px);
}

/* Mobile Adjustments for Spotlight */
@media (max-width: 992px) {
    .discovery-master-visual {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .discovery-card-master {
        padding: 40px 25px;
        margin: 0 10px;
    }
    
    .discovery-master-title {
        font-size: 1.8rem !important;
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .discovery-integrated-section {
        margin-top: 40px; /* Added breathing room between CTA and Discovery on mobile */
    }
}

@media (max-width: 768px) {
    .discovery-master-visual {
        height: 280px;
        margin-top: 0;
    }
    .spotlight-img {
        max-height: 100px;
    }
}

/* 6. Cinematic Horizontal Snap Gallery */
.games-grid-enhanced {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 50px;
    gap: 30px;
    padding: 20px 50px 80px !important;
    margin: 40px -50px !important; /* Permitir que las cards lleguen a los bordes */
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
    scroll-behavior: smooth;
}

.games-grid-enhanced::-webkit-scrollbar {
    display: none;
}

.games-grid-enhanced:active {
    cursor: grabbing;
}

.games-grid-enhanced .game-card-enhanced {
    flex: 0 0 calc(25% - 22px); /* 4 cards por vista */
    min-width: 300px;
    height: 480px; /* Tamaño homologado */
    scroll-snap-align: center;
    margin-bottom: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Forzar que el contenido interno se estire */
.game-card-enhanced {
    display: flex;
    flex-direction: column;
}

.game-info-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 1200px) {
    .games-grid-enhanced .game-card-enhanced {
        flex: 0 0 calc(33.333% - 20px);
    }
}

@media (max-width: 992px) {
    .games-grid-enhanced .game-card-enhanced {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .games-grid-enhanced {
        scroll-padding: 20px;
        padding: 20px 20px 60px !important;
        margin: 40px -20px !important;
        gap: 20px;
    }
    .games-grid-enhanced .game-card-enhanced {
        flex: 0 0 85%; /* En móvil se ve 1 card y media para invitar al scroll */
        min-width: 260px;
    }
}

/* Minimalist Segmented Pagination Updates */
.games-pagination.top-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: 10px auto 40px;
    padding: 15px;
}

.segmented-pagination {
    display: flex;
    justify-content: center;
    width: 100%;
}

.segments-wrapper {
    display: flex;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.page-segment {
    width: 50px;
    height: 12px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.segment-bar {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    transition: all 0.4s ease;
}

.page-segment:hover .segment-bar {
    background: rgba(255, 255, 255, 0.4);
    height: 4px;
}

.page-segment.active .segment-bar {
    background: var(--color-original);
    height: 4px;
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.8),
                0 0 5px rgba(0, 255, 157, 1);
}

.page-segment.active {
    width: 70px; /* Elegant expansion on active */
}

.pagination-info {
    display: none; /* Letrero innecesario eliminado */
}

#current-range, #total-games {
    color: var(--color-original);
    font-weight: 800;
}
