/* ==========================================================================
   LUCKHAND - MODERN SLOTS SHOWCASE & CAROUSEL (NUEVA GENERACIÓN - GOLD LUXURY)
   Tipografía de alta legibilidad para operadores y directivos
   ========================================================================== */

.modern-showcase-section {
    position: relative;
    padding: 85px 0 100px;
    background: transparent !important;
    overflow: hidden;
    z-index: 10;
}

.modern-showcase-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.25) 50%, transparent 100%);
}

/* Header */
.showcase-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 48px;
    position: relative;
    z-index: 2;
}

.showcase-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    color: #ffd700;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

.showcase-title-main {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.18;
    color: #f8fafc;
    margin: 0 0 18px;
    letter-spacing: -0.025em;
}

.showcase-title-accent {
    background: linear-gradient(135deg, #fffde6 0%, #ffd700 25%, #ffffff 48%, #d4af37 72%, #ffe082 100%);
    background-size: 250% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 2px 16px rgba(255, 215, 0, 0.45));
    animation: accentGoldGlow 4s ease-in-out infinite;
}

@keyframes accentGoldGlow {
    0% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 14px rgba(255, 215, 0, 0.35));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 2px 26px rgba(255, 215, 0, 0.75));
    }
    100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 2px 14px rgba(255, 215, 0, 0.35));
    }
}

.showcase-subtitle-main {
    font-size: 1.22rem;
    color: #e2e8f0;
    line-height: 1.72;
    margin: 0 auto;
    max-width: 820px;
    font-weight: 400;
    text-wrap: balance;
}

/* Highlight micro-animado para "salas físicas y casinos online" */
.highlight-omni-animated {
    position: relative;
    display: inline-block;
    color: #ffd700;
    font-weight: 700;
    text-shadow: 0 0 14px rgba(255, 215, 0, 0.45);
}

.highlight-omni-animated::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #ffd700 50%, transparent 100%);
    animation: omniUnderlinePulse 2.6s ease-in-out infinite;
}

@keyframes omniUnderlinePulse {
    0%, 100% {
        opacity: 0.35;
        transform: scaleX(0.85);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.05);
        filter: drop-shadow(0 0 6px #ffd700);
    }
}

/* Showcase Controls & Carousel Wrap */
.showcase-carousel-wrapper {
    position: relative;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

.showcase-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 4px;
}

.showcase-counter-badge {
    font-family: var(--lh-font-sans, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.96rem;
    font-weight: 600;
    color: #cbd5e1;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.showcase-counter-badge #showcase-current-count {
    font-family: var(--lh-font-display, 'Syne', sans-serif);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffd700;
    padding: 3px 10px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.15);
}

.showcase-arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-showcase-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #f1f5f9;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.btn-showcase-nav:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.6);
    color: #ffd700;
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.3);
}

.btn-showcase-nav:active {
    transform: scale(0.96);
}

/* Track Container con difuminado suave en los bordes */
.showcase-track-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 16px 8px 32px;
    margin: 0 -8px;
    cursor: grab;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 45px,
        black calc(100% - 45px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 45px,
        black calc(100% - 45px),
        transparent 100%
    );
}

.showcase-track-container::-webkit-scrollbar {
    display: none;
}

.showcase-track-container.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

.showcase-track {
    display: flex;
    gap: 22px;
    width: max-content;
    padding: 0 10px;
}

/* Individual Modern Game Card con Filito Dorado Tipo Cinema Frame */
.modern-game-card {
    position: relative;
    width: 295px;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.95) 0%, rgba(9, 14, 26, 0.99) 100%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(255, 215, 0, 0.08);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
    flex-shrink: 0;
}

.modern-game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(
        135deg,
        rgba(255, 215, 0, 0.75) 0%,
        rgba(255, 255, 255, 0.4) 20%,
        rgba(218, 165, 32, 0.35) 45%,
        rgba(255, 235, 120, 0.85) 60%,
        rgba(184, 134, 11, 0.35) 80%,
        rgba(255, 215, 0, 0.7) 100%
    );
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0.75;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.modern-game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 215, 0, 0.3);
}

