<!-- 
/**
* WebEngine CMS
* https://webenginecms.org/
*
* Downloads Page - Adaptado a fondo BLANCO del theme
* - Solo MediaFire activo
* - Los demás “desactivados” visualmente + bloqueados
* - System Requirements se mantiene (segunda imagen) con colores claros
*/
-->

<style>
    :root{
        /* Paleta CLARA para que se adapte al theme blanco */
        --pagebg:#ffffff;
        --pagebg2:#f4f8fb;
        --card:#ffffff;
        --card2:#f7fbff;

        --text:#0f2436;
        --muted:#587085;

        --line:rgba(17, 92, 140, .18);
        --cyan:#2aa9c6;
        --cyan2:#1bd7ff;

        --shadow:0 18px 45px rgba(14, 38, 58, .12);
        --shadow2:0 10px 26px rgba(14, 38, 58, .10);

        --radius:18px;

        --disabledText:rgba(15,36,54,.45);
        --disabledBorder:rgba(15,36,54,.12);
        --disabledBg:#f6f7f9;
    }

    /* NO forzamos body a negro: lo dejamos blanco y elegante */
    .downloads-page-bg{
        background:
            radial-gradient(1200px 520px at 70% 0%, rgba(42,169,198,.10), transparent 60%),
            radial-gradient(900px 480px at 10% 35%, rgba(27,215,255,.08), transparent 55%),
            linear-gradient(180deg, var(--pagebg), var(--pagebg2));
        padding: 18px 0 26px;
    }

    .downloads-wrap{
        background: rgba(255,255,255,.72);
        border: 1px solid rgba(17, 92, 140, .16);
        box-shadow: var(--shadow);
        border-radius: calc(var(--radius) + 6px);
        padding: 18px 18px 24px;
        color: var(--text);
        position: relative;
        overflow:hidden;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    .downloads-wrap:before{
        content:"";
        position:absolute;
        inset:-2px;
        background:
            radial-gradient(900px 420px at 75% 0%, rgba(42,169,198,.12), transparent 60%),
            radial-gradient(700px 380px at 15% 35%, rgba(27,215,255,.10), transparent 55%);
        pointer-events:none;
        opacity: .85;
    }

    .downloads-wrap > *{ position: relative; z-index: 1; }

    .page-title{
        margin: 18px 0 10px;
        display:flex;
        align-items:center;
        gap:10px;
    }
    .page-title span{
        font-weight: 900;
        letter-spacing:.3px;
        font-size: 18px;
        color: var(--text);
        padding: 10px 14px;
        border-radius: 999px;
        border: 1px solid rgba(42,169,198,.28);
        background: linear-gradient(180deg, rgba(42,169,198,.10), rgba(255,255,255,.78));
        box-shadow: 0 10px 26px rgba(14, 38, 58, .10);
        position: relative;
        overflow:hidden;
    }
    .page-title span:before{
        content:"";
        position:absolute;
        top:-80%;
        left:-60%;
        width: 60%;
        height: 220%;
        background: linear-gradient(90deg, transparent, rgba(27,215,255,.18), transparent);
        transform: rotate(18deg);
        animation: shine 3.4s infinite;
    }
    @keyframes shine{
        0%{ left:-60%; }
        55%{ left:120%; }
        100%{ left:120%; }
    }

    .downTxt{
        color: var(--muted);
        margin: 0 0 14px;
        line-height: 1.45;
        font-weight: 600;
    }

    .download-grid{
        display:flex;
        flex-wrap:wrap;
        gap:14px;
        margin-bottom: 14px;
    }

    /* Card botón */
    .dl-card{
        flex: 1 1 170px;
        min-width: 160px;
        max-width: 240px;
        position: relative;
        border-radius: var(--radius);
        overflow: hidden;
        border: 1px solid rgba(17, 92, 140, .16);
        background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(247,251,255,.88));
        box-shadow: var(--shadow2);
        transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease, opacity .18s ease;
        user-select:none;
        -webkit-tap-highlight-color: transparent;
    }

    .dl-card:before{
        content:"";
        position:absolute;
        inset:0;
        background:
            radial-gradient(560px 240px at 0% 0%, rgba(27,215,255,.10), transparent 55%),
            radial-gradient(420px 260px at 100% 100%, rgba(42,169,198,.08), transparent 60%);
        opacity: .9;
        pointer-events:none;
    }

    .dl-card:hover{
        transform: translateY(-4px) scale(1.01);
        border-color: rgba(42,169,198,.35);
        box-shadow: 0 20px 52px rgba(14, 38, 58, .16);
        filter: saturate(1.05);
    }
    .dl-card:active{
        transform: translateY(0px) scale(.98);
        box-shadow: 0 12px 26px rgba(14, 38, 58, .14);
    }

    .dl-card a{
        display:flex;
        align-items:center;
        justify-content:center;
        padding: 14px;
        width:100%;
        height:100%;
        text-decoration:none;
        position:relative;
        z-index:1;
    }

    .dl-card img{
        width: 100%;
        height: auto;
        display:block;
        border-radius: 12px;
        transform: scale(1);
        transition: transform .18s ease, filter .18s ease;
        filter: drop-shadow(0 10px 16px rgba(14, 38, 58, .14));
        background: #fff;
    }
    .dl-card:hover img{
        transform: scale(1.03);
        filter: drop-shadow(0 14px 22px rgba(14, 38, 58, .18));
    }

    /* Badge */
    .dl-badge{
        position:absolute;
        top:10px;
        left:10px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 900;
        letter-spacing:.2px;
        border-radius: 999px;
        background: rgba(255,255,255,.82);
        border: 1px solid rgba(42,169,198,.26);
        color: var(--text);
        z-index: 2;
        box-shadow: 0 10px 18px rgba(14, 38, 58, .10);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Disabled cards */
    .dl-card.disabled{
        opacity: .62;
        border-color: var(--disabledBorder);
        background: linear-gradient(180deg, rgba(246,247,249,.95), rgba(240,242,245,.92));
        filter: grayscale(1) saturate(.6);
    }
    .dl-card.disabled:hover{
        transform:none;
        box-shadow: var(--shadow2);
        border-color: var(--disabledBorder);
        filter: grayscale(1) saturate(.6);
    }
    .dl-card.disabled a{ cursor:not-allowed; }
    .dl-card.disabled:after{
        content:"Desactivado";
        position:absolute;
        right:10px;
        top:10px;
        padding: 6px 10px;
        font-size: 12px;
        font-weight: 900;
        letter-spacing:.2px;
        border-radius: 999px;
        background: rgba(255,255,255,.86);
        border: 1px solid rgba(15,36,54,.10);
        color: var(--disabledText);
        z-index: 3;
        box-shadow: 0 10px 18px rgba(14, 38, 58, .10);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Ripple */
    .ripple{
        position:absolute;
        border-radius:50%;
        transform: scale(0);
        animation: ripple .55s ease-out;
        background: radial-gradient(circle, rgba(27,215,255,.25), rgba(42,169,198,.18), transparent 70%);
        pointer-events:none;
        z-index:3;
        mix-blend-mode: multiply;
    }
    @keyframes ripple{
        to{ transform: scale(6); opacity: 0; }
    }

    /* Tabla requisitos (segunda imagen) - estilo claro */
    .req-table{
        background: rgba(255,255,255,.80);
        border-color: rgba(17, 92, 140, .18) !important;
        box-shadow: 0 12px 30px rgba(14, 38, 58, .10);
        border-radius: 14px;
        overflow:hidden;
    }
    .req-table thead td{
        background: linear-gradient(180deg, rgba(42,169,198,.95), rgba(27,215,255,.75)) !important;
        text-align:center;
        font-weight:900;
        color:#06101a !important;
        border-color: rgba(0,0,0,.10) !important;
    }
    .req-table td{
        vertical-align: middle !important;
        color: var(--text) !important;
        border-color: rgba(17, 92, 140, .14) !important;
        background: rgba(255,255,255,.92);
    }
    .req-table tbody tr:nth-child(even) td{
        background: rgba(247,251,255,.95);
    }
    .req-table tbody tr:hover td{
        background: rgba(42,169,198,.10);
    }

    /* Responsive */
    @media (max-width: 575px){
        .downloads-wrap{ padding: 14px; }
        .dl-card{ min-width: 140px; }
        .page-title span{ font-size: 16px; }
    }
</style>

<div class="downloads-page-bg">
    <div class="row">
        <div class="col-sm-12">

            <div class="downloads-wrap">

                <!-- CLIENT DOWNLOADS -->
                <div class="page-title"><span>Client Downloads</span></div>
                <p class="downTxt">Descarga e instala El servidor de Mu Nexora Season 6 y Disfruta!.</p>

                <div class="download-grid">
                    <!-- MEDIAFIRE (ACTIVO) -->
                    <div class="dl-card">
                        <div class="dl-badge">MediaFire</div>
                        <a class="dl-link" href="https://www.mediafire.com/file/kq45alqm5zkhtyu/MuNexora+S6+CLIENT.rar/file" target="_blank" rel="noopener">
                            <img src="<?php echo __PATH_TEMPLATE__; ?>img/mediafire.png" alt="Download from MediaFire">
                        </a>
                    </div>

                    <!-- DESACTIVADOS (pero se ven como en tu sección, solo que bloqueados) -->
                    <div class="dl-card ">
                        <div class="dl-badge">MEGA</div>
                        <a class="dl-link is-disabled" href="https://mega.nz/file/6sokiIrT#p-_SHRr0WNuQQrpk-vdU9Ytkbhujd6wLXP45IsQcVPM" target="_blank" rel="noopener">
                            <img src="<?php echo __PATH_TEMPLATE__; ?>img/mega.png" alt="MEGA">
                        </a>
                    </div>

                    <div class="dl-card">
                        <div class="dl-badge">Google</div>
                        <a class="dl-link" href="https://drive.google.com/file/d/1DXj_ADKq6_pgV5UfD_uqGABi4siCeQUq/view?usp=drive_link" target="_blank" rel="noopener">
                            <img src="<?php echo __PATH_TEMPLATE__; ?>img/google.png" alt="Google Drive">
                        </a>
                    </div>

                    <div class="dl-card">
                        <div class="dl-badge">Efectos y Sonidos Mu Nexora</div>
                        <a class="dl-link" href="https://www.mediafire.com/file/64uneu1jc3qu3oi/MuNexoraS6_Sonido_Y_Efectos.rar/file" target="_blank" rel="noopener">>
                            <img src="<?php echo __PATH_TEMPLATE__; ?>img/winrar.png" alt="WinRAR">
                        </a>
                    </div>
                </div>

                <!-- SYSTEM REQUIREMENTS -->
                <div class="page-title"><span>Requerimientos de Sistema</span></div>
                <p class="downTxt">Porfavor Chequea estos requerimientos de Sistema.</p>

                <table class="table table-condensed table-hover table-striped table-bordered req-table">
                    <thead>
                        <tr>
                            <td>Component</td>
                            <td>Requerimientos Minimos</td>
                            <td>Requeremientos recomendados</td>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>Operating System</td>
                            <td style="text-align:center;">Windows XP</td>
                            <td style="text-align:center;">Windows 10</td>
                        </tr>
                        <tr>
                            <td>Processor</td>
                            <td style="text-align:center;">Pentium 3 700Mhz</td>
                            <td style="text-align:center;">Pentium 4 – 2.0 Ghz +</td>
                        </tr>
                        <tr>
                            <td>System Memory</td>
                            <td style="text-align:center;">1 GB</td>
                            <td style="text-align:center;">4 GB</td>
                        </tr>
                        <tr>
                            <td>Video Card</td>
                            <td style="text-align:center;">3D graphics processor, 128 MB or higher</td>
                            <td style="text-align:center;">3D graphics processor, 128 MB or higher</td>
                        </tr>
                        <tr>
                            <td>DirectX Version</td>
                            <td style="text-align:center;">DirectX 8.1a</td>
                            <td style="text-align:center;">DirectX 9.0c +</td>
                        </tr>
                        <tr>
                            <td>Hard Disk Space</td>
                            <td style="text-align:center;">1 GB</td>
                            <td style="text-align:center;">1 GB</td>
                        </tr>
                        <tr>
                            <td>Framework Version</td>
                            <td style="text-align:center;">Net Framework 4.0</td>
                            <td style="text-align:center;">Net Framework 4.0</td>
                        </tr>
                    </tbody>
                </table>

            </div><!-- /downloads-wrap -->

        </div>
    </div>
</div>

<script>
(function(){
    function createRipple(e, el){
        const rect = el.getBoundingClientRect();
        const size = Math.max(rect.width, rect.height);
        const x = (e.clientX - rect.left) - size / 2;
        const y = (e.clientY - rect.top) - size / 2;

        const ripple = document.createElement('span');
        ripple.className = 'ripple';
        ripple.style.width = ripple.style.height = size + 'px';
        ripple.style.left = x + 'px';
        ripple.style.top = y + 'px';

        const old = el.querySelector('.ripple');
        if(old) old.remove();

        el.appendChild(ripple);
        ripple.addEventListener('animationend', function(){ ripple.remove(); });
    }

    document.querySelectorAll('.dl-link').forEach(function(a){
        a.addEventListener('click', function(e){
            const card = a.closest('.dl-card');
            if(card){ createRipple(e, card); }

            // Bloquear los desactivados (sin abrir nada)
            if(a.classList.contains('is-disabled')){
                e.preventDefault();
                if(card){
                    card.style.transform = 'translateY(0) scale(.98)';
                    setTimeout(function(){ card.style.transform = ''; }, 160);
                }
                return;
            }

            // Por si algún link queda "#"
            const href = (a.getAttribute('href') || '').trim();
            if(!href || href === '#'){
                e.preventDefault();
            }
        }, {passive:false});
    });
})();
</script>
