/* -------------------------------
   Estructura Principal
   ------------------------------- */
.changelog-container {
    max-width: 1000px;
    margin: 30px auto;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* -------------------------------
   Encabezado del Changelog 
   ------------------------------- */
.changelog-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(26, 26, 31, 0.9);
    position: relative;
    overflow: hidden;
    border-left: 4px solid #4e73df;
    color: #f8f9fa;
    margin-bottom: 20px;
    width: fit-content;
}

.changelog-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    background-color: rgba(35, 35, 40, 0.95);
}

.changelog-header.with-icon {
    padding-left: 15px;
}

.changelog-header.with-icon::before {
    content: '📋';
    margin-right: 10px;
    font-size: 18px;
}

.changelog-header.primary {
    border-left-color: #4DFF4D;
    color: #4DFF4D;
}

.changelog-header.secondary {
    border-left-color: #00B4FF;
    color: #00B4FF;
}

.changelog-header.warning {
    border-left-color: #FFD700;
    color: #FFD700;
}

/* -------------------------------
   Versiones (Acordeón)
   ------------------------------- */
.version {
    border: 1px solid #333;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: rgba(30, 30, 35, 0.8);
}

.version[open] {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(40, 40, 45, 0.9);
}

.version-summary {
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    transition: all 0.3s ease;
}

.version-summary:hover {
    background-color: rgba(50, 50, 55, 0.6);
}

.version-summary::-webkit-details-marker {
    display: none;
}

.version-title {
    font-size: 18px;
    color: #f0f0f0;
    font-weight: 600;
}

.version-badge {
    background-color: #4DFF4D;
    color: #111;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 12px;
}

.version-toggle {
    width: 20px;
    height: 20px;
    position: relative;
}

.version-toggle::before,
.version-toggle::after {
    content: '';
    position: absolute;
    background-color: #00B4FF;
    transition: all 0.3s ease;
}

.version-toggle::before {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
}

.version-toggle::after {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.version[open] .version-toggle::after {
    opacity: 0;
}

/* -------------------------------
   Contenido de Versión
   ------------------------------- */
.version-content {
    padding: 20px;
    border-top: 1px solid #333;
}

.version-section {
    margin-bottom: 20px;
}

.version-category {
    color: #00B4FF;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #333;
}

.version-changes {
    padding-left: 0;
    margin: 0;
}

.change-item {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #e0e0e0;
    position: relative;
    list-style-type: none;
    padding-left: 20px;
}

.change-item::before {
    content: '•';
    color: #4DFF4D;
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* -------------------------------
   VERSIÓN MÓVIL 
   ------------------------------- */
@media (max-width: 768px) {
    .changelog-container {
        max-width: 100%;
        margin: 15px auto;
        padding: 0 10px;
    }

    .changelog-header {
        font-size: 14px;
        padding: 8px 15px;
        margin-bottom: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .changelog-header.with-icon::before {
        font-size: 16px;
        margin-right: 8px;
    }

    .version {
        border-radius: 6px;
        margin-bottom: 12px;
    }

    .version-summary {
        padding: 12px 15px;
        flex-wrap: wrap;
    }

    .version-title {
        font-size: 16px;
        flex: 1;
        min-width: 70%;
    }

    .version-badge {
        font-size: 10px;
        padding: 2px 8px;
        margin-left: 8px;
    }

    .version-toggle {
        width: 16px;
        height: 16px;
    }

    .version-content {
        padding: 15px;
    }

    .version-section {
        margin-bottom: 15px;
    }

    .version-category {
        font-size: 15px;
        margin-bottom: 10px;
    }

    .change-item {
        font-size: 14px;
        padding-left: 18px;
        margin-bottom: 8px;
        line-height: 1.4;
    }

    .version-changes {
        padding-left: 5px;
    }

    .version-content ul {
        padding-left: 15px;
    }

    .change-item {
        word-break: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .changelog-header {
        font-size: 13px;
        padding: 6px 12px;
    }

    .version-title {
        font-size: 15px;
    }

    .version-content {
        padding: 12px;
    }

    .version-category {
        font-size: 14px;
    }

    .change-item {
        font-size: 13px;
    }
}