.modern-game-card:hover::before {
    opacity: 1;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

/* Visual Media Container (Acomodado exactamente a los límites izquierda y derecha de la card) */
.modern-card-visual {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #000000 !important;
    border-top-left-radius: 19px !important;
    border-top-right-radius: 19px !important;
    line-height: 0 !important;
}

.modern-card-img,
.modern-card-video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: contain !important;
    display: block !important;
    background: #000000 !important;
    pointer-events: none !important;
    border-top-left-radius: 19px !important;
    border-top-right-radius: 19px !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-game-card:hover .modern-card-img,
.modern-game-card:hover .modern-card-video {
    transform: scale(1.02);
}

/* Degradado inferior suave que se funde en el fondo justo antes del título */
.modern-card-overlay-gradient {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 38px !important;
    background: linear-gradient(
        to bottom,
        rgba(9, 14, 26, 0) 0%,
        rgba(9, 14, 26, 0.35) 45%,
        rgba(9, 14, 26, 0.85) 75%,
        #090e1a 100%
    ) !important;
    pointer-events: none !important;
    z-index: 2 !important;
}

.modern-video-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.video-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}

/* Card Content Info */
.modern-card-info {
    padding: 14px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    gap: 12px;
}

.modern-card-title-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.modern-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.modern-card-tagline {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.48;
    margin: 0;
}

/* Micro Features Pill Row (Strictly 2 clean pills: RTP & Volatility) */
.modern-card-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-feature {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.25);
    color: #fde68a;
    letter-spacing: 0.3px;
}

/* Action Button */
.btn-modern-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.btn-modern-play {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.16) 0%, rgba(255, 152, 0, 0.16) 100%);
    border: 1px solid rgba(255, 215, 0, 0.45);
    color: #ffd700;
}

.btn-modern-play:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ff9800 100%);
    border-color: transparent;
    color: #04060a;
    font-weight: 800;
    box-shadow: 0 6px 22px rgba(255, 184, 0, 0.45);
    transform: translateY(-2px);
}

.btn-modern-disabled {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    cursor: default;
    user-select: none;
    letter-spacing: 0.5px;
    font-size: 0.88rem;
    pointer-events: none;
}

.btn-modern-disabled i {
    color: #f59e0b;
    font-size: 0.82rem;
}

/* Responsive */
@media (max-width: 991px) {
    .modern-showcase-section {
        padding: 65px 0 80px;
    }

    .showcase-title-main {
        font-size: 2.35rem;
    }

    .showcase-subtitle-main {
        font-size: 1.15rem;
        line-height: 1.65;
    }

    /* Edge-to-Edge Breakout touching mobile viewport borders */
    .showcase-track-container {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        padding: 16px 20px 32px;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 4.5%,
            black 95.5%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 4.5%,
            black 95.5%,
            transparent 100%
        );
    }

    .modern-game-card {
        width: 265px;
    }
}

@media (max-width: 640px) {
    .modern-showcase-section {
        padding: 50px 0 65px;
    }

    .showcase-title-main {
        font-size: clamp(1.9rem, 5.5vw, 2.35rem);
        line-height: 1.2;
    }

    .showcase-subtitle-main {
        font-size: clamp(1.02rem, 3.2vw, 1.15rem);
        line-height: 1.6;
        color: #e2e8f0;
    }

    .showcase-track-container {
        padding: 12px 16px 26px;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 4%,
            black 96%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0%,
            black 4%,
            black 96%,
            transparent 100%
        );
    }

    .showcase-track {
        gap: 16px;
        padding: 0 12px;
    }

    .modern-game-card {
        width: 245px;
    }

    .modern-card-visual {
        width: 100% !important;
        margin: 0 !important;
        border-top-left-radius: 17px !important;
        border-top-right-radius: 17px !important;
    }

    .modern-card-video {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        border-top-left-radius: 17px !important;
        border-top-right-radius: 17px !important;
    }

    .modern-card-info {
        padding: 12px 14px 18px;
        gap: 10px;
    }

    .modern-card-title {
        font-size: 1.35rem;
    }

    .btn-showcase-nav {
        width: 44px;
        height: 44px;
        font-size: 1.05rem;
    }
}
