﻿/* Estilos generales */
.descargas-section {
    padding: 40px 20px;
    background-color: #0f0f13;
    min-height: 70vh;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #f0d586;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
}

    .section-title:after {
        content: "";
        display: block;
        width: 100px;
        height: 3px;
        background: linear-gradient(to right, transparent, #f0d586, transparent);
        margin: 15px auto 0;
    }

/* Estilos de la tabla */
.table-container {
    max-width: 1200px;
    margin: 0 auto;
    border: 1px solid #2a2a35;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.table-header {
    background-color: #1a1a22;
    color: #f0d586;
    font-weight: bold;
}

.table-row {
    display: grid;
    grid-template-columns: 100px 1fr 2fr 150px;
    border-bottom: 1px solid #2a2a35;
}

.table-cell {
    padding: 15px;
    color: #ccc;
    display: flex;
    align-items: center;
}

.header-cell {
    color: #f0d586;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.table-body .table-row:hover {
    background-color: #1e1e28;
}

/* Celdas específicas */
.version-cell {
    justify-content: center;
}

.version-badge {
    background-color: #f0d586;
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.action-cell {
    justify-content: center;
}

/* Botones */
.download-btn {
    padding: 8px 15px;
    background: linear-gradient(to right, #f0d586, #d4af37);
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

    .download-btn:hover {
        background: linear-gradient(to right, #ffecb3, #f0d586);
        box-shadow: 0 2px 10px rgba(240, 213, 134, 0.4);
    }

.update-panel {
    color: #f0d586;
    font-size: 0.9rem;
}

.update-text {
    font-style: italic;
}

/* Sin descargas */
.no-downloads {
    text-align: center;
    padding: 30px;
}

    .no-downloads p {
        color: #777;
        margin-bottom: 15px;
    }

.support-link {
    color: #f0d586;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 1px dashed #f0d586;
    transition: all 0.3s ease;
}

    .support-link:hover {
        color: #ffecb3;
        border-bottom-color: #ffecb3;
    }

/* Paginación */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.pagination-btn {
    padding: 8px 20px;
    background-color: #1a1a22;
    color: #f0d586;
    border: 1px solid #f0d586;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    min-width: 120px;
}

    .pagination-btn:hover {
        background-color: #f0d586;
        color: #000;
    }

    .pagination-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.pagination-info {
    color: #fff;
    font-size: 1rem;
    min-width: 120px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .table-row {
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        border-bottom: 2px solid #2a2a35;
    }

    .table-header {
        display: none;
    }

    .table-cell {
        padding: 10px;
    }

        .table-cell:nth-child(1) {
            grid-column: 1;
            grid-row: 1;
            justify-content: flex-start;
        }

        .table-cell:nth-child(2) {
            grid-column: 2;
            grid-row: 1;
        }

        .table-cell:nth-child(3) {
            grid-column: 1 / span 2;
            grid-row: 2;
            border-top: 1px dashed #2a2a35;
        }

        .table-cell:nth-child(4) {
            grid-column: 2;
            grid-row: 1;
            justify-content: flex-end;
        }

    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }

    .pagination-btn {
        width: 100%;
    }
}

/* Estilos para separar las secciones */
.section-title {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

/* Ajustes para la tabla de compras */
.table-container {
    margin-bottom: 30px;
}

/* Estilos para la paginación */
.pagination-container {
    margin-top: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.pagination-btn {
    padding: 5px 15px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .pagination-btn:hover {
        background-color: #0056b3;
    }

.pagination-info {
    font-weight: bold;
    color: #333;
}

/* Estilo para el mensaje de "no hay compras" */
.no-downloads {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.support-link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}

    .support-link:hover {
        text-decoration: underline;
    }

.paginacion-container {
    margin: 20px 0;
    text-align: center;
}

.paginacion-btn {
    padding: 5px 15px;
    margin: 0 5px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    .paginacion-btn:disabled {
        background-color: #cccccc;
        cursor: not-allowed;
    }

.paginacion-info {
    margin: 0 15px;
    font-weight: bold;
}